Which WebSocket library to use in Android app?

I want to add a Service to my Android app which runs in the background holding a WebSocket connection (possibly over several hours or even days) and regularly sends some data to a server. Now there seems to be a bunch of WebSocket libraries for Java, and I’m not sure which one I should use: […]

Synchronise ScrollView scroll positions – android

I have 2 ScrollViews in my android layout. How can I synchronise their scroll positions?

After updating Android Studio to version 1.3.0 I am getting “NDK integration is deprecated in the current plugin” Error

I have updated my Android Studio to version 1.3.0 before 3 days. Before that I can use NDK and now I am getting error like , Error:(50, 0) Error: NDK integration is deprecated in the current plugin. Consider trying the new experimental plugin. For details, see http://tools.android.com/tech-docs/new-build-system/gradle-experimental. Set “android.useDeprecatedNdk=true” in gradle.properties to continue using the […]

How to exclude certain messages by TAG name using Android adb logcat?

Logcat allows filtering logs but it works like that: You define filters and logcat only displays messages which matches filters. But is there a way to display all logs EXCEPT some TAGs defined by filters?

Gradle: Execution failed for task ':processDebugManifest'

I’m getting a gradle error at building since yesterday – it just came randomly…. Full stacktrace here: My project depends on multiple libraries and it built without any problems until yesterday (even with the librarys) compile ‘com.google.android.gms:play-services:3.1.36’ compile ‘com.android.support:support-v4:13.0.0’ compile project(“:libs:DatabaseCreationHelper”) compile project(“:libs:actionbarsherlock”) Anyone has an idea how to fix it? it just randomly came… […]

Are there conventions on how to name resources?

Are there conventions how to name resources in Android? For example, buttons, textViews, menus, etc.

OpenCV in Android Studio

I want to use OpenCV library in my app with Android Studio. I followed instructions found here but I get error Configuration with name ‘default’ not found What can be wrong? I use Android Studio 1.0 with gradle 2.2.1.

Android ViewPager with bottom dots

I want to add 3 bottom dots to my ViewPager, like this. I use FragmentActivity and support library ViewPager.

Android multiple email attachments using Intent

I’ve been working on Android program to send email with an attachment (image file, audio file, etc) using Intent with ACTION_SEND. The program is working when email has a single attachment. I used Intent.putExtra(android.content.Intent.EXTRA_STREAM, uri) to attach the designated image file to the mail and it is working fine, the mail can be delivered through […]

Is there any way to ignore INSTALL_FAILED_VERSION_DOWNGRADE on application install with the Android Debug Bridge?

It seems like the most recent Android 4.2 has introduced this error condition on installation when one attempts to install an APK with a lower version. In prior versions of Android, one would be able to install older APK’s simply via adb install -r <link to APK>. For debugging purposes, I frequently need to re-test […]

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