Code example for Cursor

Methods: deactivate

0
    public void onStop() 
    { 
        super.onStop(); 
 
        if (mCursor != null) {
            mCursor.deactivate();
        } 
    } 
 
    public void onResume() 
    { 
        super.onResume(); 
 
        // show the history 
        loadPrefs(); 
        fillListView(); 
        if (mHistory.size() > 0) {
            ListView lv = this.getListView();
            lv.setSelection(0);
            lv.requestFocus();
        }