启动其他应用的activity,只需要两个东西。该应用的包名,被启动的activity的class全名。两个都是String类型。参考android文档:
Intent android.content.Intent.setClassName(String packageName, String className)
还需一点:被启动的activity需设置标签:
android:exported="true"
这样就够了!
启动其他应用的activity,只需要两个东西。该应用的包名,被启动的activity的class全名。两个都是String类型。参考android文档:
Intent android.content.Intent.setClassName(String packageName, String className)
还需一点:被启动的activity需设置标签:
android:exported="true"
这样就够了!