'호출'에 해당되는 글 1건

  1. 2011.10.27 INTENT Activity 호출유형

int FLAG_ACTIVITY_BROUGHT_TO_FRONT This flag is not normally set by application code, but set for you by the system as described in the launchMode documentation for the singleTask mode. 
int FLAG_ACTIVITY_CLEAR_TASK

If set in an Intent passed to Context.startActivity(), this flag will cause any existing task that would be associated with the activity to be cleared before the activity is started.


int FLAG_ACTIVITY_CLEAR_TOP

If set, and the activity being launched is already running in the current task, then instead of launching a new instance of that activity, all of the other activities on top of it will be closed and this Intent will be delivered to the (now on top) old activity as a new Intent.

액티비티를 새 인스턴스에 태우지 않고, 현재 테스크에 이미 실행중인 액티비티에 실행한다.  

그 실행된 액티비티 위에 있던 모든 액티비티는 닫히며, 그 인텐트는 새로운 액티비티 처럼 전달될 것이다.

int FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET If set, this marks a point in the task's activity stack that should be cleared when the task is reset.
int FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS If set, the new activity is not kept in the list of recently launched activities.
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.
int FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY This flag is not normally set by application code, but set for you by the system if this activity is being launched from history (longpress home key).
int FLAG_ACTIVITY_MULTIPLE_TASK Do not use this flag unless you are implementing your own top-level application launcher.
int FLAG_ACTIVITY_NEW_TASK

If set, this activity will become the start of a new task on this history stack.

새 액티비티가 테스크 히스토리 스택에 쌓인다. (디폴트 아닌가?)

int FLAG_ACTIVITY_NO_ANIMATION If set in an Intent passed to Context.startActivity(), this flag will prevent the system from applying an activity transition animation to go to the next activity state.
int FLAG_ACTIVITY_NO_HISTORY

If set, the new activity is not kept in the history stack.

새로운 실행된 액티비티가 히스토리 스택에 쌓이지 않는다.

int FLAG_ACTIVITY_NO_USER_ACTION If set, this flag will prevent the normal onUserLeaveHint() callback from occurring on the current frontmost activity before it is paused as the newly-started activity is brought to the front.
int FLAG_ACTIVITY_PREVIOUS_IS_TOP If set and this intent is being used to launch a new activity from an existing one, the current activity will not be counted as the top activity for deciding whether the new intent should be delivered to the top instead of starting a new one.
int FLAG_ACTIVITY_REORDER_TO_FRONT

If set in an Intent passed to Context.startActivity(), this flag will cause the launched activity to be brought to the front of its task's history stack if it is already running.

Context.startActivity() 로 전될된 인텐트일 경우, 이 플래그는 테스크 중에 이미 실행중인 액티비티를 히스토리스택의 제일 위로 올려준다. (새 인텐트가 아니므로 실행시킨 액티비티기 지존에 없다는 실행되지 않는다. 단지 자리만 바꾸는 역할을 한다.)


int FLAG_ACTIVITY_RESET_TASK_IF_NEEDED

If set, and this activity is either being started in a new task or bringing to the top an existing task, then it will be launched as the front door of the task.

이렇게 실행된 액티비티는 새태스크로 시작되거나 가져오거나 이미 존재하는 태스크에 속할 것이다. 그것은 태스크가 처음 실행된 것처럼 실행될 것이다.

int FLAG_ACTIVITY_SINGLE_TOP

If set, the activity will not be launched if it is already running at the top of the history stack.

이 액티비티는 히스토리 스택의 최상위에서 이미 존재할 경우, 실행하지 않을 것이다. (기존에 있는 액티비티를 최상위 스택으로 그대로 가져온다.)

int FLAG_ACTIVITY_TASK_ON_HOME

If set in an Intent passed to Context.startActivity(), this flag will cause a newly launching task to be placed on top of the current home activity task (if there is one). 

That is, pressing back from the task will always return the user to home even if that was not the last activity they saw. This can only be used in conjunction with FLAG_ACTIVITY_NEW_TASK.

이 플래그는 현재 원본 액티비티의 태스크 최상위에 위치로 새롭게 태스크를 시작하도록 한다. (액티비티가 1개일 경우) ?????????

back 버튼을 누르면 항상 Home으로 간다. 심지어 마지막 액티비티가 아닌 것으로 보일 지라도 말이다. 이 플래그는 FLAG_ACTIVITY_NEW_TASK와 함께 사용할 수 있다.

int FLAG_DEBUG_LOG_RESOLUTION A flag you can enable for debugging: when set, log messages will be printed during the resolution of this intent to show you what has been found to create the final resolved list.
int FLAG_FROM_BACKGROUND

Can be set by the caller to indicate that this Intent is coming from a background operation, not from direct user interaction.


int FLAG_GRANT_READ_URI_PERMISSION If set, the recipient of this Intent will be granted permission to perform read operations on the Uri in the Intent's data.
int FLAG_GRANT_WRITE_URI_PERMISSION If set, the recipient of this Intent will be granted permission to perform write operations on the Uri in the Intent's data.
int FLAG_RECEIVER_REGISTERED_ONLY If set, when sending a broadcast only registered receivers will be called -- no BroadcastReceiver components will be launched.
int FLAG_RECEIVER_REPLACE_PENDING If set, when sending a broadcast the new broadcast will replace any existing pending broadcast that matches it.


'IT > Android' 카테고리의 다른 글

media scanning  (0) 2011.10.27
Map API 등록하기  (0) 2011.10.27
EditText 커서위치 설정  (0) 2011.10.27
diplay.getOrientation  (0) 2011.10.27
Activity Recycle  (0) 2011.10.27
Posted by bestrok
,