Code example for Fragment

Methods: onResume

0
        return view;
    } 
 
    @Override 
    public void onResume() { 
        super.onResume(); 
        reload(); 
    } 
 
    public void setData(FeedItem f) {
        mFeedItem = f;
        mNews = false;
    } 
 
    public void setData(NewsData n) {
        mNewsData = n;
        mNews = true;
    } 
 
    public void initFragment(View v) {
        if (mNews) {