データが依存関係などの値に依存するListViewがあるActivity_Aがあります
このActivity_Bから、ユーザーはActivity_Bに移動し、依存関係の値を変更できます。
この依存関係はListViewのデータを変更する必要があるため、ListViewをリロードする必要があるため、次のようにしました。
if(//dependency is changed){
Intent intent = new Intent(Activity_B.this,Activity_A.class);
startActivity(intent);
}
ListViewには新しいデータが入力されます。
問題:
この新しくロードされたActivity_Aからデバイスの戻るボタンを2回押すと、以前のListViewデータを含むActivit_Aになります。したがって、アイテムをクリックしようとすると、この例外が発生します
The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread
これを回避する方法は??
ありがとうございました