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

This code example shows how to use the following methods: onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
Full Snippet Info
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
Full Snippet Info
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
Full Snippet Info
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
  } 
 
  @Override 
  public void onDetach() { 
    Log.d(getClass().getSimpleName(), "onDetach()");
    super.onDetach(); 
  } 
} 
Full Snippet Info
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
     * </blockquote> 
     */ 
    @Override 
    public void onDetach() { 
        Log.v(TAG, "onDetach");
        super.onDetach(); 
    } 
} 
Full Snippet Info
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
         
        // Removes the reference to the URL 
        mURLString = null;
         
        // Always call the super method last 
        super.onDetach(); 
    } 
 
    /* 
     * This callback is invoked if the system asks the Fragment to save its state. This allows the 
     * the system to restart the Fragment later on. 
     */ 
    @Override 
    public void onSaveInstanceState(Bundle bundle) {
        // Always call the super method first 
        super.onSaveInstanceState(bundle);
         
        // Puts the current URL for the picture being shown into the saved state 
        bundle.putString(PHOTO_URL_KEY, mURLString);
    } 
Full Snippet Info
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
        super.onAttach(activity);
    } 
 
    @Override 
    public void onDetach() { 
        super.onDetach(); 
        contract = null;
    } 
 
    public final T getContract() { 
        return contract;
    } 
 
} 
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
	 */ 
	public abstract WizardFlow onSetup(); 
 
    @Override 
    public void onDetach() { 
        super.onDetach(); 
        wizard.dispose();
    } 
 
 
} 
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
    } 
 
    @Override 
    public void onDetach() { 
        mActivity = null;
        super.onDetach(); 
    } 
 
    @Override 
    public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
        onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
    } 
 
    @Override 
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        //Nothing to see here. 
    } 
 
    @Override 
    public final void onPrepareOptionsMenu(android.view.Menu menu) {
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods: onDetach
    } 
 
    @Override 
    public void onDetach() { 
        demoSelectedListener = null;
        super.onDetach(); 
    } 
 
    @Override 
    public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
        if (demoSelectedListener == null) return;
 
        Map<String, Object> item = (Map<String, Object>) adapter.getItem(position);
        demoSelectedListener.onDemoSelected((String) item.get("class"), (Bundle) item.get("args"));
    } 
 
    /** 
     * Sets choice mode for the list 
     * 
     * @param selectable whether list is to be selectable. 
Full Snippet Info
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
onDetach Method Overview
Called when the fragment is no longer attached to its activity.
See Code Examples for other Android Fragment Methods: