opening another Android app in a 'new window' from Air

前端 未结 2 950
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 07:22

This is a little involved, so bear with me.

I\'ve got two Android apps - one built in Adobe Air (the \'launcher\') and one downloaded from the google play s

相关标签:
2条回答
  • 2021-01-01 07:39

    What you're calling a "window" is referred to in Android as a "task". You should be able to force the target application to open in a new task by setting appropriate flags, namely FLAG_ACTIVITY_NEW_TASK (note the launchFlags=0x10000000):

    intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=<your-package-name>/.<your-activity-name>;end
    
    0 讨论(0)
  • 2021-01-01 07:44

    The difference between your two scenarios (scenario 1 remains in a single task, scenario 2 starts a new task) is due to each "target" app's intent-filter manifest definition.

    If you do not require a result from the Intent you can add flags (http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK) like below:

    navigateToURL(new URLRequest('intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=com.magix.camera_mx/com.magix.android.cameramx.main.MainMenu;end'));
    
    0 讨论(0)
提交回复
热议问题