Getting context of other applications (processes) in my app: Android

后端 未结 2 1723
醉酒成梦
醉酒成梦 2021-01-16 04:39

In my application I need to access context of other installed apps. Is it possible to get context using package name of any app?

And if I\'m accessing context of ot

相关标签:
2条回答
  • 2021-01-16 04:41

    It's a bit old and will not give access to other app context but this is how you pass data between applications: http://developer.android.com/guide/topics/providers/content-provider-basics.html

    0 讨论(0)
  • 2021-01-16 04:52

    try this

    public abstract Context createPackageContext (String packageName, int flags)
    
    0 讨论(0)
提交回复
热议问题