Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
【android-group-japan】Activity自身に再起動をかけることは可能でしょうか?
7,256 views
Skip to first unread message
安藤玲生
unread,
Jun 28, 2012, 8:34:33 PM
6/28/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
お疲れ様です。
いきなりですが、質問です。
Activity自身に再起動をかけることは可能でしょうか?
以上よろしくお願いいたします。
安藤玲生
unread,
Jul 3, 2012, 8:38:11 PM
7/3/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
みなさん、ご教授ありがとうございました。
安藤玲生
unread,
Jul 3, 2012, 11:45:08 PM
7/3/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
お疲れ様です。安藤と申します。
突然ですが質問です。
やりたいこと : 通信で取得したデータをリストに反映しているのですが、定期的に通信でデータを取得する場合、定期更新前と同じカーソル位置にさせたい。
サーバから返却されるデータは150件きます。それをアプリ内で1ページ25件づつ
表示し、画面下部にあるボタンを押すと次の25件がリストにプラスされていく
画面構成になります。一度の通信で全データ件数取得できるので、下部のボタン
を押したときは通信してません。
また、手動更新ボタンがあるのですが、それを押すと、通信を行い、画面を再構
成し、カーソル位置は先頭に戻しております。
list.getListView().setSelection(0);//カーソル位置を先頭に戻す。
今回問題になっているのは、10秒ごとの定期通信でカーソル位置が先頭に戻すの
はまずいので、何か良い案がみなさんありましたらご教授のほどよろしくお願
いいたします。
以上
Reply all
Reply to author
Forward
0 new messages