Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
の中で作成ListViewしています。メソッドでメソッドを呼び出しますが、アクティビティを再開するとリストが空になります。でメソッドを再度呼び出す必要がありますか? ありがとうございました。AsyncTaskFragmentonActivityCreatedAsyncTask's execute()onPause()execute()onResume()
ListView
AsyncTask
Fragment
onActivityCreated
AsyncTask's execute()
onPause()
execute()
onResume()
はい、 execute on を呼び出す必要がありますonResume()。活動サイクルの詳細については、こちらを参照してください。