Top Banner
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
60

Second Screen Apps - On Google TV

Jan 22, 2018

Download

Documents

Carmen Delessio
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Second Screen Apps - On Google TV

Google TV: How to develop second screen appsNYC Android Developer Meetup 3.14.2013

Carmen DelessioSam’s Learn Google TV Development in 24 Hourshttp://about.me/carmendelessio

Page 2: Second Screen Apps - On Google TV
Page 3: Second Screen Apps - On Google TV

CES 2013 Announcements:ASUSLGHiSenseNetGear

Available Now:Sony, Visio, LG

Page 4: Second Screen Apps - On Google TV

Develop on a device … for less than $100

Page 5: Second Screen Apps - On Google TV

YouTube app in the news

Page 6: Second Screen Apps - On Google TV

YouTube appin the news

Page 7: Second Screen Apps - On Google TV

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

Page 8: Second Screen Apps - On Google TV

Smart TV Technology

http://www.movinapp.com/the-smart-tv-technology/

Page 9: Second Screen Apps - On Google TV

Google TV is a software platform.

Hardware and software are separate.

Google TV works across manufacturers.

Page 10: Second Screen Apps - On Google TV

Google TV is a software platform.

Hey, this reminds me of something . . .

Page 11: Second Screen Apps - On Google TV

Smart Phone Market Share 2008

Apple 19%RIM 44%Palm 13%

Page 12: Second Screen Apps - On Google TV

Smart Phone Market Share 2012

Google 51%Apple 30%RIM 14%

Page 13: Second Screen Apps - On Google TV

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.

Page 14: Second Screen Apps - On Google TV

Google Play (a real market) is available on

Google TV

Plenty of Android Developers!

Page 15: Second Screen Apps - On Google TV

The TV is on.

Why are you looking at yourphone?

Page 16: Second Screen Apps - On Google TV

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

Page 17: Second Screen Apps - On Google TV

Enhanced Viewing apps

Supplement a broadcast TV show

Page 18: Second Screen Apps - On Google TV

Enhanced Viewing apps

Synced apps

Page 19: Second Screen Apps - On Google TV

Enhanced Viewing appsDevelopers, check out watchwith.com

Page 20: Second Screen Apps - On Google TV

Enhanced Viewing apps

Work with all TV Shows

-Or-

Have have some level of content

integration

Page 21: Second Screen Apps - On Google TV

Remote Control Apps

Page 22: Second Screen Apps - On Google TV

Remote Control Apps

Page 23: Second Screen Apps - On Google TV

Content Selection Apps

Select on Device

Play on TV

Page 24: Second Screen Apps - On Google TV

Content Selection AppsFlickr Example

http://www.informit.com/articles/article.aspx?p=2021960

Page 25: Second Screen Apps - On Google TV

Content Selection Apps: Opportunities?

What about Facebook?Instagram? Shutterfly?

News or TV Content apps?CNN? Comedy Central?

Page 26: Second Screen Apps - On Google TV

Content Selection Apps

Select content on device,

Display on TV

Default Display (photos or videos)

Custom display –app on phone and TV

Page 27: Second Screen Apps - On Google TV

Interactive AppsBlackjack Sample App

Page 28: Second Screen Apps - On Google TV

Interactive AppsBlackjack Sample App

Make your play using a device

Page 29: Second Screen Apps - On Google TV

Interactive AppsBlackjack Sample App

ResultsDisplayed onTV

Page 30: Second Screen Apps - On Google TV

Interactive AppsBlackjack Sample App

Two apps are used

Phone App TV App

Page 31: Second Screen Apps - On Google TV

Interactive AppsBlackjack Sample App

Multiple devices can beconnected to the TV

Possibilities?

Page 32: Second Screen Apps - On Google TV

Interactive AppsWedraw.tv and others from movl.com

Page 33: Second Screen Apps - On Google TV

Interactive AppsInteract with device,

Display on TV

Not just selecting content

There is an app on both the TV and the

device.

Page 34: Second Screen Apps - On Google TV

Ok already,

Let’s make something

Page 35: Second Screen Apps - On Google TV

Discovery: Hey, there is a TV over here

Pairing: OK, let’s connect

Discovery - recognizing a TV on network

Pairing - establishing trusted communication

Page 36: Second Screen Apps - On Google TV

Discovery: Hey, there is a TV over here

Discovery –recognizing a TV on a network

Page 37: Second Screen Apps - On Google TV

Pairing: OK, let’s connect

Pairing - establishing trusted communication

Page 38: Second Screen Apps - On Google TV

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

Page 39: Second Screen Apps - On Google TV

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/

Page 40: Second Screen Apps - On Google TV

Install BlackJack Demo

Page 41: Second Screen Apps - On Google TV

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

Page 42: Second Screen Apps - On Google TV

Install BlackJack Demo BlackJackTVRemote Uses Anymote Library

Android properties for BlackJackTVRemote

Page 43: Second Screen Apps - On Google TV

What does Anymote do?

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

Page 44: Second Screen Apps - On Google TV

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

Page 45: Second Screen Apps - On Google TV

Activity - implement ClientListener

Manifest – defines service & anymote pairing activity

Page 46: Second Screen Apps - On Google TV

Hit Button Clicked

The sendKeyEvent() method

Page 47: Second Screen Apps - On Google TV

Remote app sends KeyEvent.KEYCODE_H via anymote

TV App gets this key in the onKeyDown() and responds

On the TV App, there is a response to the “H”

Page 48: Second Screen Apps - On Google TV

Sending Intents using Anymote

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

Page 49: Second Screen Apps - On Google TV

Implicit intents likeView a web page

Demo app takes URLDisplays it on TVSimple example, shell for other apps

Page 50: Second Screen Apps - On Google TV

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

Page 51: Second Screen Apps - On Google TV

http://www.informit.com/articles/article.aspx?p=2021960

Page 52: Second Screen Apps - On Google TV
Page 53: Second Screen Apps - On Google TV

RecentPhotoActivity.java

Page 54: Second Screen Apps - On Google TV

Intent App – remote app uses explicit intent

Remote App code to fling intent:

Page 55: Second Screen Apps - On Google TV

Debugging and Running apps on GTV

Get Computer IP addressSet Debugger address on TV settings

ADB connect to TV:adb connect 192.168.1.103

TV is just another device

Page 56: Second Screen Apps - On Google TV

Android 4.2.2 Presentation classDisplay Content on 2nd Screen

Page 57: Second Screen Apps - On Google TV

OUYA Game Consolehttp://www.ouya.tv/devs/

Page 58: Second Screen Apps - On Google TV

- Google TV is a software platform

- Different types of second screen apps

- Enhanced Viewing

- Remote control

- Content Selection

- Interactive

Page 59: Second Screen Apps - On Google TV

- Besides Google TV, Check out

- Watchwith.com

- Movl.com

- http://www.ouya.tv/devs/

Page 60: Second Screen Apps - On Google TV

Carmen Delessiohttp://about.me/carmendelessio

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