Android 2.1 的 intent 的 dialer 实例
2010-03-18 16:12:00 来源:WEB开发网See Also
* getFlags()
* addFlags(int)
* FLAG_GRANT_READ_URI_PERMISSION
* FLAG_GRANT_WRITE_URI_PERMISSION
* FLAG_DEBUG_LOG_RESOLUTION
* FLAG_FROM_BACKGROUND
* FLAG_ACTIVITY_RESET_TASK_IF_NEEDED
* FLAG_ACTIVITY_BROUGHT_TO_FRONT
* FLAG_ACTIVITY_CLEAR_TOP
* FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
* FLAG_ACTIVITY_FORWARD_RESULT
* FLAG_ACTIVITY_MULTIPLE_TASK
* FLAG_ACTIVITY_NEW_TASK
* FLAG_ACTIVITY_NO_HISTORY
* FLAG_ACTIVITY_SINGLE_TOP
* FLAG_RECEIVER_REGISTERED_ONLY
可以看出在以上的flags常量中没有NEW_TASK_LAUNCH.
public static final int FLAG_ACTIVITY_NEW_TASK
If set, this activity will become the start of a new task on this history stack.
A task (from the activity that started it to the next task activity) defines an
atomic group of activities that the user can move to. Tasks can be moved to the
foreground and background; all of the activities inside of a particular task
always remain in the same order. See the Application Model documentation for
more details on tasks.
This flag is generally used by activities that want to present a "launcher" style
behavior: they give the user a list of separate things that can be done, which
otherwise run completely independently of the activity launching them.
When using this flag, if a task is already running for the activity you are now
starting, then a new activity will not be started; instead, the current task will
simply be brought to the front of the screen with the state it was last in. See
FLAG_ACTIVITY_MULTIPLE_TASK for a flag to disable this behavior.
This flag can not be used when the caller is requesting a result from the
更多精彩
赞助商链接