共用方式為


ActivityManager.RunningServiceInfo.LastActivityTime Property

Definition

The time when there was last activity in the service (either explicit requests to start it or clients binding to it).

[Android.Runtime.Register("lastActivityTime")]
public long LastActivityTime { get; set; }
[<Android.Runtime.Register("lastActivityTime")>]
member this.LastActivityTime : int64 with get, set

Property Value

Attributes

Remarks

The time when there was last activity in the service (either explicit requests to start it or clients binding to it). This is in units of android.os.SystemClock#uptimeMillis().

Java documentation for android.app.ActivityManager.RunningServiceInfo.lastActivityTime.

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