Copy link to clipboard
Copied
Hi I might a have project coming up soon where one of the requirements is that the android air application can launch another application on the device...
In pure java this would look something like this....
Intent LaunchIntent = getPackageManager().getLaunchIntentForPackage("com.rpg.rbar");
startActivity(LaunchIntent);
Does anyone no if I can perform a similar method using as3
Thanks
Aidan
Copy link to clipboard
Copied
Try the below. Found this at the below link.
http://www.blogbyben.com/2013/04/launching-android-app-from-adobe-air-app.html
var url:String = ("intent:#Intent;" + "action=android.intent.action.MAIN;" + "category=android.intent.category.LAUNCHER;" + "component=com.android.settings/.Settings;" + "end");
navigateToURL(new URLRequest(url));
Question I have is, is there any way to get a list of currently installed apps?
Copy link to clipboard
Copied
Hi Mola2Alex!
That snippet of code from Ben you attached is the closest I've found yet to launching an app via Air, but nothing I've found online goes any further.
Have you been able to figure out how to do it since you last commented here?
I imagine the secret lies within the code snippet: "component=com.android.settings/.Settings;".
I know my package name: com.doubleparker.mytestapp. Is that enough to go on?
Copy link to clipboard
Copied
Did you manage to find a solution to this?
I am developing an AIR app for Android that needs to launch another app made in Unity.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now