SlideShare a Scribd company logo
Google TV: How to develop second screen apps
NYC Android Developer Meetup 3.14.2013
        Carmen Delessio
        Sam’s Learn Google TV Development in 24 Hours
        http://about.me/carmendelessio
Second Screen Apps - On Google TV
CES 2013 Announcements:
   ASUS
    LG
    HiSense
    NetGear

Available Now:
Sony, Visio, LG
Develop on a device …
                for less than $100
YouTube app in the news
YouTube app
   in the news
Smart TV Projected Growth:




http://techcrunch.com/2012/10/17/smart-tv-growth-for-2012-pegged-at-15-but-north-americans-still-slow-to-adopt/

http://www.displaysearch.com/cps/rde/xchg/displaysearch/hs.xsl/121017_smart_tv_shipments_grow_worldwide_in_2012.asp
Smart TV Technology




http://www.movinapp.com/the-smart-tv-technology/
Google TV is a software platform.

   Hardware and software are separate.

   Google TV works across manufacturers.
Google TV is a software platform.


    Hey, this reminds me of something . . .
Smart Phone Market Share 2008

                       Apple 19%
                       RIM 44%
                       Palm 13%
Smart Phone Market Share 2012

                       Google 51%
                       Apple 30%
                       RIM 14%
2008: SmartPhones = dedicated hardware
Android – a software platform, decouples
             hardware and software
2012: Over 50% of smart phones use Android
Prediction:
Smart TVs will follow same model. A software
platform will dominate. Google TV is leading
contender.
Google Play (a real market) is available on
Google TV

Plenty of Android Developers!
The TV is on.

    Why are you looking at your
    phone?
We all look at our phones (or tablets) all the
time.

With a second screen app, the content in
the 2 screens is somehow related

There are at least 4 Kinds of Second
Screen apps
Enhanced Viewing apps

     Supplement a broadcast TV show
Enhanced Viewing apps
Synced apps
Enhanced Viewing apps
Developers, check out watchwith.com
Enhanced Viewing apps

     Work with all TV Shows
                -Or-
  Have have some level of content
            integration
Remote Control Apps
Remote Control Apps
Content Selection Apps

                   Select on Device
                   Play on TV
Content Selection Apps
 Flickr Example




           http://www.informit.com/articles/article.aspx?p=2021960
Content Selection Apps:
Opportunities?

What about Facebook?
  Instagram? Shutterfly?

News or TV Content apps?
   CNN? Comedy Central?
Content Selection Apps

      Select content on device,
           Display on TV

  Default Display (photos or videos)

Custom display –app on phone and TV
Interactive Apps
Blackjack Sample App
Interactive Apps
Blackjack Sample App
        Make your play using a device
Interactive Apps
Blackjack Sample App
Results
Displayed on
TV
Interactive Apps
Blackjack Sample App
         Two apps
          are used


 Phone App           TV App
Interactive Apps
Blackjack Sample App
Multiple devices can be
connected to the TV
Possibilities?
Interactive Apps
Wedraw.tv and others from movl.com
Interactive Apps
         Interact with device,
            Display on TV

      Not just selecting content

There is an app on both the TV and the
                device.
Ok already,

          Let’s make something
Discovery: Hey, there is a TV over here

Pairing: OK, let’s connect


Discovery - recognizing a TV on network

Pairing - establishing trusted communication
Discovery: Hey, there is a
TV over here

Discovery –
recognizing a TV on a network
Pairing: OK, let’s connect




Pairing - establishing trusted communication
For all second screen apps, some kind of
discovery and pairing must occur.

Google TV builds in:
             Anymote Protocol
                     &
         Google TV Pairing protocol
https://code.google.com/p/anymote-protocol/
https://developers.google.com/tv/remote/docs/pairing
Getting Started

The best way to start is to install and run the
BlackJack Demo app

https://code.google.com/p/googletv-android-samples/

git clone https://code.google.com/p/googletv-android-
samples/
Install BlackJack Demo
Install BlackJack Demo

After installation you will have:

   BlackJackGTV - a simple 1st screen app
   BlackJackTVRemote - a simple 2nd screen app to talk w/ the
    first screen app.
   Anymote Library – library for Anymote protocol
Install BlackJack Demo
   BlackJackTVRemote
   Uses Anymote Library

Android properties for BlackJackTVRemote
What does Anymote do?

Allows Remote App to send:
 Key events
 Mouse Events
 Connection Events
 Intents!
BlackJack Remote App Code:

   Implement Anymote ClientListener
   Get the AnymoteSender when connected
   Send Keystrokes to the TV App
     “H” for Hit
     “S” for Stand
     “N” for New Game
Activity - implement ClientListener




Manifest – defines service & anymote pairing activity
Hit Button Clicked




The sendKeyEvent() method
On the TV App, there is a response to the “H”




  Remote app sends KeyEvent.KEYCODE_H via
  anymote
  TV App gets this key in the onKeyDown() and
  responds
Sending Intents using Anymote

Just android
- Implicit intents like View a web page
- Explicit – start a specific activity
Implicit intents like
View a web page

Demo app takes URL
Displays it on TV
Simple example, shell for other apps
Flickr Example

-   Gets most recent Flickr Photos
    - Select a photo
    - Fling it to TV

-   Set up Anymote Library
-   Get Source code
-   You can use this as your Second Screen
    Remote app starting point
http://www.informit.com/articles/article.aspx?p=2021960
Second Screen Apps - On Google TV
RecentPhotoActivity.java
Intent App – remote app uses explicit intent

Remote App code to fling intent:
Debugging and Running apps on GTV

Get Computer IP address
Set Debugger address on TV settings

ADB connect to TV:
adb connect 192.168.1.103

TV is just another device
Android 4.2.2
   Presentation class
    Display Content on 2nd Screen
OUYA Game Console
http://www.ouya.tv/devs/
-   Google TV is a software platform

-   Different types of second screen apps
    - Enhanced Viewing
    - Remote control
    - Content Selection
    - Interactive
-   Besides Google TV, Check out
    - Watchwith.com
    - Movl.com
    - http://www.ouya.tv/devs/
Carmen Delessio
http://about.me/carmendelessio



http://www.bffmedia.com
http://www.screenitup.com

More Related Content

PDF
Do relogio ao carro
PDF
Chromecast, CheapCast and TV - DevFest Brussels 2013
PDF
Developing Android Applications for Google TV - Android Developer Lab 2011
PPTX
Presentation app
PDF
ADD14: ChromeCast and the future of Android TV
PPTX
2017 03 22 Lessons learned building Hololens 3D apps from a 2D app developer
PDF
Building HTML5 Chromecast Apps
PPTX
Google I/O 2016 Key notes
Do relogio ao carro
Chromecast, CheapCast and TV - DevFest Brussels 2013
Developing Android Applications for Google TV - Android Developer Lab 2011
Presentation app
ADD14: ChromeCast and the future of Android TV
2017 03 22 Lessons learned building Hololens 3D apps from a 2D app developer
Building HTML5 Chromecast Apps
Google I/O 2016 Key notes

What's hot (15)

PDF
Trilha Android - Android Evolved
PDF
Google IO Mobility Review 2014
PPTX
TDC 2014 - Trilha Mobile - Material design
PPTX
Android application développement
PPTX
2017 06 Ontario Hololens Tour
PPT
Android auto
PDF
Video Streaming: from the native Android player to uncoventional devices
PPTX
PhoneGap Day 2016 USA
PPTX
Open Source Problem Solving
PPT
android marshmallow
PPTX
Android marshmallow 6.0
PDF
00 Android Wear Setup Emulator
PDF
Google IO 2015
PPTX
Android deep dive
PPTX
Learn android course in Coimbatore|Android training institutes in coimbatore|...
Trilha Android - Android Evolved
Google IO Mobility Review 2014
TDC 2014 - Trilha Mobile - Material design
Android application développement
2017 06 Ontario Hololens Tour
Android auto
Video Streaming: from the native Android player to uncoventional devices
PhoneGap Day 2016 USA
Open Source Problem Solving
android marshmallow
Android marshmallow 6.0
00 Android Wear Setup Emulator
Google IO 2015
Android deep dive
Learn android course in Coimbatore|Android training institutes in coimbatore|...
Ad

Similar to Second Screen Apps - On Google TV (20)

PDF
iPad: The Most Valuable Screen Ever for TV & Film Producers
PPTX
Yahoo! Connected TV - Developer Event - Device Communication
PDF
Tizen-based Samsung TV SDK Overview
PDF
Mastering Automation of Android TV Apps With Appium.pdf
ODP
Ci for-android-apps
PPTX
Andriod apps
PDF
Google tv opportunity_for_developers_peanut_l
PDF
The Android STB: A Logical Step in the Evolution of TV
PDF
Christian Kurzke; Getting Your Content on the Big Screen
PPTX
Android software development – the first few hours
PDF
Android interview questions
PDF
Android Interview Questions
PPT
Getting started with android dev and test perspective
PDF
Intro to Google TV
PDF
Using the Presentation API and external screens on Android
DOCX
Summary Of Polycom Cast App
PPTX
Publishing your android app on google play store .pptx
PPTX
UI_UX analysis of Netflix-like app.pptx
PPTX
Smart TV and APIs
PPTX
GAE as Android Test Portal. Part 1.
iPad: The Most Valuable Screen Ever for TV & Film Producers
Yahoo! Connected TV - Developer Event - Device Communication
Tizen-based Samsung TV SDK Overview
Mastering Automation of Android TV Apps With Appium.pdf
Ci for-android-apps
Andriod apps
Google tv opportunity_for_developers_peanut_l
The Android STB: A Logical Step in the Evolution of TV
Christian Kurzke; Getting Your Content on the Big Screen
Android software development – the first few hours
Android interview questions
Android Interview Questions
Getting started with android dev and test perspective
Intro to Google TV
Using the Presentation API and external screens on Android
Summary Of Polycom Cast App
Publishing your android app on google play store .pptx
UI_UX analysis of Netflix-like app.pptx
Smart TV and APIs
GAE as Android Test Portal. Part 1.
Ad

Second Screen Apps - On Google TV