title: cannot find symbol method getSupportActionBar()
body: <p>I know this question has been posted plenty of times, but I still unable to solve even i have tried many solution from <strong>Stack Overflow</strong>.</p>
  
  <pre><code>import android.support.v4.app.FragmentActivity;
  import android.support.v4.app.FragmentManager;
  import android.support.v4.app.FragmentTransaction;
  import android.support.v7.app.ActionBar;
  import android.support.v7.app.ActionBarActivity;
  import com.example.project.myapplication.API.InfoAPI;
  import com.example.project.myapplication.Adapter.TabsFragmentPagerAdapter;
  
  
  public class Edit extends FragmentActivity implements ActionBar.TabListener {
  
      private ViewPager viewPager;
      private ActionBar actionBar;
      private TabsFragmentPagerAdapter tabsAdapter;
      private String[] activities = new String[]{"Information","Work Force","Work Details"};
      ListView listViewEdit;
      InfoAPI sqlcon;
      private MyDatabaseHelper dbHelper;
      private SQLiteDatabase database;
      private SimpleCursorAdapter dataAdapter;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.edit);
          viewPager = (ViewPager) findViewById(R.id.viewPager);
          tabsAdapter = new TabsFragmentPagerAdapter(getSupportFragmentManager());
          viewPager.setAdapter(tabsAdapter);
          actionBar = (ActionBarActivity)getApplicationContext().getSupportActionBar();
          actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
          for(int i=0; i&lt;3; i++){
              actionBar.addTab(actionBar.newTab().setText(activities[i]).setTabListener(this));
          }
  </code></pre>
  
  <p>Error is on this line  <code>actionBar = (ActionBarActivity)getApplicationContext().getSupportActionBar();</code></p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>Error:(48, 63) error: cannot find symbol method getSupportActionBar()
  Error:(48, 21) error: incompatible types: ActionBarActivity cannot be converted to ActionBar
  </code></pre>