package com.femalehewmon.nagem.ui;

import android.support.v4.app.FragmentActivity;

public class MainFragment extends FragmentActivity {

	
}

package com.femalehewmon.nagem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class MainFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.article_view, container, false);
    }

}

Correct from activity to Fragment.
Correct from activity to Fragment.

Originally FragmentActivity.
