Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged, changeCursor

0
				.setOnClickListener(new OnClickListener() {
 
					@Override 
					public void onClick(View v) {
						Cursor cursorLast = readFromDB(1 * 60 * 1000);
						adapter.changeCursor(cursorLast);
						adapter.notifyDataSetChanged();
 
					} 
				}); 
 
		startSavingCurrentLocationToDB(20); 
	} 
 
	// Gets last known location 
 
	private Runnable updateTask = new Runnable() {
 
		@Override 
		public void run() {