Process.MyUid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the identifier of this process's uid.
[Android.Runtime.Register("myUid", "()I", "")]
public static int MyUid ();
[<Android.Runtime.Register("myUid", "()I", "")>]
static member MyUid : unit -> int
Returns
- Attributes
Remarks
Returns the identifier of this process's uid. This is the kernel uid that the process is running under, which is the identity of its app-specific sandbox. It is different from #myUserHandle
in that a uid identifies a specific app sandbox in a specific user.
Java documentation for android.os.Process.myUid()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.