Code example for PorterDuffColorFilter

		// Set up the view 
		int x = mSharedPrefs.getInt("theme_color", -1);
		if(x != -1)
			ThemeTools.setColorOverlay(new PorterDuffColorFilter(x, 
					PorterDuff.Mode.MULTIPLY), background, header);
	private void refreshList() { 
		// Reset the view,  
		mAdapter = new QueueAdapter(this);
		// Get a list of all of the elements. 
		// TODO, make sure to get it in the write order! 
		// Add the list to the adapter 
		// TODO Also get image 
		Cursor c = managedQuery(ShowsProvider.QUEUE_CONTENT_URI,
				null, null, null, null); 
Contextual code suggestions in your IDE  Get Codota for Java