Support Smart TV for android - android

I have been developed cinema android application in java that show some movies and series the application is work very good
know I want to make that app work on smart TV is there is any way to do that or should I develop another app specified for TV

Unfortunately most of Smart TV are based on web technologies (HTML5, CSS JavaScript) but some manufacturers have been including Android TV as TV platform (Sony, Phillips, Thompson...)
Depending of your development, you can migrate directly (or making few changes) your current app to the Android TV requirements
For other TV platforms, like LG (webos) Samsung (Tizen) etc you will need to create your app using HTML, CSS, JavaScript and use the SDK to access native functions
BR

Related

Is it possible to use app bundle for android smartphones but not for Android TV?

I am just considering to use the app bundle for my application. Right now I am a developer who is developing an application for Smartphones and Tablets. Another developer is creating my application for Android TV. I am using Android Studio (java, kotlin) and he is using some javascript framework.
My question is: If I start to upload my app to google play using the app bundle is there any chance to affect Android TV build? I'd like to avoid the situation when Android TV takes some ask for smartphones but not for Android TV.
If I understand correctly, you are currently publishing two separate APKs (one for phone+tablet, and one for TV) with the same package name and are releasing them together, is that correct?
If so you can definitely replace the phone/tablet APK with an App Bundle and keep releasing a separate APK for TV.

Any way to make common APK for API-15+ on mobile and API-21+ on TV?

I looked at the Google UniversalMusic Player code sample for making a common APK with a common codebase to support all device types from mobiles to TV, as given here:
https://github.com/googlesamples/android-UniversalMusicPlayer
My requirement is to have a single APK support different min API versions on mobile and TV - min API-15 for mobile and min API-21 for TV (since Android TV starts only from API-21)
How could I do this with minimal code duplication (ie. if making a separate mobile and tv module then I have to replicate the code in both modules) ?
Thanks !
I think the best solution is to create two APKs.
You can create a project for mobile and TV, they will be in separate modules, but in the same project, then you can create a common module that you will put everything that both will use, to avoid duplicated code.
After creating the common module, just add to both mobile and tv gradle: compile project(':common').
Then you will have all the code that is in the common module available for both mobile and tv.
So you will have different gradle files (and different sdk versions) for mobile and TVs and you will have a common module that you can keep the code that both will use.
I think this is the best approach because you can put all controls that you need on TV (like remote control, view focus control, etc) in the TV project, it will not have any impact in the mobile.
To publish the APP you can follow this so you can publish both APK in the same play store project.

is GuidedStepFragment for android Mobile or only android TV?

The fragment is included in android.support.v17.leanback.app.GuidedStepFragment which is apart of Leanback library.
I think Leanback is for Android TV, will GuidedStepFragment work if i try to implement it in a mobile device?
Here is an example of the fragment in action: https://youtu.be/RhXuihvQ4Lg
Leanback is a library specifically designed for TV, as stated on developer.android.com:
v17 Leanback Library
The android.support.v17.leanback package provides APIs to support building user interfaces on TV devices. It
provides a number of important widgets for TV apps.
But Nothing prevent you to use the widgets available in the library in your mobile app for Android 4.2 and higher. You will probably have to make some adaptations since the Android TV have a different kind of interaction (TV remote and game controller) compared to the mobile device.
You can make a quick test of the GuidedStepFragment running the Android TV Leanback example on your mobile device and selecting:
More Samples > Guided Step First

Need advices on android smart tv remote navigation

I'm porting over an android mobile app into an smart tv app (android based). There are some navigation problems by using the remote controller. I think that's because I don't need to take care of focus issue most of the time in the mobile app. Is there any good tutorials or articles about porting over the android mobile app into android smart tv, especially regarding with remote navigation part? Thanks
You should take a tour at Android TV official design guide pages at http://developer.android.com/design/tv/index.html
And especially you should pay attention to the UI design section http://developer.android.com/design/tv/patterns.html
There is also a session on the topic of "Create Quality Apps for TV" at
http://developer.android.com/distribute/essentials/quality/tv.html

to create an android app for tv

I have worked on developing an android app for mobile platform in past. Now I need to create an android app for the the TV platform. I am new to the TV part . Any useful links/information would help.
Thanks
You cannot create applications for Google TV yet.
When this becomes possible, there will be plenty of useful links/information at that time.
Sorry!

Categories

Resources