由网友(Luminary 发光体)分享简介:我有一个活动X中,已经进入一个有效的凭证后才能访问。 I have an Activity X which is only accessible after you've entered a valid credential. 如何从调用startActivity,意图指向于X prevent其他应用程序?How...
我有一个活动X中,已经进入一个有效的凭证后才能访问。
I have an Activity X which is only accessible after you've entered a valid credential.
如何从调用startActivity,意图指向于X prevent其他应用程序?
How can I prevent other apps from calling startActivity with an Intent pointing to X ?
例如
Intent intent = new Intent( this, ActivityX.class );
startActivity( intent );
基本上我不想活动X要出口到任何应用,除了我的应用程序。
Basically I don't want Activity X to be exported to any apps except my app.
推荐答案
查阅声明并强制执行的权限的中的安全性和权限的Android SDK文档。
Check out the "Declaring and Enforcing permissions" section of the Security and Permissions Android SDK documentation.
相关推荐
最新文章