Code example for Fragment

Methods: getArgumentsonStart

0
    } 
 
    @Override 
    public void onStart() { 
        Log.d(getClass().getSimpleName(), "onStart()"); 
        super.onStart(); 
        Bundle args = getArguments(); 
        if (args != null) 
            takeoff = args.getParcelable(ARG_TAKEOFF); 
        showTakeoffDetails(takeoff); 
    } 
 
    @Override 
    public void onSaveInstanceState(Bundle outState) { 
        Log.d(getClass().getSimpleName(), "onSaveInstanceState(" + outState + ")"); 
        super.onSaveInstanceState(outState); 
        outState.putParcelable(ARG_TAKEOFF, takeoff); 
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE