Udostępnij za pośrednictwem


Binder.CallingPid Property

Definition

Return the ID of the process that sent you the current transaction that is being processed.

public static int CallingPid { [Android.Runtime.Register("getCallingPid", "()I", "")] get; }
[<get: Android.Runtime.Register("getCallingPid", "()I", "")>]
static member CallingPid : int

Property Value

Attributes

Remarks

Return the ID of the process that sent you the current transaction that is being processed. This PID can be used with higher-level system services to determine its identity and check permissions. If the current thread is not currently executing an incoming transaction, then its own PID is returned.

Warning: oneway transactions do not receive PID.

Java documentation for android.os.Binder.getCallingPid().

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.

Applies to