Code example for FragmentActivity

Methods: getWindow, onAttachedToWindow

0
 
	public static List<Picture> pictures = new ArrayList<Picture>();
 
	@Override 
	public void onAttachedToWindow() { 
		super.onAttachedToWindow(); 
		Window window = getWindow();
		window.setFormat(PixelFormat.RGBA_8888);
	} 
 
	/* (non-Javadoc) 
	 * @see android.support.v4.app.FragmentActivity#onCreate(android.os.Bundle) 
	 */ 
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
 
		if (getIntent().getAction().equals(Intent.ACTION_SEARCH)) {
			String query = getIntent().getStringExtra(SearchManager.QUERY);
			SearchActivity.query = query;
		} else {