Skip to content

ActivityManager

RUBIS edited this page Aug 7, 2017 · 2 revisions

public class ActivityManager
extends Object

java.lang.Object
↳ android.app.ActivityManager

This is the extension of the original ActivityManager to provide NANS featuring methods.


Summary

Constants

Type Name
int SET_EXTERNAL_DISPLAY_AND_STAY
int SET_EXTERNAL_DISPLAY_AND_GO_HOME

Public methods

Return Type Prototype
boolean setExternalDisplay(String packageName, Display display)
boolean setExternalDisplay(int taskId, Display display)
boolean setExternalDisplay(String packageName, Display display, int flag)
boolean setExternalDisplay(int taskId, Display display, int flag)

Constants

SET_EXTERNAL_DISPLAY_AND_STAY

int SET_EXTERNAL_DISPLAY_AND_STAY

Set the external display, then stay here.

Constant Value: 0 (0x00000000)


SET_EXTERNAL_DISPLAY_AND_GO_HOME

int SET_EXTERNAL_DISPLAY_AND_GO_HOME

Set the external display, then start the launcher activity.

Constant Value: 1 (0x00000001)


Public methods

setExternalDisplay

boolean setExternalDisplay (String packageName, Display display)

Parameters

Name Description
packageName String The name of the package that is to be moved.
display Display The Display object where the package will be moved.

setExternalDisplay

boolean setExternalDisplay (int taskId, Display display)

Parameters

Name Description
taskId int The identifier of the task to be moved.
display Display The Display object where the package will be moved.

setExternalDisplay

boolean setExternalDisplay (String packageName, Display display, int flag)

Ask that the package associated with a given pacakge name be moved to the display with the flag.

Parameters

Name Description
packageName String The name of the package that is to be moved.
display Display The Display object where the package will be moved.
flag int Additional operational flag.
Value is either SET_EXTERNAL_DISPLAY_AND_STAY or SET_EXTERNAL_DISPLAY_AND_GO_HOME.

setExternalDisplay

boolean setExternalDisplay (int taskId, Display display, int flag)

Ask that the task associated with a given task ID be moved to the display with the flag.

Parameters

Name Description
taskId int The identifier of the task to be moved.
display Display The Display object where the package will be moved.
flag int Additional operational flag.
Value is either SET_EXTERNAL_DISPLAY_AND_STAY or SET_EXTERNAL_DISPLAY_AND_GO_HOME.

Clone this wiki locally