Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged

0
       updateViewInfo(v, c);
    } 
     
    public void setHighlightedGameId(long gameId) {
    	if (gameId != highlightedGameId) {
    		highlightedGameId = gameId;
    		notifyDataSetChanged();
    	} 
    } 
     
	public long getHighlightedGameId() { 
		return highlightedGameId;
	} 
     
    private void updateViewInfo(View tichuRow, Cursor c) {
        int playersCol = c.getColumnIndex(GameSQLiteHelper.COLUMN_PLAYERS);
        int starttimeCol = c.getColumnIndex(GameSQLiteHelper.COLUMN_STARTTIME);
        int winnerCol = c.getColumnIndex(GameSQLiteHelper.COLUMN_WINNER);
        int idCol = c.getColumnIndex(GameSQLiteHelper.COLUMN_ID);
 
        // fetching raw information