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.
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.
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.
Check out the "Declaring and Enforcing permissions" section of the Security and Permissions Android SDK documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With