Tag: android-5.0-lollipop

Android Lollipop not showing android:background image

I have designed screen where I have used JPEG image as layout background. The complete UI screen is visible correctly in Android 8(GingerBread) to Android 19(Kitkat). The layout background is not visible in Android 20+(Lollipop) I am using App Compatibility Library. See the screenshot below Emulator Android 8 Device Kitkat Device Lollipop Solutions already tried […]

Make image File visible in Android Gallery on Lollipop

I am trying to make some pictures that are taken in the app visible in the Gallery (so they can be shared and looked at outside of the app), but I want to keep the images themselves inside the data directory of the app so when the app is deleted they get removed (so they […]

Material Design support library

Are there efforts underway to backport the new Material Design style and widgets to pre-L versions of Android, similar to the “HoloEverywhere”-library? The creator of that library has initialized an empty GitHub-repository, but it doesn’t seem to be in active development. I know there is a backport of L-style dialogs and the floating action button, […]

Material design button

I am trying to find an example code to implement the new material design dialogs for Stacked full-width buttons Can someone help me with an example code

How to change color of soft keyboard “Enter”/“Next” button on lollipop

Is it possible to change color of “Enter” button on soft keyboard in Android lollipop? I’d like this key to match my apps primary color.

Hiccups in activity transitions with shared elements

I want to use the new Activity Transitions of Android Lollipop. But currently I am seeing very weird hickups during the animations. I hacked together the smallest sample I could think of. This is what I did in a very short version: Enabled window content transitions in my styles.xml Referenced a very simple slide.xml as […]

android:elevation doesn't work in L preview

I’ve been playing with the L preview for a few days, and one thing that doesn’t seem to work is the android:elevation attribute for a view. It works just fine when calling View.setElevation(), but it just seems to ignore the XML attribute. I’m using Android Studio 0.8.2 and have minSdkVersion and targetSdkVersion set to ‘L’, […]

Mobile data is not working. Android Lollipop on Nexus 5

I have flashed my nexus 5 with the last version of android Lollipop hammerhead(LRX21O). The mobile data is not working, I can connect through WIFI to internet but there is no LTE/3g connectivity. For call and SMS there is any problem. I have already configured the APS settings correctly. Anyone knows how to fix it? […]

Android Lollipop know if app as Usage Stats access

Since Android Lollipop, we have now an API for accessing apps usage stats. However, your app must be granted those permissions by the user. I know that for redirecting the user to those settings using Settings.ACTION_USAGE_ACCESS_SETTINGS. Now, my question is how do you know the user has granted you those permissions so that you can […]

animation-list not working in Android 5.0 (Lollipop)

I needed a simple animation which shows 3-dots loading. So I created 3 images, added it to animation list and set it to imageview. It was working fine till kitkat but after updating my OS to Lollipop, the animation doesn’t seem to work. <animation-list xmlns:android=”http://schemas.android.com/apk/res/android” android:oneshot=”false” > <item android:drawable=”@drawable/one_dot” android:duration=”500″/> <item android:drawable=”@drawable/two_dot” android:duration=”500″/> <item android:drawable=”@drawable/three_dot” […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.