質問

I found there is no interface in side CursorAdapter to unregister the ContentObserver and DataSetObserver it apply. I can only use Cursor.getCursor().close() to close the cursor but cannot unregister its observers.

役に立ちましたか?

解決

Calling CursorAdapter.changeCursor(null) will unregister all the observers and close the cursor.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top