Top "Appcompatactivity" questions

Base class for activities that use the support library action bar features.

Error : Ambiguous method call. Both findViewById (int) in AppCompactActivity and Activity

I am getting the error: "Ambiguous method call" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity …

android android-studio android-studio-3.0 appcompatactivity android-appcompat
How can I fix this error: You need to use a Theme.AppCompat theme (or descendant) with this activity

I searched all internet web sites to fix this error, but I couldn't. I just want to create AlertDialog with …

android themes android-alertdialog appcompatactivity
onOptionsItemSelected not called

I have a list of menu items in my actionbar. Each item click should trigger a different method. But onOptionsItemSelected …

android android-actionbar android-appcompat appcompatactivity
diffrence between Appcompact activity and actionbar activity

In Android What is the main difference between extending a class from AppCompatActivity and ActionBarActivity? How do these classes differ?

android android-activity android-appcompat appcompatactivity
Making form on android studio

I took some code to make a simple Form on Android. It seems as if some parts of the code …

android android-intent android-appcompat appcompatactivity
Using Context with AppCompatActivity

I'm currently working on an Android app, and working with serializing files. I have a method that serializes a Java …

android android-context appcompatactivity
Using Fragment and AppCompatActivity classes together

Hi I'm trying to make an app which uses two different classes I'm aware I can't use extend with two …

java android android-fragments android-studio appcompatactivity
Difference between AppCompatActivity and Activity

I am trying to add menu in my application which I found, when it works if it extends AppCompatActivity, but …

android-activity menu appcompatactivity
AppCompatActivity custom ActionBar buttons do not appear on Android 4.1.2

It works fine on 5.1, but does not on 4.1.2 What am I missing? Here is the activity xml: <menu xmlns:…

android android-actionbar appcompatactivity android-4.1-jelly-bean
Cannot resolve symbol v7 in importing appcompatactivity

I'm new to Android Studio and it was working just fine and I made few apps and they worked pretty …

android gradle android-gradle-plugin android-appcompat appcompatactivity