Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
アプリ終了後、一定時間経過後再起動しても同じ場所から再開したい。
159 views
Skip to first unread message
Rikky
unread,
Mar 25, 2012, 9:34:00 PM
3/25/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
アプリを終了し、かなり時間が経ってから再度起動しても同じ場所から再開したいと思っています。(可能であれば、スクロールもそのままで再起動したいと考えています。)
android:alwaysRetainTaskState="ture"当たりが関係しているのかなとは思いましたが分かりませんでした。
よろしくお願いいたします。
MORIHIRO
unread,
Mar 26, 2012, 9:38:56 AM
3/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
アプリを「終了」して再度起動する場合は、
onPuase()で状態保存
onResume()やonCreate()等で状態復帰
という処理を自前でやるしかないように思います。
http://developer.android.com/reference/android/app/Activity.html#SavingPersistentState
2012年3月26日月曜日10時34分00秒 UTC+9 Rikky:
Rikky
unread,
Mar 26, 2012, 8:15:13 PM
3/26/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
ありがとうございます。参考にさせてもらいます。
2012年3月26日月曜日22時38分56秒 UTC+9 MORIHIRO:
Reply all
Reply to author
Forward
0 new messages