Android.App.ActivityManager.AddAppTask Method
Add a new NoType:android/app/ActivityManager$AppTask;Href=../../../reference/android/app/ActivityManager.AppTask.html for the calling application.

Syntax

[Android.Runtime.Register("addAppTask", "(Landroid/app/Activity;Landroid/content/Intent;Landroid/app/ActivityManager$TaskDescription;Landroid/graphics/Bitmap;)I", "GetAddAppTask_Landroid_app_Activity_Landroid_content_Intent_Landroid_app_ActivityManager_TaskDescription_Landroid_graphics_Bitmap_Handler")]
public virtual int AddAppTask (Activity activity, Android.Content.Intent intent, ActivityManager.TaskDescription description, Android.Graphics.Bitmap thumbnail)

Parameters

activity
The activity that is adding the entry. This is used to help determine the context that the new recents entry will be in.
intent
The Intent that describes the recents entry. This is the same Intent that you would have used to launch the activity for it. In generally you will want to set both Android.Content.Intent.FLAG_ACTIVITY_NEW_DOCUMENT and Android.Content.Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS; the latter is required since this recents entry will exist without an activity, so it doesn't make sense to not retain it when its activity disappears. The given Intent here also must have an explicit ComponentName set on it.
description
Optional additional description information.
thumbnail
Thumbnail to use for the recents entry. Should be the size given by ActivityManager.AppTaskThumbnailSize. If the bitmap is not that exact size, it will be recreated in your process, probably in a way you don't like, before the recents entry is added.

Returns

Documentation for this section has not yet been entered.

Remarks

Add a new NoType:android/app/ActivityManager$AppTask;Href=../../../reference/android/app/ActivityManager.AppTask.html for the calling application. This will create a new recents entry that is added to the end of all existing recents.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1