Code example for CursorAdapter

Methods: notifyDataSetChanged

0
 
    private Runnable mRefreshSessionsRunnable = new Runnable() {
        public void run() { 
            if (mAdapter != null) { 
                // This is used to refresh session title colors. 
                mAdapter.notifyDataSetChanged(); 
            } 
 
            // Check again on the next quarter hour, with some padding to account for network 
            // time differences. 
            long nextQuarterHour = (SystemClock.uptimeMillis() / 900000 + 1) * 900000 + 5000; 
            mMessageQueueHandler.postAtTime(mRefreshSessionsRunnable, nextQuarterHour); 
        } 
    }; 
 
    /** {@link Sessions} query parameters. */ 
    private interface SessionsQuery { 
        String[] PROJECTION = {
                BaseColumns._ID,
                Sessions.SESSION_ID, 
                Sessions.TITLE,