Código Java:
Ver original
public void SeeList(){ @Override public void run() { try { listAdapter1 = getListData(); customListAdapter = new CustomListAdapter(getApplicationContext(), listAdapter1); user_list.setAdapter(customListAdapter); registerForContextMenu(user_list); ringProgressDialog.dismiss(); } }).start(); }
Y cuando quiero actualizar la lista uso el mismo método que el anterior "seeList ()" para la actualización, intento actualizar la lista.
Pero me salta un error desconocido para mí. (¿Cómo puedo resolver este problema?)
Refrescar ni que sea el estatus del item. offine, offline ..
http://stackoverflow.com/questions/22466267/android-listview-customadapter-observer-unregistered
Código Java:
Ver original
03-17 22:46:07.439: E/AndroidRuntime(6026): FATAL EXCEPTION: main 03-17 22:46:07.439: E/AndroidRuntime(6026): java.lang.IllegalStateException: Observer android.widget.AbsListView$AdapterDataSetObserver@4e9c7894 was not registered. 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.database.Observable.unregisterObserver(Observable.java:69) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.widget.BaseAdapter.unregisterDataSetObserver(BaseAdapter.java:42) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.widget.AbsListView.onDetachedFromWindow(AbsListView.java:2638) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2570) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2568) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2568) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2568) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2568) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:2820) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5162) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.ViewRootImpl.die(ViewRootImpl.java:5145) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:359) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:309) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:84) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3535) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.app.ActivityThread.access$1200(ActivityThread.java:141) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.os.Handler.dispatchMessage(Handler.java:99) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.os.Looper.loop(Looper.java:137) 03-17 22:46:07.439: E/AndroidRuntime(6026): at android.app.ActivityThread.main(ActivityThread.java:5103) 03-17 22:46:07.439: E/AndroidRuntime(6026): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) 03-17 22:46:07.439: E/AndroidRuntime(6026): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)