Fragment onConfigurationChanged - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Fragment onConfigurationChanged method.

This code example shows how to use the following methods:onConfigurationChanged
        populateFields(); 
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
 
    } 
 
    public void saveState() { 
        String title = mTitleText.getText().toString();
        String body = mBodyText.getText().toString();
        int category = mCategorySpinner.getSelectedItemPosition() + 1;
        boolean saved;
 
        if (body.length() != 0) {
            if (mRowId == null) {
                long id = mDbHelper.createNote(title, body, category);
                if (id > 0) {
                    mRowId = id;
3
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 
    // Configuration change 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) { 
        super.onConfigurationChanged(newConfig); 
        pointcutManager.onConfigurationChanged(newConfig); 
    } 
 
    // Options menu 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { 
        super.onCreateOptionsMenu(menu, inflater); 
        pointcutManager.onCreateOptionsMenu(menu, inflater); 
    } 
 
    @Override 
    public void onPrepareOptionsMenu(Menu menu) { 
        super.onPrepareOptionsMenu(menu); 
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
        } 
    } 
     
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        if (LOG) {
            Log.d(TAG, LogUtils.getClassFileLineMethod(getClass().getSimpleName()));
        } 
    } 
     
    @Override 
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
         
        if (LOG) {
            Log.d(TAG, LogUtils.getClassFileLineMethod(getClass().getSimpleName()));
        } 
    } 
     
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 */ 
public class BetaFragment 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,"BetaFragment: Creating Beta fragment");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		View help = inflater.inflate(R.layout.beta, null, false);
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 */ 
public class SynologyInfoFragment 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,"SynologyInfoFragment: Creating Synology Info fragment");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		View help = inflater.inflate(R.layout.syno_info, null, false);
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 */ 
public class SynologyInfoFragment 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,"SynologyInfoFragment: Creating Synology Info fragment");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		View help = inflater.inflate(R.layout.syno_info, null, false);
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 */ 
public class GetStartedFragment 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,"GetStartedFragment: Creating Get Started fragment");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		final FragmentActivity gsActivity = this.getActivity();
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
 */ 
public class AddServerFragment 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,"AddServerFragment: Creating Add Server fragment");
		}catch (Exception ex){/*DO NOTHING*/}
		 
		View AddSrv = inflater.inflate(R.layout.add_server, null, false);
4
CodeRank
This code example shows how to use the following methods:onConfigurationChanged
		this.title = title; 
	} 
 
	@Override 
	public void onConfigurationChanged(Configuration newConfig) { 
		super.onConfigurationChanged(newConfig); 
	} 
} 
4
CodeRank
onConfigurationChanged Method Overview
Called by the system when the device configuration changes while your component is running.
See Code Examples for other Android Fragment Methods: