Code example for ImageSwitcher

Methods: setImageDrawable

    protected void onPostExecute(Bitmap result) {
	// we check if the user is still looking at the same photo 
	// if not, we don't refresh the main view 
	if (result != null && originalPosition == gallery.getSelectedItemPosition()) {
	    imageSwitcher.setImageDrawable(new BitmapDrawable((Bitmap) result));
Stop searching for code, let great code find you!  Add Codota to your java IDE