How to launch android app?

More
2 years 3 months ago #2224 by RoyN
How to launch android app? was created by RoyN
Hi,

how can I have the android driver launch an app in the android driver?

I tried using "AV|7~Launch~com.valor.mfc.droid.tvapp.generic" (Where AV|7 is my Android Box) but it does not work, am I doing something wrong? I know the app name is correct as if I run the following in ADB: "adb shell monkey -p com.valor.mfc.droid.tvapp.generic -v 1" it brings the correct app to the front? unless I'm missing something? Any way to debug this?

Please Log in to join the conversation.

More
2 years 3 months ago #2229 by Nillaz
Replied by Nillaz on topic How to launch android app?
I'm not sure exactly why but there are some apps that simply do not respond to the LAUNCH command. I ran into this problem with 3 or 4 apps and had to work around it by using a FLIRC and a button mapping program to tie those apps to keyboard presses.
The following user(s) said Thank You: RoyN

Please Log in to join the conversation.

More
2 years 3 months ago #2230 by RoyN
Replied by RoyN on topic How to launch android app?
Thats interesting, when you use the FLIRC I imagine you are the using the smartremote hub as an IR emitter? or you have a dedicated IR hardware? I was trying to keep IR out but it may just work better... There is a delay in controlling the android box and it seems like it wont pass the wife test :(

Please Log in to join the conversation.

More
2 years 3 months ago #2233 by Nillaz
Replied by Nillaz on topic How to launch android app?
I'm using a Global Cache ip2ir rather than the remote's built in IR emitter. I don't have LOS to most devices in most rooms and I didn't want to need to point the remote at anything regardless.

I was using the Androidtv driver to control my Shields and it was acceptably fast, but I did switch to total IR control because it's even faster to respond...noticeably so.

Please Log in to join the conversation.

More
2 years 3 months ago #2234 by RoyN
Replied by RoyN on topic How to launch android app?
Hmmm I wanted to potentially leave IR behind, but if its quicker it may just be the easiest albeit not most elegant solution... I'd have to att an ip2ir to each location but shouldnt be too much of an issue... Actually just looking I'd need to get a WI2IR for some locations as unfortunately i dont have ethernet everywhere... Quite a cost on them too... IrUSB would be cheaper and keep me all IP controlled... choices choices lol

Please Log in to join the conversation.

More
2 years 3 months ago #2277 by davep
Replied by davep on topic How to launch android app?
In the myServer/data folder there is a file called tvapp.json. This is the file that the AndroidTV driver uses to try to associate a known app to a launch command.

If you look in that file for com.valor.mfc.droid.tvapp.generic you'll see it associated with an app named My Family Cinema

It's launch command is com.valor.mfc.droid.tvapp.generic/com.cv.media.app.ui.SplashStub

You can try either of these commands to see if they will launch.

AV|<id>~Launch~My Family Cinema
or
AV|<id>~Launch~com.valor.mfc.droid.tvapp.generic/com.cv.media.app.ui.SplashStub

And if adb is too slow follow the irusb thread for a possible solution.

Please Log in to join the conversation.

Time to create page: 0.244 seconds