Code example for Cursor

Methods: deactivate

0
 
    @Override 
    protected void onStop() { 
        super.onStop(); 
        if (mCursor != null) {
            mCursor.deactivate();
        } 
    } 
 
    protected Uri resolveIntent() {
        Intent intent = getIntent();
        if (intent.getData() == null) {
            intent.setData(Uri.parse("content://icc/adn"));
        } 
 
        return intent.getData();
    } 
 
    private void query() { 
        Uri uri = resolveIntent();
        if (DBG) log("query: starting an async query");