Code example for SimpleCursorAdapter

Methods: notifyDataSetChanged

0
		} 
		// Add alpha 
		color = alpha | color;
		widgetPrefs.putInt(KEY_SHADE_COLOR, color);
		updateBG(color);
		mNotesAdapter.notifyDataSetChanged();
	} 
 
	/** 
	 * Returns black, with the opacity specified 
	 */ 
	public static int getHomescreenBackgroundColor(final int opacity) {
		// int opacity = 50; 
		// try { 
		// opacity = 
		// Integer.parseInt(PreferenceManager.getDefaultSharedPreferences(context) 
		// .getString(PREF_HOMESCREEN_BACKGROUND_OPACITY, "50")); 
		// } catch (NumberFormatException ignored) { 
		// } 
 
		if (opacity >= 100) {