Questions tagged [android-5.0-lollipop]

Android Lollipop, formerly known as just "Android L", was first shown at Google I/O 2014. The final name was confirmed on October 15th. It supports API Level 21.

Version 5.0 of Android.

All API changes at Android - 5.0 Api.

Here is a summary of the major API-changes:

  1. ART (AndroidRunTime) is now default runtime (instead of Dalvik). ART is more strict regarding JNI call and it is recommended to run your code with checkJNI option (if you compile native code).

  2. Notification :

    • rendering has change
    • by default visible in lock screen
    • and more

  1. getRecentTask() is now deprecated.

  2. NDK 64bits support (requires NDK-10c)

  3. Context.bindService() method now requires an explicit Intent

  4. The RemoteControlClient class is now deprecated

  5. New Camera API

  6. New MediaSession API to interact with media controllers, volume keys, media buttons, and transport controls

  7. Screen pinning feature.

  8. Managed provisioning.

User Interface

  1. Material design support:

    • The material theme
    • View shadows
    • The RecyclerView widget
    • Material design animation and activity transition effects
    • ... and more
  2. Concurrent documents and activities in the recents screen.

  3. WebView updates bringing security and stability enhancements, as well as bug fixes.

  4. Screen capturing and sharing.

Official website: Android - 5.0 Lollipop.

2804 questions
589
votes
25 answers

Android changing Floating Action Button color

I have been trying to change Material's Floating Action Button color, but without success.
Jjang
  • 10,190
  • 10
  • 43
  • 76
547
votes
23 answers

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.xxx.MainActivity}:…
466
votes
20 answers

Why is my Button text forced to ALL CAPS on Lollipop?

In my app "Tide Now WA" which I recently tested for compatibility using the new Nexus 9 tablet (Lollipop - API 21). It writes some button text. This app writes the text correctly using Android 2.3 and Android 4.0. I.e. mixed capital and lower case…
user1644002
  • 3,431
  • 3
  • 14
  • 18
378
votes
14 answers

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…
359
votes
34 answers

Exception 'open failed: EACCES (Permission denied)' on Android

I am getting open failed: EACCES (Permission denied) on the line OutputStream myOutput = new FileOutputStream(outFileName); I checked the root, and I tried android.permission.WRITE_EXTERNAL_STORAGE. How can I fix this problem? try { …
Mert
  • 5,728
  • 6
  • 28
  • 60
250
votes
16 answers

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 back ground color.
235
votes
28 answers

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:processProdDebugManifest'. > Manifest merger failed :…
loeschg
  • 28,353
  • 25
  • 89
  • 143
213
votes
14 answers

Ripple effect on Android Lollipop CardView

I'm trying to get a CardView to display the ripple effect when touched by setting the android:backgound attribute in the activity XML file as described here on the Android Developers page, but it isn't working. No animation at all, but the method in…
211
votes
20 answers

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?
204
votes
10 answers

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). are now deprecated. The documentation…
matiash
  • 52,725
  • 16
  • 117
  • 149
183
votes
23 answers

INSTALL_FAILED_DUPLICATE_PERMISSION... C2D_MESSAGE

I am using Google notifications in my app, and until now I have done below in the manifest:
183
votes
7 answers

Toolbar and Contextual ActionBar with AppCompat-v7

I am working on using the newly added Toolbar that was introduced in Lollipop and the AppCompat-v7 library. I followed this guide on setting up the Toolbar I noticed that when you invoke something that will bring up the contextual ActionBar (such as…
ariets
  • 4,098
  • 4
  • 25
  • 34
181
votes
13 answers

How can I change default dialog button text color in android 5

I have many alert dialogs in my app. It is a default layout but I am adding positive and negative buttons to the dialog. So the buttons get the default text color of Android 5 (green). I tried to changed it without success. Any idea how to change…
174
votes
26 answers

"You cannot install this app because another user has already installed an incompatible version on this device"

Trying to install my own app from play store, it says "You cannot install this app because another user has already installed an incompatible version on this device" Note - I've uninstalled the debug version, and also cleared my Cache. Still can't…
user4414636
170
votes
18 answers

No shadow by default on Toolbar?

I'm updating my app with the new Toolbar from the support library v21. My problem is that the toolbar does not cast any shadow if I don't set the "elevation" attribute. Is that the normal behavior or I'm doing something wrong? My code…
1
2 3
99 100