一个activity页面中调用其他app的activity
1、被调用者设置:
当被启动的页面的activity在AndroidManifest.xml配置的activity 节点中默认的 android:exported = "true" ,满足下面条件:
1、activity下的Intent-filter中的catergory android:name 节点设置为:android.intent.category.DEFAULT
2、activity下的intent-filter中设置Action节点,节点name一般按照域加intent.action.actionName即可在其他应用找按该action启动。如comwxt.intent.action.loadActivity
即可被其他应用调用启动。调用时使用action 的name.
2、调用者调用代码:
调用代码: Intent i = new Intent("com.wxt.intent.action.launchedApp"); startActivity(i)即可。