Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing for the Big Screen - GDG Berlin Andr...

Developing for the Big Screen - GDG Berlin Android 2014 10 Meetup

Avatar for Hasan Hosgel

Hasan Hosgel

October 29, 2014
Tweet

More Decks by Hasan Hosgel

Other Decks in Technology

Transcript

  1. about me Hasan Hosgel G+: Hasan Hosgel Twitter: @alosdev Github:

    alosdev Senior Developer @ImmobilienScout24
  2. Prerequisite • casual consumption - not focused like on phone

    • cinematic experience - 3 meter away • Simplicity - no touchpad
  3. Navigation support • use appropriate states for better recognotion of

    focus/ selection • use sound - occasionally • use next focus targets - for defining own navigation flow ⇒ TEST IT properly
  4. needed libraries • v17 leanback support library • v7 recyclerview

    support library • v7 cardview support library forces to use also • v4 support library
  5. Not supported Hardware features • android.hardware.touchscreen • android.hardware.telephony • android.hardware.camera

    • android.hardware.nfc • android.hardware.location.gps • android.hardware.microphone
  6. avoid filtering in play store • set the attribute “required”

    to “false” in AndroidManifest ⇒ If you don’t to this, the application cannot be found on the play store for TV
  7. recognize TV programmatically UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); if (uiModeManager.getCurrentModeType()

    == Configuration.UI_MODE_TYPE_TELEVISION) { Log.d(TAG, "Running on a TV Device") } else { Log.d(TAG, "Running on a non-TV Device") }
  8. ChromeCast • Sender Application ◦ Android ◦ Chrome ◦ IOs

    • Receiver Application ◦ HTML ⇒ register your receiver application https://cast. google.com/publish/ - costs 5$
  9. needed libraries • v7 appcompat support library • v7 mediarouter

    support library • google play services library forces to use also • v4 support library
  10. Additional possibility for Android With the feature “mirror screen” you

    can now use the “presentation mode” again for your Android application, like for MiraCast