Bhargav Panchal Bhargav Panchal - 1 month ago 13
Java Question

What is sharedUserId in Android, and how is it used?

I am confused in sharedUserID.what is use of sharedUserId?How to use?Where to use in android?

Answer

SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManiFest.xml like,

 manifest xmlns:android="http://schemas.android.com/apk/res/android"
   android:sharedUserId="android.uid.shared"
android:sharedUserLabel="@string/sharedUserLabel"

and define the shared parameter in Android.mk for that app, like,

LOCAL_CERTIFICATE := shared

Hope its helpful to you..