title: Activity is not assigned to Android.app.Activity Manifest XML
body: <p>I am having some trouble with the fragment in Android Studio. So basically this is my MainActivity:</p>
  
  <pre><code>public class MainActivity extends FragmentActivity {
  final Context context = this;
  
  ViewPager Tab;
  TabPagerAdapter TabAdapter;
  ActionBar actionBar;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      TabAdapter = new TabPagerAdapter(getSupportFragmentManager());
      Tab = (ViewPager) findViewById(R.id.pager);
      Tab.setOnPageChangeListener(new ViewPager.SimpleOnPageChangeListener() {
          @Override
          public void onPageSelected(int position) {
              actionBar = getActionBar();
              actionBar.setSelectedNavigationItem(position);
          }
      });
      Tab.setAdapter(TabAdapter);
      actionBar = getActionBar();
      // Enable Tabs on Action Bar
      actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
      ActionBar.TabListener tabListener = new ActionBar.TabListener() {
          @Override
          public void onTabReselected(android.app.ActionBar.Tab tab,
                                      android.app.FragmentTransaction ft) {
          }
  
          @Override
          public void onTabSelected(android.app.ActionBar.Tab tab,
                                    android.app.FragmentTransaction ft) {
              // on tab selected show respected fragment view
              Tab.setCurrentItem(tab.getPosition());
          }
  
          @Override
          public void onTabUnselected(android.app.ActionBar.Tab tab,
                                      android.app.FragmentTransaction ft) {
          }
      };
  
      // Add New Tab
      actionBar.addTab(actionBar.newTab().setText("Feedback")
              .setTabListener(tabListener));
      actionBar.addTab(actionBar.newTab().setText("History Log")
              .setTabListener(tabListener));
  
  
  }
  }
  </code></pre>
  
  <p>And then my another class which is one of the tab code:</p>
  
  <pre><code>public class FeedbackMain extends Fragment {
  View feedbackMainView;
  
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
      feedbackMainView = inflater.inflate(R.layout.activity_feedback_main,
              container, false);
  
      return feedbackMainView;
  }
  }
  </code></pre>
  
  <p>And then my Manifest:</p>
  
  <pre><code>&lt;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name" &gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name=".FeedbackMain"
          android:label="@string/title_activity_feedback_main" &gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>However, I am getting red lines under .FeedbackMain and the error message is:</p>
  
  <pre><code>.FeedbackMain is not assignable to 'android.app.Activity'
  </code></pre>
  
  <p>I was wondering why is it so? It was working fine with Android development tools but then when I switched to Android Studio, this happens.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>xml file for mainActivity:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.view.ViewPager
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/pager"
  android:layout_width="match_parent"
  android:layout_height="match_parent" /&gt;
  </code></pre>
  
  <p>style.xml:</p>
  
  <pre><code>&lt;resources&gt;
  
  &lt;!-- Base application theme. --&gt;
  &lt;style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"&gt;
      &lt;!-- Customize your theme here. --&gt;
  &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>