darklord
darklord

Reputation: 5167

How to run an android TV app on real TV

I am in the process of learning android TV programming. I want to get the hardware needed ready. However on the website http://developer.android.com/training/tv/start/start.html I can only find the guideline to run on emulator. I am curious how can I run an app on an real TV.

When developing for android phone. I need to use a usb cable to connect to the phone and enable usb debugging on the phone. What about running on TV?

And what features need the TV have? I assume the TV need some smart feature and some kind of android runtime platform. How can I facilitate this?

If I don't have any smart TV, can I use a non-smart TV with some interface to do developing?

Upvotes: 6

Views: 3744

Answers (3)

Cecil Paul
Cecil Paul

Reputation: 643

When you connect your android TV/Box to a network through wifi/LAN Cable, go to network settings-get the advanced options-select ip settings-chose static ip address. give a static ip for example 10.10.14.219 save it. then go to your studio terminal- type 'yum install adb' press enter after the installation process -in terminal -

'adb kill-server' 

press enter then

'adb start-server'

press enter.then

'adb connect 10.10.14.219'

your device will be connected to the studio. then you can run the application directly to TV/box as like you do in the mobile with usb.

Upvotes: 4

Yogesh Rathi
Yogesh Rathi

Reputation: 6509

There are multiple ways, but basically people use below of them
1) Screen mirroring
2) HDMI

How to use
1)- If you use screen mirroring then your device have screen mirroring support and device also support, this technology used wifi.
2)- If you use HDMI then you need android mini pc device which have atleast kitkat 4.4 version and using hdmi cable you can use.

Upvotes: -1

CommonsWare
CommonsWare

Reputation: 1007658

What about running on TV?

That documentation is for Android TV. You need an Android TV device, such as the Nexus Player.

And what features need the TV have?

That will depend upon your Android TV device. If the Android TV device is separate from the TV, like the Nexus Player, you need whatever the Android TV device says you need (usually, just an HDMI port). There are supposed to be TVs coming up that have Android TV as part of the TV itself, but I do not know if there are any such TVs available today.

I use a non-smart TV with some interface to do developing?

You can buy an Android TV "set-top box", like the Nexus Player.

Upvotes: 3

Related Questions