In a blog post, Google today has announced that three new Android Marshmallow sample applications have gone live. The applications are, as usual, available through the Google Samples repository on Github and through the Android Studio samples browser. The apps include Android Direct Share, Android MidiSynth, and Android MidiScope.

Samsung U28E590D 28-Inch 4K Monitor

The first new sample app that is now available is Direct Share. Direct Share is a new feature in Marshmallow that provides APIs for allowing users to share content to other sources such as contacts and social networks. Google describes the Direct Share sample app as a dummy messaging 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 the contacts directly in the chooser dialog.

The second and third sample apps both center around using a MIDI device with an Android device. The second app focuses on how to use the MIDI API to receive and play MIDI messages that come from an attached input device, such as a keyboard. The third app focuses on how to use the MIDI API to receive and process MIDI signals coming from an attached device.

Sample app 2 – 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

Sample app 3 –

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.

The sample apps are available now via the Google Samples repository on Github and through the Android Studio samples browser.

Speck_DFI_Ad_CS-Stacked-Cube_728x90_v1[2]

About the Author