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.

2800 questions
644
votes
27 answers

Android changing Floating Action Button color

I have been trying to change Material's Floating Action Button color, but without success.
Jjang
  • 11,250
  • 11
  • 51
  • 87
591
votes
27 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}:…
500
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,211
  • 3
  • 19
  • 21
411
votes
36 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
  • 6,432
  • 6
  • 32
  • 68
385
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…
253
votes
17 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.
246
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…
237
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
  • 29,961
  • 26
  • 97
  • 150
214
votes
18 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…
213
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?
Alejandro Casanova
  • 3,633
  • 4
  • 31
  • 46
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
  • 54,791
  • 16
  • 125
  • 154
195
votes
11 answers

Android lollipop change navigation bar color

In my app I need to change the bottom navigation bar color. I watched many post but cant find with the solution. I am using appCompat library. v21/styles.xml