Code example for Fragment

Methods: onConfigurationChanged

0
 */ 
public class UpgradeProFragment 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,"AddDownloadFragment: Creating Add Download fragment"); 
		}catch (Exception ex){/*DO NOTHING*/} 
		 
		View upg = inflater.inflate(R.layout.upgrade_pro, null, false);