Searching...

New Android Marshmallow sample apps

New Android Marshmallow sample apps - Hallo sahabat ANDROID TUTORIAL, Pada Artikel yang anda baca kali ini dengan judul New Android Marshmallow sample apps, kami telah mempersiapkan artikel ini dengan baik untuk anda baca dan ambil informasi didalamnya. mudah-mudahan isi postingan Artikel android, Artikel Develop, Artikel Featured, Artikel Marshmallow, Artikel Samples, yang kami tulis ini dapat anda pahami. baiklah, selamat membaca.

Judul : New Android Marshmallow sample apps
link : New Android Marshmallow sample apps

Baca juga


New Android Marshmallow sample apps

Posted by Rich Hyndman, Developer Advocate



Three new Android Marshmallow sample applications have gone live this week. As usual they are available directly from the Google Samples repository on GitHub or through the Android Studio samples browser.



Android Direct Share Sample





























Direct Share is a new feature in Android Marshmallow that provides APIs to make sharing more intuitive and quick for users. Direct Share allows users to share content to targets, such as contacts, within other apps. For example, the direct share target might launch an activity in a social network app, which lets the user share content directly to a specific friend in that app.



This sample is a dummy messaging app, and just like any other messaging apps, it receives intents for sharing a plain text. It demonstrates how to show some options directly in the list of share intent candidates. When a user shares some text from another app, this sample app will be listed as an option. Using the Direct Share feature, this app also shows some of contacts directly in the chooser dialog.



To enable Direct Share, apps need to implement a Service extending ChooserTargetService. Override the method onGetChooserTargets() and return a list of Direct Share options.



In your AndroidManifest.xml, add a meta-data tag in your Activity that receives the Intent. Specify android:name as android.service.chooser.chooser_target_service, and point the android:value to the Service.



Android MidiSynth Sample



Android 6.0 introduces new support for MIDI. This sample demonstrates how to use the MIDI API to receive and play MIDI messages coming from an attached input device (MIDI keyboard).



The Android MIDI API (android.media.midi) allows developers to connect a MIDI device to an Android device and process MIDI messages coming from it.



This sample demonstrates some basic features of the MIDI API, such as:

  • Enumeration of currently available devices (including name, vendor, capabilities, etc)

  • Notification when MIDI devices are plugged in or unplugged

  • Receiving and processing MIDI messages


It also contains a simple implementation of an oscillator and note playback.



Android MidiScope Sample



A sample demonstrating how to use the MIDI API to receive and process MIDI signals coming from an attached device.



The Android MIDI API (android.media.midi) allows developers to connect a MIDI device to Android and process MIDI signals coming from it. This sample demonstrates some basic features of the MIDI API, such as enumeration of currently available devices (Information includes name, vendor, capabilities, etc), notification when MIDI devices are plugged in or unplugged, and receiving MIDI signals. This sample simply shows all the received MIDI signals to the screen log and does not play any sound for them.



Check out a sample today and jumpstart your Android Marshmallow development.





Demikianlah Artikel New Android Marshmallow sample apps

Sekianlah artikel New Android Marshmallow sample apps kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.

Anda sekarang membaca artikel New Android Marshmallow sample apps dengan alamat link http://akatog.blogspot.com/2015/09/new-android-marshmallow-sample-apps.html

0 comments:

Post a Comment

 
Back to top!