Category Archives: Android

Android Studio ndk project asset_manager_jni.h – no such file or directory error

Problem

While building an Android java library project with Android Studio, a compiler error occurs: “android/asset_manager_jni.h: No such file or directory“. Java sources are in the main/java folder. C++ native sources are placed into the main/jni folder. When I try to compile the whole library without my custom Android.mk, there is no error! When using it, my own ndkbuild in the build.gradle fails with the above error. I searched for solutions but none helped me. Environment: MacBook, OS X: Yosemite, IDE: Android Studio 1.1.0. I installed the latest NDK android-ndk-r10d. What do I miss? (Project code was included).

Continue reading Android Studio ndk project asset_manager_jni.h – no such file or directory error

Eclipse Luna can not find USB devices on OS X Yosemite

Question

I am developing Android applications on my iMac with Eclipse. OS X version: Yosemite 10.10.2. Eclipse Luna often cannot find attached USB devices. Device recognition is rather hectic. Emulators sometimes disappear from the the Android Device Chooser, or can’t be seen any at all. Device settings are checked out. Developer menu is available, USB debug is enabled, KIES finds Samsung phone, HTC utilities are OK etc. Eclipse is updated to the latest version. ADB is running properly. I even added vendor IDs to the ~/.android/adb_usb.ini file. What can we do?

Continue reading Eclipse Luna can not find USB devices on OS X Yosemite

Android MediaPlayer.prepare throws status=0x1 error(1, -2147483648)

Question: I have a weird error message and can’t find solution. Project: Android with Eclipse IDE and Android SDK, min. API level 10, source code is attached. Problem: I can play none of my downloaded and saved media files from the application’s own data folder (/data/data/com.mypackage/myfile.mp4) by the MediaPlayer class. I double checked the video format. It can be even played when I place it into the /mnt/sdcard/… folder. Android shows a message saying “Cannot Play Video: Sorry, this video cannot be played”. In the log file I can find an error: MediaPlayer error(1, -2147483648) and Prepare failed. status=0x1. What’s the issue? Continue reading Android MediaPlayer.prepare throws status=0x1 error(1, -2147483648)

How to prepare and submit paid application to Android Market? Checklist for programmers

We’ve got some emails from programmers asking for a brief checklist on how to build, debug and submit paid applications to Android Market with Eclipse and Android SDK. On the Android Developers web site we can find several excellent user guides and hints. Herewith we summarize what developers should do. We assume that you have downloaded all the plugins and SDKs. License Verification Library(LVL) package has been integrated into your app. The application is ready to be uploaded to the Android Market to be debugged, tested and published. Continue reading How to prepare and submit paid application to Android Market? Checklist for programmers