android Programming Glossary: loader_id
SimpleCursorTreeAdapter and CursorLoader for ExpandableListView http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview needs to be created. Log.d DEBUG_TAG onCreateLoader for loader_id id CursorLoader cl if id 1 child cursor Uri contactsUri ContactsContract.Data.CONTENT_URI.. in. int id loader.getId Log.d DEBUG_TAG onLoadFinished for loader_id id if id 1 child cursor if data.isClosed Log.d DEBUG_TAG data.getCount.. int id loader.getId Log.d DEBUG_TAG onLoaderReset for loader_id id if id 1 child cursor try mAdapter.setChildrenCursor id null..
SimpleCursorTreeAdapter and CursorLoader for ExpandableListView http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview int id Bundle args This is called when a new Loader needs to be created. Log.d DEBUG_TAG onCreateLoader for loader_id id CursorLoader cl if id 1 child cursor Uri contactsUri ContactsContract.Data.CONTENT_URI String selection ContactsContract.CommonDataKinds.GroupMembership.DISPLAY_NAME.. Loader Cursor loader Cursor data Swap the new cursor in. int id loader.getId Log.d DEBUG_TAG onLoadFinished for loader_id id if id 1 child cursor if data.isClosed Log.d DEBUG_TAG data.getCount data.getCount try mAdapter.setChildrenCursor id data.. last Cursor provided to onLoadFinished is about to be closed. int id loader.getId Log.d DEBUG_TAG onLoaderReset for loader_id id if id 1 child cursor try mAdapter.setChildrenCursor id null catch NullPointerException e Log.w TAG Adapter expired try..
|