Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

New Here ,
Sep 26, 2012 Sep 26, 2012

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

TOPICS
Development
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Feb 05, 2014 Feb 05, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 15, 2016 Jan 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 03, 2017 Feb 03, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines