views:

56

answers:

1

I have an Activity X which is only accessible after you've entered a valid credential.

How can I prevent other apps from calling startActivity with an Intent pointing to X ?

e.g.

Intent intent = new Intent( this, ActivityX.class );
startActivity( intent );

Basically I don't want Activity X to be exported to any apps except my app.

+2  A: 

Check out the "Declaring and Enforcing permissions" section of the Security and Permissions Android SDK documentation.

JRL
Thanks. It now throws a SecurityException everytime an app does not share a digital sig with my app.
Jacques René Mesrine