Code example for Fragment

Methods: getActivitygetArgumentsonActivityCreated

0
		return view;
    } 
 
    @Override 
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        mFeedObserver = new ContentObserver(new Handler(getActivity().getMainLooper())) {
            @Override 
            public void onChange(boolean selfChange) {
                bindCurrentView(); 
            } 
        }; 
        mFeedUri = getArguments().getParcelable(ARG_FEED_URI);
        ContentResolver resolver = getActivity().getContentResolver();
        resolver.registerContentObserver(mFeedUri, true, mFeedObserver);
        bindCurrentView(); 
    } 
 
    @Override 
    public void onDestroyView() {