All Questions

358
votes
14answers
365225 views

appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

When attempting to use the latest appcompat-v7 support library in my project, I get the following error: /Users/greg/dev/mobile/android_project/app/build/intermediates/exploded-aar/com.android.suppor...
188
votes
17answers
166864 views

Notification bar icon turns white in Android 5 Lollipop

I have an app showing custom notifications. The problem is that when running in Android 5 the small icon in the Notification bar is shown in white. How can I fix this?
97
votes
2answers
60909 views

How to use the new SD card access API presented for Android 5.0 (Lollipop)?

Background On Android 4.4 (KitKat), Google has made access to the SD card quite restricted. As of Android Lollipop (5.0), developers can use a new API that asks the user to confirm to allow access t...
328
votes
17answers
220078 views

This Activity already has an action bar supplied by the window decor

Trying to move over my stuff to use Toolbar instead of action bar but I keep getting an error saying java.lang.RuntimeException: Unable to start activity ComponentInfo{com.tyczj.weddingalbum/com.xxx....
67
votes
7answers
37477 views

DexIndexOverflowException issue after updating to latest appcompat and support library

I'm using the below settings through gradle: compileSdkVersion 21 ANDROID_BUILD_MIN_SDK_VERSION=14 ANDROID_BUILD_TARGET_SDK_VERSION=21 ANDROID_BUILD_TOOLS_VERSION=21.0.2 ANDROID_BUILD_SDK_VERSION=21 ...
203
votes
16answers
169967 views

Material effect on button with background color

I am using Android v21 support library. I have created a button with custom background color. The Material design effects like ripple, reveal are gone (except the elevation on click) when I use the ...
214
votes
23answers
139336 views

Manifest merger failed : uses-sdk:minSdkVersion 14

Since downloading the latest SDK and installing Android Studio, my project fails to build. I get the following message: Error:Gradle: Execution failed for task ':SampleProject:processProdDebugManifes...
198
votes
9answers
109630 views

Action bar navigation modes are deprecated in Android L

Taking a look at the API diff report for the Android "L" preview, I see that all methods related to navigation modes in the ActionBar class (such as setNavigationMode(), addTab(), selectTab(), &c)...
106
votes
12answers
116815 views

Lollipop : draw behind statusBar with its color set to transparent

I have set my statusBar color to transparent for Lollipop only with the following line in my theme : <item name="android:statusBarColor">@android:color/transparent</item> Now I need to ...
67
votes
10answers
48763 views

How can incoming calls be answered programmatically in Android 5.0 (Lollipop)?

As I am trying to create a custom screen for incoming calls I am trying to programatically answer an incoming call. I am using the following code but it is not working in Android 5.0. // Simulate a p...

Previous Next