''[[MobileApp>Mobile Application 入門]]'' > ''[[Android>Android]]'' > ''Activity''
#freeze
''[[MobileApp>Mobile Application Guide]]'' > ''[[Android>Introduction to Android]]'' > ''Activity''


~
*Activity を取り巻くクラス [#o0a80281]
*The peripheral Class of Activity [#o0a80281]
    Activity and the inheritance relation are described as follows. 
#ref(activity.gif,nolink);

#ref(activity.gif);

~

*Activity のライフサイクル [#s8e08332]
#ref(activity.jpg);
*Activity's Life Cycle [#s8e08332]
#ref(activity.jpg,nolink);

~
*Activity のシーケンス [#o62c0353]
#ref(sequence.png);
*Sequence of Activity [#o62c0353]
#ref(sequence.png,nolink);


**フォアグラウンド [#g42bbf6a]
**ビジブル [#hfe1a50e]
**バックグラウンドアクティビティ [#s9949908]
**Foreground [#g42bbf6a]
**Visible [#hfe1a50e]
**Backing ground activity [#s9949908]


*利用したいメソッド [#ybf700bb]
~
#ref(method.png);
~

*Method that can be used [#ybf700bb]
~
*Historyスタック [#e0f23e70]
#ref(method.png,nolink);

~
*History Stack [#e0f23e70]
  Activityが生成された場合、前回のActivityをそのままの状態でオブジェクト丸ごとhistory stackというActivityのコレクションに格納する。

~
*Activityの起動モード [#d69766ff]
  Activityには、4種類の起動モードがあり~

*Startup mode of Activity  [#d69766ff]
  The ACTIVITY has four start-up mode.~

~
  ・standard (デフォルト モード)~
  ・singleTop~
  ・singleTask~
  ・singleInstance~
~
  参考 - [[Android Dev. サイト>http://developer.android.com/intl/ja/guide/topics/fundamentals.html#lmodes]]

***LaunchMode attribute [#of4a0d38]
 To start "Activity", there are the four attributes.~

  "standard"(Default Mode)~
  "singleTop"~
  "singleTask"    ひとつのタスクのみしか開始できません~
  "singleInstance"  ひとつのタスクのみしか開始できません~


  FLAG_ACTIVITY_NEW_TASK~
  FLAG_ACTIVITY_CLEAR_TOP~
  FLAG_ACTIVITY_RESET_TASK_IF_NEEDED~
  FLAG_ACTIVITY_SINGLE_TOP~


~
*参考サイト [#xce87684]
  アクティビティ実装時の勘所~
  http://codezine.jp/article/detail/4842~
  ~
  画面遷移~
  http://d.hatena.ne.jp/hidecheck/20091202/1259767425



~
  ''[[戻る>Android]]''
  ''[[Back>Introduction to Android]]''


Front page   New List of pages Search Recent changes   Help   RSS of recent changes