Code example for FragmentActivity

Methods: getWindow

0
	} 
 
	@Override 
	public boolean onError(MediaPlayer arg0, int what, int extra) {
		setProgressBar(false); 
		getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
 
		return false; 
	} 
 
	@Override 
	public void onCompletion(MediaPlayer arg0) {
		getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
 
	} 
 
	@Override 
	public void onImageLoaded(long id, Uri imageUri, Drawable image) {
		((ImageView)findViewById((int) id)).setImageDrawable(image);
	} 
}