我的应用 AndroidManifest.xml
<activity
android:name="com.test.orc.IdentifyIdcards"
android:screenOrientation="landscape" >
<intent-filter>
<action android:name="com_test_orc_IdentifyIdcards" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
所以任何应用程序都可以调用我的应用程序
Intent intent = new Intent();
intent.setAction("start_photo_identify_picture_activity");
startActivity(intent);
但是我限制只有包名是com.test.idcard
才能调用我的app,怎么办?
最佳答案
您需要指定 <permission>
在 list 上,特别是你想要
android:protectionLevel="signature"
Read more here: https://developer.android.com/guide/topics/manifest/permission-element.html
关于android - 指定调用此应用的包名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40651370/