ActivityManager.RecentTaskInfo.Id Property
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.
If this task is currently running, this is the identifier for it.
[Android.Runtime.Register("id")]
public int Id { get; set; }
[<Android.Runtime.Register("id")>]
member this.Id : int with get, set
Property Value
- Attributes
Remarks
If this task is currently running, this is the identifier for it. If it is not running, this will be -1.
This member is deprecated. As of android.os.Build.VERSION_CODES#Q
, use RecentTaskInfo#taskId
to get the task id and RecentTaskInfo#isRunning
to determine if it is running.
Java documentation for android.app.ActivityManager.RecentTaskInfo.id
.
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.