`
xinanadu
  • 浏览: 227378 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

启动其他应用的activity

 
阅读更多

启动其他应用的activity,只需要两个东西。该应用的包名,被启动的activity的class全名。两个都是String类型。参考android文档:

 Intent android.content.Intent.setClassName(String packageName, String className)

 还需一点:被启动的activity需设置标签:

 android:exported="true"

 

这样就够了!

0
4
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics