Tag: android-5.0-lollipop

Using RecyclerView with Card

I have some RecyclerView with Card items. And on preLollipop devices it looks fine. But on Lollipop it looks without any spacing between child cards. I tried to use margin and padding, but it didn’t help. When I use margin on lollipop it looks fine, but with the same margin on preLollipop spacing is very […]

How to have a Lollipop switch button

I want to have the Lollipop style switch button for my app: How could I implement this button so it looks like this also on older versions of android?

ring shapes for L preview not working

Just testing the new developer preview and noticed that my existing ring drawables are not rendering properly. Instead of a ring it’s a full circle. Is it a bug or has something changed or am I doing it wrong to begin with? Any possible solutions? here’s the code: <layer-list xmlns:android=”http://schemas.android.com/apk/res/android” > <item android:id=”@android:id/progress”> <shape android:innerRadiusRatio=”3″ […]

Android native crash initiating from /system/framework/arm/boot.oat

After recent update of my application in Google Play, I started receiving lot of crash reports, all of them are from Samsung devices with Android 5. Lower android versions work fine and devices of other manufacturers with Android 5 work fine too. I don’t have any device where I could reproduce the issue, so I […]

How to access Android Lollipop DocumentFile files via NDK?

How is it possible to access files which are generated from a DocumentFile in Android KitKat/Lollipop in Native JNI Code, so I can use fopen, fread, etc. I’m particular asking this to access the external SD-Card files via the NDK.

Android 5.0/Lollipop: Force rescan of /system/priv-app

In Android 4.x, it was enough to put an APK-file into /system/priv-app, and the package-manager recognized that new file and (un-)installed the corresponding application or service. Since Android L, it seems to be not enough to just put the file into that directory – a reboot of the system is required to force Android to […]

WebView doesn't show JSAlert on Lollipop devices

It wasn’t showing JSAlert on any devices. And then I set a WebChromeClient: webView.setWebChromeClient(new WebChromeClient() { @Override public boolean onJsAlert(WebView view, String url, String message, JsResult result) { return super.onJsAlert(view, url, message, result); } @Override public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result) { return super.onJsPrompt(view, url, message, defaultValue, result); } […]

Android material L image transition interpolator

This is more of a mathematics question rather than programming. Well, I would like to ask id you know what is the interpolator described in Material design: It looks to be an AccelerateDecelerateInterpolator but the deceleration effect decays slower. My best hatch is : public class MaterialInterpolator implements Interpolator { @Override public float getInterpolation(float input) […]

Android Toolbar style

I’ve added a Toolbar to my Lollipop project. However, I’m having trouble styling the Toolbar. My title in the Toolbar appears to have a bold font, but I’d like it to be italic. Any idea how to achieve this? I’ve tried playing around with the actionbar-style, no luck. I’ve set a style on the Toolbar […]

Position Independent Executables and Android Lollipop

I have written a .c source code(in ecllipse) which is using libcap library to get information related to network traffic. Now i have created an executable binary by using ndk-build in ecllipse. I have pushed the created binary in libs/armeabi folder to /data/local/ folder of my android(rooted nexus 5, Lollypop) and tried to execute the […]

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