Skip to main content

Google releases three new Android Marshmallow sample apps for developers

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.

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.

FTC: We use income earning auto affiliate links. More.

You’re reading 9to5Google — experts who break news about Google and its surrounding ecosystem, day after day. Be sure to check out our homepage for all the latest news, and follow 9to5Google on Twitter, Facebook, and LinkedIn to stay in the loop. Don’t know where to start? Check out our exclusive stories, reviews, how-tos, and subscribe to our YouTube channel

Comments

Author

Avatar for Chance Miller Chance Miller

Email: Chance@9to5mac.com

Chance currently writes for both 9to5Google and 9to5Mac, in addition to 9to5Toys.