Tag: android-5.0-lollipop

Activity Transition error, cannot resolve symbol '@transition/explode'

I am trying out Activity Transitions and when I paste below code in my values-21/styles.xml I get error: cannot resolve symbol ‘@transition/explode’ <style name=”BaseAppTheme” parent=”android:Theme.Material”> <!– enable window content transitions –> <item name=”android:windowContentTransitions”>true</item> <!– specify enter and exit transitions –> <item name=”android:windowEnterTransition”>@transition/explode</item> <item name=”android:windowExitTransition”>@transition/explode</item> <!– specify shared element transitions –> <item name=”android:windowSharedElementEnterTransition”> @transition/change_image_transform</item> <item name=”android:windowSharedElementExitTransition”> […]

Unable to install apk using adb on device upgraded to Android Lollipop

I’ve recently upgraded one of my Android devices to Android Lollipop (5.0) and now I can’t debug my application and even install apk on the device using adb. I receive the following error java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String android.os.SystemProperties.native_get(java.lang.St ring, java.lang.String) (tried Java_android_os_SystemProperties_native_1get and Java_android_os_SystemProperties_native_1get__Lj ava_lang_String_2Ljava_lang_String_2) at android.os.SystemProperties.native_get(Native Method) at android.os.SystemProperties.get(SystemProperties.java:64) at android.os.Environment.<clinit>(Environment.java:354) at […]

How can I send a string through NFC while Screen-Pinning?

I am trying to send a String through NFC while my app is using screen pinning. It does not work: The transfer does not happen; but if I disable the screen pinning the transfer of the String works. I can disable screen pinning for a bit and then perform the transfer, but that is a […]

How to Implement Contact details screen like Lollipop

I want to implement Contact details screen like Android 5.0 aka Lollipop. To describe more when we click on icon/image of any contact, one view slide up from bottom of screen. By default, this view fills half of screen and remaining top of screen is transparent with little alpha added. Secondly, View changes its position […]

adb shell dumpsys iphonesubinfo not working since Android 5.0 Lollipop

We used to get Device ID/IMEI using the following command: adb shell dumpsys iphonesubinfo But since last Android update (5.0 – Lollilop), this command doesn’t return anything, I performed this test on both Nexus 4 and Nexus 5. I know I can get the IMEI from code, which is still working, but does anyone has […]

Disable/Enable mobile data on Android L with root access

I am writing a little app that only I will use and I want to pragmatically enable / disable my mobile data on a rooted android 4.5 device (I am running a custom Android L for Nexus 4). I have looked for a while and I found the methods with reflection that worked until android […]

How to change programmatically the primary color in Android L

Is there a way to change programmatically the primary colors. I would like to do it in code depending the screen/state of the app. Currently I can only set the colors in the theme (static) : <item name=”android:colorPrimary”>@color/primary_color</item> <item name=”android:colorPrimaryDark”>@color/dark_color</item> <item name=”android:colorBackground”>@android:color/white</item> <item name=”android:colorAccent”>@color/primary_color</item> <item name=”android:colorControlHighlight”>@color/primary_color</item> Thanks

Soft Navigation Bar Overlays App in Lollipop

In Android Lollipop (most recent dev preview, build LPX13D) on my Nexus 5, an app I am writing seems to be hidden below the soft navigation bar (the bar with Back, Home, and App History buttons). I cannot duplicate this on a Nexus 4 running Kit Kat (nothing gets hidden behind the navigation bar). What […]

Android colorControlNormal xml attributes doesn't work pre-Lollipop

I’ve been trying to change the color of the EditText line on the bottom, but my EditText still doesn’t wanna change the color, but it’s using the style from Material. I’ve tried to change the color following these answer: link So I have an EditText with the Material form but not the colors I’ve set. […]

Android 5.0 makes unselected checkboxes invisible when background is white

I have an android app that has been working fine pre-Android 5.0. With the update, I noticed that checkboxes and radiobuttons placed on white backgrounds are not visible if they are not selected. For example, this is what a checkbox looks selected and unselected in jellybean: As you can see, there is a light gray […]

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