Android Question Starting Intent not main

nibbo

Active Member
Licensed User
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

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:
Top