Code example for DialogFragment

Methods: getResources

0
	    			InputStream is = (InputStream) imageUrl.getContent();
	    			 
	    			 
	    			Bitmap b = BitmapFactory.decodeStream(is);
	    			b.setDensity(Bitmap.DENSITY_NONE);
	    			d = new BitmapDrawable(getResources(), b);
	    			//d = Drawable.createFromStream(is, "src");    	 
	    		} 
	    	   return d;	    	   
	    	}  
	    	catch (MalformedURLException e) {
	    		ExceptionHelper.notifyNonUsers(e);
	    		return null; 
	    	} catch (IOException e) {
	    		ExceptionHelper.notifyNonUsers(e);
	    		return null; 
	    	} 
	    } 
	     
}