Migrate an AndroidTV application to a phone - android-tv

Is there any process, workaround, tutorial or anything to migrate an androidTV application to a phone?
Thanks for your time.

Unfortunately, I only see examples and tutorials on installing mobile app to AndroidTV. You can check it in this thread: Installing android mobile apps on android TV
Perhaps the single most important thing in your manifest would be
<manifest>
<uses-feature android:name="android.hardware.touchscreen"
android:required="false" />
...
</manifest>
to allow the APK to be installed on TV.
Then you can deal with other subject mentioned in the comments as LEANBACK_LAUNCHER.
You need to program separate mobile apps for TV and phone devices.

Related

Android Management API (COSU) on AndroidTV?

Android Management APIs are supposed to be "compatible with any device running Android 5.1 or above that has Google Play installed." I really want that to be true, but am having trouble with Android TVs. (Specifically, a NexBox A95x and a TX3mini I'm testing with.)
My stumbling point is how to enter the enrollment token into the device when provisioning it? I had no problem with a Samsung tablet. But, the Android TVs don't use the same startup wizard after hardware reset, so there doesn't seem to be an opportunity to trigger a QR reader, or manually enter the token. I've tried entering the enrollment token into Google Play app (in lieu of the email or phone number to log in), but no luck.
Any ideas or insight how to make this work? If anyone knows a definitive reason why this can't be made to work (e.g. Management APIs don't work on AOSP) that'd be helpful information too.
Clarification (Updated 26 Dec 2017)
Here's a minimal, complete, and verifiable example of the Google Management APIs. The Quickstart exercise from Google, themselves.
Problem: The Quickstart exercise doesn't seem to work with Android TV (tested on a NexBox A95x and a TX3mini). The blocker appears on this step: (Provision A Device). The Android TVs have their own setup wizards that do not accept an Android For Work enrollment token. (I have completed the Quickstart on a Samsung tablet without problem.)
Google's documentation says the Management APIs are "compatible with any device running Android 5.1 or above that has Google Play installed" so it seems these Android TVs should qualify.
Has anyone found a workaround to do complete the Management API Quickstart on an Android TV?
As far as I know the Android Management API doesn't supports Android-based OS's like Android TV, Android Wear, Android Auto or Android Things. It just supports standard Android for phones and tablets.

Using GCM for push notifications to both Android and iOS devices

I am working on an iOS app which need to get push notifications(using GCM) from web service(Made of Python).
Currently the web service works fine with Android devices, but it reports Error=MismatchSenderId, when I check this error in the online doc, it suggests the sender_id and API_key are not matched. The thing is, as I understand it(could be wrong), for iOS SDK, unlike the Android's, it doesn't need sender_id.
The tricky part is I have no access to the web service yet(which the collaboration party claim the Android app works fine with it). Could anyone shred a light on what steps should I take to fix this issue?
THanks in advance.

How to get Android TV app listed in Entertainment Apps on home screen?

I had my first Android TV app go live last night, but it has to be searched for in Google Play. How do you get your app listed in the Entertainment Apps section of the Home screen (and in the Google Play Store on Android TV) so people can actually find it?
It turns out that the Entertainment Apps section does not include all Android TV apps like I had thought. It is a curated list. So unfortunately that means Android TV apps have the same likelihood to be discovered as regular Android apps, and it makes the Andoid TV ecosystem look much smaller to the user than it (presumably) is. I guess I was expecting something more like Roku's channel store.

How to tell if my iPad and iOS Simulator are using the same iCloud account?

I am trying to sync my iPad with the iOS simulator (8.1.1) for debugging under XCode 6.1. How can I tell if they are both using the same iCloud account? I have looked in Google and SO, but found nothing that would answer my question.
Thanks...
Open up the Settings app, and scroll down to iCloud. It lists your account below "iCloud"

What do I need to install to Xcode to develop Apple Tv apps?

I'm currently searching for a plugin that installs the required frameworks to program apps for a jailbroken Apple Tv but I can't find it. If anyone knows of anything please tell me.
Go here http://www.iosopendev.com
It installs stuff to Xcode making it easier to develop for jailbroken devices. You can start there for the Apple TV

Resources