nibbo Active Member Licensed User Longtime User Apr 7, 2021 #1 Hi All Is it possible to launch another app in an activity other than main? I have tried but I get the error: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x20000 cmp=projectname.StockMovement/.movestock (has extras) } from ProcessRecord{66df334 4272 : projectName.WarehouseLauncher/u0a50} (pid=4272, uid=10050) not exported from uid 10049 Click to expand... If I change it to main it works OK but i get other problems which are not relevant to this problem... Intent code: B4X: Dim myIntent As Intent myIntent.Initialize(myIntent.ACTION_MAIN,"") myIntent.SetComponent("projectName.StockMovement/.movestock") myIntent.PutExtra("username", Main.sUserName) myIntent.PutExtra("session", Main.SessionID) StartActivity(myIntent) I am guessing I need some manifest changes? Thanks Last edited: Apr 7, 2021
Hi All Is it possible to launch another app in an activity other than main? I have tried but I get the error: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x20000 cmp=projectname.StockMovement/.movestock (has extras) } from ProcessRecord{66df334 4272 : projectName.WarehouseLauncher/u0a50} (pid=4272, uid=10050) not exported from uid 10049 Click to expand... If I change it to main it works OK but i get other problems which are not relevant to this problem... Intent code: B4X: Dim myIntent As Intent myIntent.Initialize(myIntent.ACTION_MAIN,"") myIntent.SetComponent("projectName.StockMovement/.movestock") myIntent.PutExtra("username", Main.sUserName) myIntent.PutExtra("session", Main.SessionID) StartActivity(myIntent) I am guessing I need some manifest changes? Thanks
JordiCP Expert Licensed User Longtime User Apr 7, 2021 #2 Adding this to the manifest should be enough B4X: AddActivityText(MoveStock, <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> ) Upvote 0
Adding this to the manifest should be enough B4X: AddActivityText(MoveStock, <intent-filter> <action android:name="android.intent.action.MAIN" /> </intent-filter> )
nibbo Active Member Licensed User Longtime User Apr 7, 2021 #3 JordiCP said: Adding this to the manifest should be enough Click to expand... Thanks JordiCP, works perfectly Upvote 0
JordiCP said: Adding this to the manifest should be enough Click to expand... Thanks JordiCP, works perfectly