I am confused in sharedUserID.what is use of sharedUserId?How to use?Where to use in android?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
By default, Android assigns a user id to an application. It is the unique id for your application and means that nobody except the user with this id can reach your application's resources. You cannot access the data of an other application or run it in your current process. when, from an activity, an activity of another application is called android passes the control to the new activity called and they run in totally different processes.
However, in your manifest file, you can explicitly identify a user id for your application. When you declare the same user id for more than one application, they can reach each other's resources (data fields, views, etc.). You can display data from another application or run it in your process.
this is how you use it: from http://developer.android.com/guide/topics/manifest/manifest-element.html
SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManifest.xml like,
and define the shared parameter in Android.mk for that app, like
Hope its helpful to you.