Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged

0
     
    public void notifyImage() { 
    	runOnUiThread(new Runnable() {
			public void run() { 
		    	c.requery();
		    	adapter.notifyDataSetChanged();
			} 
		}); 
    } 
     
    @Override 
    public void onResume() { 
    	super.onResume(); 
    	c.requery();
		db.setImageObserver(this);    	
    } 
 
    @Override 
    public void onPause() { 
    	super.onPause(); 
		db.setImageObserver(null);