Android Question Intent runned app as foreground always ?

Drago Bratko

Active Member
Licensed User
Longtime User
From my app, I run other app with following code :

B4X:
                Dim Intent1 As Intent
                Dim pm As PackageManager
                Intent1 = pm.GetApplicationIntent("com.tcx.sipphone14")
                StartActivity(Intent1)

This works fine.
But problem appears when this app (3CX) gets in background. Then at some stage Android (I guess) kill's it, and is not anymore active.
Is there a way to open app, and makes sure that it will not be closed by OS ? Something link "Service.AUTOMATIC_FOREGROUND_ALWAYS" but for outside app ?
 

DonManfred

Expert
Licensed User
Longtime User
You can not control other apps.
 
Upvote 0
Top