Skip to main content

Google's new reference app shows devs how to do multi-screen apps right

The sample app, called Universal Music Player, uses a number of new features from Android 5.0 Lollipop, and offers guidance to developers for getting their apps to work well and look good on multiple screen sizes, including phones, Android Wear devices, and Android Auto.

From the Android Developers Blog:

This sample, the Universal Music Player, is a bare-bones but functional reference app that supports multiple devices and form factors in a single codebase. It is compatible with Android Auto, Android Wear, and Google Cast devices. Give it a try and easily adapt your own app for wherever your users are, be that a phone, watch, TV, car, or more!

The app shows developers how to implement features such as putting playback controls and album art on the lock screen and controlling playback through Android Auto and Android Wear. You can check out code samples on Google's Samples GitHub page at the link below.

Source: Android Developers Blog, Google Samples GitHub

  • Forget multiscreen, we need multiwindow, popups, and splitscreen support. Rooted Galaxy S III Stock Galaxy Note 4
    Rooted LG G2
    If it ain't Tech, it ain't Right!
  • I'm not sure if you're joking or not...
  • Why? As a Note 4 user, they are pretty useful features that, if integrated into stock Android, could set it apart from its competitors in terms of functionality and productivity. Posted via the Android Central App
  • Agreed. I maybe a Nexus used now but when did have a Galaxy Sammy's features were more than loveable. Posted via the Android Central App
  • Get omnirom or ROM that has it, or the xposed multiwindow
  • It's pretty much a must for tablets at least
  • I dream of the day when a phone comes out that has USB-C and supports multi-window on an external display. With a phone like that, all you would need would be a wireless keyboard and mouse to have a portable laptop like experience on any screen.
  • This is great. They need to release more reference apps for their design principles so people can see the "right" way of implementing features without trying to hack together a bunch of non-standard libraries to do what should be simple.
  • Maybe they should focus on getting their own app designers to make better use of larger sizes like the Nexus 6. What a waste of space in most of Google own apps. I'm sure we will eventually see it but it's just weird how they release the phone and even four months later Android hasn't been optimized for it. Posted via the Android Central App
  • And source code. Excellent.
  • I know it's silly but does anybody have an apk?? Posted via my lollipop N4
  • Not silly. I was thinking they should put it into the play store just so you don't have to build it.
  • Here. I've uploaded it:
  • Now, if only the Google Play Music app's repeat and shuffle buttons were sticky, like their iOS app.
  • That's cool.. Except stock android doesn't even have multi-screen support.. At least not on my Nexus 5.
  • That's not what they mean by "multi-screen" support. They mean "one app which sizes itself and positions everything correctly on different screen sizes and shapes". In other words, the same app formats well on a 5" phone, a 10" tablet, a 50" TV, or a 1.25" watch.
  • This is a great idea. The best way go get people on board is to show them how it's done. Posted on my OnePlus One
  • You didn't mention Android TV. All of articles about this app have left out mention of Android TV, even though Google explicitly mentions it on the page. Even Android Auto gets a mention despite not being released, yet. Does nobody else care about Android TV?