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

This code example shows how to use the following methods:onPause
  } 
 
  @Override 
  public void onPause() { 
    Log.d(getClass().getSimpleName(), "onPause()");
    super.onPause(); 
  } 
 
  @Override 
  public void onStop() { 
    Log.d(getClass().getSimpleName(), "onStop()");
    super.onStop(); 
  } 
 
  @Override 
  public void onDestroyView() { 
    Log.d(getClass().getSimpleName(), "onDestroyView()");
    super.onDestroyView(); 
  } 
 
7
CodeRank
This code example shows how to use the following methods:getActivity, onPause
        return rootView;
    } 
     
    @Override 
    public void onPause() { 
    	super.onPause(); 
    	updatePersonFromUI(); 
    } 
     
    private void updatePersonFromUI() { 
    	if (mItem != null) {
    		mItem.firstname = textFirstName.getText().toString();
    		mItem.lastname = textLastName.getText().toString();
    		mItem.bio = textBio.getText().toString();
    		 
    		DatabaseHandler.getInstance(getActivity()).putPerson(mItem);
        } 
    } 
} 
6
CodeRank
This code example shows how to use the following methods:onPause
     * </blockquote> 
     */ 
    @Override 
    public void onPause() { 
        Log.v(TAG, "onPause");
        super.onPause(); 
    } 
 
    /** 
     * <blockquote> 
     * onStop() 実行後は、{@link Fragment} がユーザから見えなくなります。 
     * これは {@link Fragment} が紐付く {@link Activity} も、onStop() が実行されユーザから見えなくなるためです。 
     * </blockquote> 
     * 
     * <blockquote> 
     * After onStop(), {@link Fragment} is no longer visible to the user 
     * either because its activity is being stopped 
     * or a {@link Fragment} operation is modifying it in the {@link Activity}. 
     * </blockquote> 
     */ 
6
CodeRank
This code example shows how to use the following methods:getActivity, onPause
	 
	@SuppressWarnings("deprecation") 
	@Override 
	public void onPause() { 
		if(DEBUG) Log.d(TAG, ".onAttach()...");
		mLocalActivityManager.dispatchPause(getActivity().isFinishing());
		super.onPause(); 
	} 
	 
	@Override 
	public void onStop() { 
		if(DEBUG) Log.d(TAG, ".onStop()...");
		super.onStop(); 
	} 
	 
	@Override 
	public void onDestroyView() { 
		if(DEBUG) Log.d(TAG, ".onDestroyView()...");
		super.onDestroyView(); 
	} 
6
CodeRank
This code example shows how to use the following methods:onPause
		super.onResume(); 
		//getLoaderManager().restartLoader(0, null, this); 
	} 
	@Override 
	public void onPause(){ 
		super.onPause(); 
	} 
 
	public static TrendFragment newInstance() { 
		return new TrendFragment(); 
	} 
 
	public void refresh() { 
		getLoaderManager().restartLoader(0, null, this);
	} 
 
	@Override 
	public Loader<Cursor> onCreateLoader(int id, Bundle args) {
		return null; 
	} 
5
CodeRank
This code example shows how to use the following methods:onPause
        return rootView;
    } 
     
    @Override 
    public void onPause() { 
    	super.onPause(); 
    	updatePersonFromUI(); 
    } 
     
    private void updatePersonFromUI() { 
    	if (mItem != null) {
    		mItem.firstname = textFirstName.getText().toString();
    		mItem.lastname = textLastName.getText().toString();
    		mItem.bio = textBio.getText().toString();
    		 
    		DatabaseHandler.getInstance(getActivity()).putItem(mItem);
        } 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:onPause
		* @return	void 
		*/ 
		@Override 
	    public void onPause() { 
	    	trace("onPause"); 
	        super.onPause(); 
	        uiHelper.onPause();
	    } 
 
	    /** 
		* 
		* 
		* @public 
		* @return	void 
		*/ 
	    @Override 
	    public void onDestroy() { 
	    	trace("onDestroy"); 
	        super.onDestroy(); 
	        uiHelper.onDestroy();
5
CodeRank
This code example shows how to use the following methods:getActivity, onPause
        mLocalActivityManager.dispatchResume();
    } 
     
    @Override 
    public void onPause() { 
        super.onPause(); 
        mLocalActivityManager.dispatchPause(getActivity().isFinishing());
    }     
     
    @Override 
    public void onStop() { 
        super.onStop(); 
        mLocalActivityManager.dispatchStop();
    } 
     
    @Override 
    public void onDestroy() {         
        super.onDestroy();         
        mLocalActivityManager.dispatchDestroy(getActivity().isFinishing());
    } 
5
CodeRank
This code example shows how to use the following methods:getActivity, onPause
    return paramLayoutInflater.inflate(2130903040, paramViewGroup, false);
  } 
 
  public void onPause() 
  { 
    super.onPause(); 
    LocalBroadcastManager.getInstance(getActivity()).unregisterReceiver(this.actionBarReceiver);
  } 
 
  public void onResume() 
  { 
    super.onResume(); 
    LocalBroadcastManager.getInstance(getActivity()).registerReceiver(this.actionBarReceiver, new IntentFilter("com.instagram.android.service.action_bar_updated"));
    ActionBarService.getInstance(getActivity()).configureActionBar(getView().findViewById(2131492874));
  } 
} 
 
/* Location:           C:\Temp\android\apktool\Instagram_1.1.0\ 
 * Qualified Name:     com.instagram.android.fragment.ActionBarFragment 
 * JD-Core Version:    0.6.0 
5
CodeRank
This code example shows how to use the following methods:onPause
 
        return view;
    } 
 
    public void onPause() { 
        super.onPause(); 
    } 
 
    public void onResume() { 
        super.onResume(); 
        if (currentNote != null) {
            updateCurrentNote(); 
        } 
    } 
 
    public void setCurrentNote(Note note) {
        currentNote = note;
        if (getActivity() != null) {
            updateCurrentNote(); 
        } 
4
CodeRank

Related Fragment onPause Questions & Answers:

onPause Method Overview
Called when the Fragment is no longer resumed.
See Code Examples for other Android Fragment Methods: