How to add rounded corner to a drawable I'm using as a background in Android?

I have a specific drawable that I use as background in my app. It is not a solid color. Now I want to add rounded corners to this drawable. I only found the rounded corner available in a shape with a gradient or a solid color as a background but not another drawable. Is there […]

java.lang.NoClassDefFoundError: android/graphics/drawable/Icon

So far I got this error only for one user, who uses a rooted phone (SM-G900R7 Android 4.4.2). The error is like this: Fatal Exception: java.lang.NoClassDefFoundError: android/graphics/drawable/Icon at java.lang.Class.getDeclaredMethods( at java.lang.Class.getDeclaredMethods( at android.view.ViewDebug.getExportedPropertyMethods( at android.view.ViewDebug.exportMethods( at android.view.ViewDebug.dumpViewProperties( at android.view.ViewDebug.dumpViewProperties( at android.view.ViewDebug.dumpView( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( at android.view.ViewDebug.dumpViewHierarchy( […]

Swipe Gesture are not working in YouTubePlayerView in full screen mode

I am using the YouTube API, and I want to apply the Swipe left and right gesture on YouTubePlayerView in full screen mode. The Swipe gestures are not working in Android version 4.0+ when YouTubePlayerView is in full screen mode. Please help me with this. Thanks in advance.

Android WebView iFrame font scaling

I have an app that essentially just loads a website to display that information. Within the website I have an iframe that loads an events calendar. Viewing the website (via Chrome) on a computer, the events calendar looks exactly the way it should (yes I know the font is ridiculously small). Viewing the site on […]

How can I submit a text field in the POST request that uploads a blob to the Blobstore and retrieve it in the upload handler for the blob?

I have read several similar questions on StackOverflow but haven’t found a solution to this problem yet. I am uploading a blob from Android to App Engine’s Blobstore through an HTTPPost to the upload URL generated by the Blobstore service. I want to be able to send some textual metadata with this request that identifies […]

FLAG_TRANSLUCENT_NAVIGATION not available on landscape mode?

This issue is similar to Check if translucent navigation is available but not quite it. I have a Nexus 4 flashed with CyanogenMod 11 or Android 4.4 equivalent and any app running in landscape mode with FLAG_TRANSLUCENT_NAVIGATION does not feature the translucency on the system UI like in portrait mode. The same issue can be […]

Android ANR keyDispatchingTimedOut Error while continuous tapping on screen

I am getting Application Not Responding (ANR) dialog while continuous tapping on the screen. There is no view on the screen where i am tapping. Frequency of this issue is less but still i am not able to remove it completely. Here i am attaching the log what i caught during this error. ERROR/ActivityManager(1322): ANR […]

Load Android image in React Native

I’m trying to load image from Android’s drawble resources library using React Native. I tried to require it like this: <Image source={require(“image!some-image”)} /> And: <Image source={{uri: “some-image”, isStatic: true}} /> But no luck.. I know that I can require image from the js path but in this case I need it from the ‘res’ folder.

jquery signalr client works- but in java it cannot be made to work

We have a SignalR hub. The following jQuery code connects and properly processes SignalR client “call” events successfully on cordova. var connectionURL = “”; connection = $.connection(connectionURL); connection.start().done(function () { console.log(“Connected to hub again”); }); connection.disconnected(function () { setTimeout(function () { connection.start().done(function () { console.log(“Disconnected and Connected to hub again”); }); }, 5000); }); connection.stateChanged(function […]

How to write exif data to image in Android?

I’m trying to write a User_Comment and TAG_GPS to a captured image in an Android application using the exif interface, but for some reason the tags don’t seem to be appended to the image when I view the image’s details in the gallery. It seems that maybe the tags are not being written to the […]

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