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.
Androidでは、モバイルをロックおよびロック解除した後、アクティビティが一時停止して再開されます。その時点でリストビューは空になります。plsはonPauseに値を保存し、onResumeで値を取得するのに役立ちます...
前もって感謝します
あなたまたは他の方法のonResume()代わりに、内容をリストビューに入れてみてください。onCreate()または、@ Drooling_Sheep が言ったように、インスタンスを保存することもオプションです。
onResume()
onCreate()