Skip to main content
Known Participant
September 26, 2012
Question

Can you launch an android app from an android app built with air?

  • September 26, 2012
  • 1 reply
  • 2074 views

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

This topic has been closed for replies.

1 reply

Inspiring
February 5, 2014

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?

Participant
January 15, 2016

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?

simonk10452897
Participating Frequently
February 3, 2017

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.