Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing apps from invoking my Activity

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.

like image 938
Jacques René Mesrine Avatar asked Oct 15 '09 10:10

Jacques René Mesrine


People also ask

How do I stop apps from accessing my personal data?

On Android, go to Settings and then Apps and Notifications. Click on each app and then select Permissions to see what that app is accessing.

Can an app track your activity?

If you have any apps installed on your mobile phone — be it games, news or fitness apps — it's likely that you are sending some kind of data about your identity, preferences, or physical location to Google, Facebook and other companies without even knowing.


1 Answers

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

like image 179
JRL Avatar answered Sep 24 '22 04:09

JRL