Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 2.24 KB

README.md

File metadata and controls

53 lines (39 loc) · 2.24 KB

Universal Music Player sample for Ceylon on Android

This is a Universal Music Player sample application for Android, ported to the Ceylon language.

It demonstrates how to implement an audio media app that works across multiple form factors and provide a consistent user experience on Android phones, tablets, Android Auto, Android Wear, Android TV and Google Cast devices.

It also demonstrates how to have an Android project containing a mix of Ceylon code alongside Java code, using the Ceylon Gradle plugin for Android. (We've deliberately left some of the original Java code alone, in order to demonstrate this.)

Pre-requisites

  • Ceylon 1.3.3 (unreleased)
  • Android SDK v25

Getting Started

The sample depends on a snapshot build of Ceylon 1.3.3. You can get it from Jenkins or build it yourself. To edit the sample code in Android Studio, you'll also need a snapshot build of Ceylon IDE.

Edit mobile/build.gradle, specifing the ceylonLocation of your snapshot build of Ceylon 1.3.3.

This sample uses the Gradle build system. To build the project, use the gradlew build command or use 'Import Project' in Android Studio.

Screenshots

Phone Lock screen Full screen player Cast dialog Android Auto Android TV

Android Wear watch face Android Wear controls