Code example for Fragment

Methods: getArgumentsonCreatesetHasOptionsMenu

0
 
	List<CharSequence>  probeList;
	 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
 
        /** 
         * The controller URI will be in the intent plus, depending on the situation 
         * the probe name to graph can be in the extra.  If default, the probe name 
         * will come in as "none" which will signal us to just graph the first one 
         * found. 
         */ 
        final Intent intent = BaseActivity.fragmentArgumentsToIntent(getArguments());
        controllerUri = intent.getData();
        probeName = intent.getExtras().getString("ProbeName");
         
        if (controllerUri== null) {
            return; 
        } 
        controllerId = Integer.valueOf(Controllers.getControllerId(controllerUri));
        probesUri = Probes.buildQueryProbesUri(controllerUri);
 
        setHasOptionsMenu(true);
         
    } 
     
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
Stop searching for code, let great code find you!  Add Codota to your java IDE