Fragment onStart - 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 onStart method.

This code example shows how to use the following methods:onStart
    Log.d(getClass().getSimpleName(), "onActivityCreated()");
  } 
 
  @Override 
  public void onStart() { 
    super.onStart(); 
    Log.d(getClass().getSimpleName(), "onStart()");
  } 
 
  @Override 
  public void onResume() { 
    super.onResume(); 
    Log.d(getClass().getSimpleName(), "onResume()");
  } 
 
  @Override 
  public void onPause() { 
    Log.d(getClass().getSimpleName(), "onPause()");
    super.onPause(); 
  } 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getActivity, onStart
		return inflater.inflate(R.layout.fragment_capture, container, false);
	} 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
 
		// This is a good forced option 
		Window window = getActivity().getWindow();
		window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
 
		hasSurface = false;
	} 
 
	@SuppressWarnings("deprecation") 
	@Override 
	public void onResume() { 
		super.onResume(); 
 
		// Setup camera view 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:onStart
		} 
	}; 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
		if (!thread.isAlive())
			thread.start();
	} 
 
	@Override 
	public void onResume() { 
		super.onResume(); 
		paused = false;
		synchronized (thread) {
			thread.notify();
		} 
	} 
 
	@Override 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getActivity, onStart
        initUIComponents(); 
    } 
 
    @Override 
    public void onStart() { 
        super.onStart(); 
        spiceManager.start(getActivity());
        if (wordField.getText() != null) {
            spiceManager.addListenerIfPending(String.class, wordField.getText().toString(), new ReverseStringRequestListener());
        } 
    } 
 
    @Override 
    public void onStop() { 
        // Please review https://github.com/octo-online/robospice/issues/96 for the reason of that 
        // ugly if statement. 
        if (spiceManager.isStarted()) {
            spiceManager.shouldStop();
        } 
        super.onStop(); 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:onStart
     * </blockquote> 
     */ 
    @Override 
    public void onStart() { 
        Log.v(TAG, "onStart");
        super.onStart(); 
    } 
 
    /** 
     * <blockquote> 
     * onResume()以後、{@link Fragment} はユーザの操作を受け付けることができるようになります。 
     * </blockquote> 
     * 
     * <blockquote> 
     * onResume() makes the {@link Fragment} interacting with the user 
     * (based on its containing {@link Activity} being resumed). 
     * </blockquote> 
     */ 
    @Override 
    public void onResume() { 
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getActivity, onStart, startActivity
	Intent i = null;
	Context context;
	 
	@Override 
	public void onStart() { 
		super.onStart(); 
		context = getActivity(); 
		 
		i = new Intent(context, ScanQR.class);
		startActivity(i);
	} 
 
 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, 
	        ViewGroup container, Bundle savedInstanceState) {
	    super.onCreateView(inflater, container, savedInstanceState);
	    View view = inflater.inflate(R.layout.selection, 
	            container, false);
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getActivity, getArguments, onStart
    private String mUrl = null;
 
     
    @Override 
    public void onStart() { 
        super.onStart(); 
 
        // During startup, check if there are arguments passed to the fragment. 
        // onStart is a good place to do this because the layout has already been 
        // applied to the fragment at this point so we can safely call the method 
        // below that sets the article text. 
        Bundle args = getArguments();
        if (args != null) {
            // Set article based on argument passed in 
        	mUrl = (args.getString("url"));
        } 
         
        mWebView.getSettings().setJavaScriptEnabled(true);
        mWebView.getSettings().setPluginState(WebSettings.PluginState.ON);
         

5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:onStart
		return inflatedView;
	} 
 
	@Override 
	public void onStart() { 
		super.onStart(); 
		mButtonAccept.setOnClickListener(this);
	} 
 
	@Override 
	public void onClick(View v) {
		String capabilities = (String) (mToggleButton.isChecked() ? mToggleButton.getTextOn()
				: mToggleButton.getTextOff());
		WirelessNetwork mWirelessNetwork = new WirelessNetwork(mEditTextEssid.getText().toString(),
				mEditTextBssid.getText().toString(), 1, capabilities);
 
		if(!mWirelessNetwork.isCrackeable()) {
			Toast.makeText(getActivity().getApplicationContext(), R.string.manualcrack_inputerror,
					Toast.LENGTH_LONG).show();
			return; 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:onStart
        return layoutView;
    } 
 
    @Override 
    public void onStart() { 
        super.onStart(); 
        update(); 
    } 
 
    public void update() { 
        try { 
            mDistance.setText(String.format(formatter, meta.getDistance() / ArchiveMeta.TO_KILOMETRE));
            mMaxSpeed.setText(String.format(formatter, meta.getMaxSpeed() * ArchiveMeta.KM_PER_HOUR_CNT));
            mAvgSpeed.setText(String.format(formatter, meta.getAverageSpeed() * ArchiveMeta.KM_PER_HOUR_CNT));
            mRecords.setText(String.valueOf(meta.getCount()));
        } catch (Exception e) {
            Helper.Logger.e(e.getMessage());
        } 
    } 
 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:getActivity, onStart
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
		return inflater.inflate(R.layout.fragment_public_timeline, container, false);
	} 
	@Override 
	public void onStart() { 
		adapter = new PublicTimelineListAdapter(getActivity(), 0);
		initComponents(); 
		super.onStart(); 
	} 
	 
	private void initComponents() { 
		listView = (ListView)getActivity().findViewById(R.id.lvMicroBlog);
		listView.setAdapter(adapter);
		listView.setFastScrollEnabled(true);
         
	} 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
onStart Method Overview
Called when the Fragment is visible to the user.
See Code Examples for other Android Fragment Methods: