Skip to content Skip to sidebar Skip to footer

Cannot Find Symbol Method Getsupportactionbar()

I know this question has been posted plenty of times, but I still unable to solve even i have tried many solution from Stack Overflow. import android.support.v4.app.FragmentActivit

Solution 1:

Let Edit extend AppCompatActivity instead FragmentActivity. AppCompatActivity extends FragmentActivity and adds support for the ActionBar. You can read more here

Solution 2:

you need to change FragmentActivity to ActionBarActivity because this method is not provide in FragmentActivity so change.

public class mainActivity extends ActionBarActivity

check this Link

Solution 3:

Replace

publicclassEditextendsFragmentActivityimplementsActionBar.TabListener

with

publicclassEditextendsActionBarActivityimplementsActionBar.TabListener

and you line

actionBar = (ActionBar)getApplicationContext().getSupportActionBar();

Post a Comment for "Cannot Find Symbol Method Getsupportactionbar()"