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);
    }

}

package com.femalehewmon.nagem.ui;

import android.support.v4.app.FragmentActivity;

public class MainFragment extends FragmentActivity {

	
}

--- 
+++ 
@@ -1,8 +1,18 @@
 package com.femalehewmon.nagem.ui;
 
-import android.support.v4.app.FragmentActivity;
+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 FragmentActivity {
+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.

Originally FragmentActivity.
