Code example for Fragment

Methods: getArgumentsonAttach

0
		return view;
    } 
 
    @Override 
    public void onAttach(Activity activity) {
        super.onAttach(activity);
        mFeedObserver = new ContentObserver(new Handler(activity.getMainLooper())) {
            @Override 
            public void onChange(boolean selfChange) {
                onFeedUpdated(); 
            } 
        }; 
        mFeedUri = getArguments().getParcelable(ARG_FEED_URI);
    } 
 
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        onFeedUpdated(); 
    } 
Connect your IDE to all the code out there  Get Codota for Java