Okay Both apps are mine so I can change code in either app. Currently App B hasn't been modified in any way and is just a regular stand alone app.
App A goes to call App B using this code:
Intent intent = new Intent(Intent.ACTION_MAIN); intent.setComponent(new ComponentName("net.pawworks.NurseTorando","net.pawworks.NurseTorando.lung")); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(intent);
I do got it in a catch block for ActivityNotFoundException and deal with that one. but when that exception doesn't happen I get a this permission denied error
there is an activity in the net.pawworks.NurseTorando app that is named lung it's not the one that first comes up if you launch it stand alone. but it's the one i want it to start with when called from app A.
this is the error I get: 07-07 08:47:47.624: ERROR/AndroidRuntime(11129): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=net.pawworks.NurseTorando/.lung } from ProcessRecord{484bc180 11129:net.pawworks.emergency/10123} (pid=11129, uid=10123) requires null
I can modify the 2nd app, but I still want it to start on a different screen then this when launched by itself. how can I fix this?