Tag: java

What are the portability implications of using the NDK?

I need some operations that are to be performed on large long[]s to be very fast. The only option I can see is to use the Android NDK. Can anyone give a summary on what using the NDK does to my app in terms of which devices can use the app and what the implications […]

android and javafx lightweight compatible event framework

My requirement is that I am looking for an light weight event framework which is compatible in Android and Java Fx( Windows and Linux platform) so that it runs seamless in both the technologies. I researched for existing event based frameworks. 1) Eventing framework mbassador (by bennidi)-> is it compatible with android 4.0 (Ice Cream […]

Android: Native process provoke ReferenceTable overflow after a while (android-ndk)

Using the ndk I have compiled a code written in C. The program is a ecm format files conversion, here the native code: link . I chose to do with JNI for reasons of optimization, because the program requires a large amount of CPU processing. The files to convert can be very large, between 200mb […]

How to know when a BLE device subscribes to a characteristic on Android?

Coming from an iOS dev background, when working with Bluetooth LE acting as a peripheral you can register for a callback when a “central” BLE device subscribes (enables notifications) for a characteristic. I’m struggling to see how this is achieved on Android. If you’re working with Bluetooth LE acting as the central, I can see […]

Resource entry com.crashlytics.android.build_id is already defined

My project was working and everything was fine but have no idea what happened suddenly that I’m getting error when I want to build my project. This is Gradle output: /Users/admin/Desktop/android/MY-Project/build/intermediates/res/project/debug/values/values.xml:265: error: Resource entry com.crashlytics.android.build_id is already defined. /Users/admin/Desktop/android/MY-Project/build/intermediates/res/project/debug/values/com_crashlytics_build_id.xml:9: Originally defined here. Since both of these files are auto generated I cannot do anything 🙁 […]

Android Studio 2.0 – NoSuchAlgorithmException: SHA256WITHDSA Signature not available

I’m running Android Studio 2.0 Preview 3b and trying to use “Generate Signed APK…” from the Build menu. I get the following error Messages pane: :wear:packageRelease FAILED FAILURE: Build failed with an exception. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:wear:packageRelease’. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) … Error:org.gradle.tooling.BuildException: SHA256WITHDSA Signature not available: try using a […]

addProximityAlert and KEY_PROXIMITY_ENTERING

In the documentation, when discussing addProximityAlert , the description about Intent confuses me a bit. Specifically this part.. The fired Intent will have a boolean extra added with key KEY_PROXIMITY_ENTERING. If the value is true, the device is entering the proximity region; if false, it is exiting. This may sound like a dumb question but.. […]

Android Lollipop Material Design Overflow Menu Icon color

I try the new Material Design on a Nexus 7 and have the following strange behaviour. The Overflow Menu Icon has a different color on the first app launch. I changed the android:textColorPrimary color and read this tutorial. First App launch: Second App launch: As you see the color of the primary text color is […]

Unable to run project in Android Studio (libGDX)

Every time I try to run my Desktop project in Android Studio, I instantly get the following error: Error:com.android.tools.idea.gradle.util.Projects.lastGradleSyncFailed(Lcom/intellij/openapi/project/Project;)Z No gradle build happens, or any sort of syncing. Android Studio just jumps straight to this error. I have restart/invalidated caches, I have deleted my .gradle folder in both project and home locations, I have reinstalled […]

Can an Android Fragment overlaying the PhoneGap Activity?

The following image should represent an PhoneGap/Cordova app which is marked in blue. The red area should be an Android Fragment. Is it possible tho have an Android Fragment which overlays a PhoneGap Activity? Edit: The overlaying Android Fragment should the tasks like image manipulation. How do I have to write a PhoneGap plugin that […]

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