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

前端 未结 2 1042
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  萌比男神i
    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=/.;end
    

提交回复
热议问题