WEB开发网
开发学院手机开发Android 开发 Android 2.1 的 intent 的 dialer 实例 阅读

Android 2.1 的 intent 的 dialer 实例

 2010-03-18 16:12:00 来源:WEB开发网   
核心提示:method,or be itself finished and restarting with the new intent. If it has declaredits launch mode to be "multiple" (the default) it will be finished
method,

or be itself finished and restarting with the new intent. If it has declared

its launch mode to be "multiple" (the default) it will be finished and

re-created; for all other launch modes it will receive the Intent in the current instance.

This launch mode can also be used to good effect in conjunction

with FLAG_ACTIVITY_NEW_TASK: if used to start the root activity of a task,

it will bring any currently running instance of that task to the foreground,

and then clear it to its root state. This is especially useful, for example,

when launching an activity from the notification manager.

See the Application Model documentation for more details on tasks.

Constant Value: 67108864 (0x04000000)

public static final int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS

If set, the new activity is not kept in the list of recently

launched activities.

Constant Value: 8388608 (0x00800000)

public static final int FLAG_ACTIVITY_FORWARD_RESULT

If set and this intent is being used to launch a new activity

from an existing one, then the reply target of the existing

activity will be transfered to the new activity. This way the

new activity can call setResult(int) and have that result sent

back to the reply target of the original activity.

Constant Value: 33554432 (0x02000000)

public static final int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY

If set, this activity is being launched from history (longpress home key).

Constant Value: 1048576 (0x00100000)

public static final int FLAG_ACTIVITY_MULTIPLE_TASK

Do not use this flag unless you are implementing your own top-level

application launcher. Used in conjunction with FLAG_ACTIVITY_NEW_TASK

to disable the behavior of bringing an existing task to the foreground.

上一页  1 2 3 4 5 6 7  下一页

Tags:Android intent dialer

编辑录入:coldstar [复制链接] [打 印]
赞助商链接