Code example for Fragment

Methods: onConfigurationChanged

0
 
public class AboutFragment extends Fragment{
	@Override 
	public void onConfigurationChanged(Configuration newConfig) {
		// ignore orientation change 
		super.onConfigurationChanged(newConfig);
	} 
	 
	/** 
	 * Activity creation 
	 */ 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
		super.onCreateView(inflater, container, savedInstanceState);
		try{ 
			if (((Synodroid)getActivity().getApplication()).DEBUG) Log.v(Synodroid.DS_TAG,"AboutActivity: Creating about fragment.");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		final FragmentActivity aboutActivity = this.getActivity();
		View about = inflater.inflate(R.layout.about, null, false);