android-ndk

android surfaceflinger native code restarting Android

Hi Experts, I am trying to run surfaceflinger client code for Android 2.0 platform. It is supposed to post frames on android surfaceflinger. It is resulting in crash of the Android OS and resulting in restart of the emulator. Please help. Many thanks. Kind Regards -Durgesh O Mishra Here is the code. int main(int argc, char** argv) {...

SQLite android NDK

I'm trying to use a custom function in sqlite3. I found no way in Java to do that so I moved on android-ndk, but now I'm having troubles integrating sqlite3 sources in my project. Compiler give me an error 'sqlite3_api' was note declared in this scope. In my source "sqlite3ext.h" is included (sqlite3 amalgamation is also included in...

Matrix stack capacity is a little in Android NDK.

I created renderer and loader of DirectX8 retained mode on iPhone/iPod/iPad/MacOSX/Windows. DirectX8 retained mode format is scene graph style, and hierarchy so deep. So, only Android NDK OpenGLES was occurred GL error code 0x503,0x0504(command stack over flow or under flow). Is stack capacity of android a little? Who tried to check cap...

android: i I want to use DrmStore.

I want to use DrmStore. Isn't there source that uses DrmStore? ...

Nexus One / Android "CPU may be pegged" bug

I'm writing a graphically intense game for the Nexus One, using the NDK (revision 4) and OpenGL ES 2.0. We're really pushing the hardware here, and for the most part it works well, except every once in a while I get a serious crash with this log message: W/SharedBufferStack( 398): waitForCondition(LockCondition) timed out (identity=9,...

android bug ? database stop generated suddenly in 17,111

according to the DDMS the android just stop generate the sqlight file in 17,111 where outside of the DDMS if I import a file with the same values + the gap to my db it works just fine , is it my bug on the file who makes the db on the fly (onto the device in run time)? how can i impot a db file without using the DDMS(i add files manua...

How To port OpenSSL Library in android Project

Hi, I am trying to Port OpenSSL library in android project but i don't know the exact steps can any one tell me how to port OpenSSL in android project i am waiting for reply. Thanks. ...

Is it possible to access the camera's LEDs directly in Android?

I'm still pretty new to using Android, but I decided that my first application would be a simple flashlight app for my new Incredible. Unfortunately, it seems to be more difficult than I had originally thought. It seems that there's no way to access the LEDs through the SDK, at least not without a bunch of weird hacks to make the phone ...

Cell broadcast support on Android?

Does anyone know if there is a support for cell broadcast on Android? If yes, can anyone point me to any example that shows how to use it? (e.g. receive messages on some channel) Thank you. ...

Problems with glDrawTex_OES

I'm not sure I'm using glDrawTex_OES correctly. In fact, I'm sure I'm not because I'm getting a black rectangle on the screen rather than the intended texture. To get the silly points out of the way: Yes, the GL Extension string contains the OES_draw_texture token. Yes, the texture is loaded into memory/etc. correctly: it displays ju...

Porting a C/C++ program into Android

I am attempting to put my C++ program onto an Android phone but have run into several problems with the library linking. It seems most of the useful information I find on this topic through google is outdated (motz) or simply does not account for the complexity of my program. I have been able to run simple C programs but fail when attemp...

Get Binary Data from external device on Android Phone

Hello, I'm looking for some input on how to go about a problem I have. We have a device that has binary data that it needs to send out (they are mainly just symbols, but in a custom binary format) over ethernet. I need to intercept this data on the phone and display the symbols over google maps. I'm just wondering the best way to go abou...

Android-ndk: difference between static and shared library

Hi I'm new to Android ndk and i didn't understand yet which are the differences between static and shared library. Could you explain me what these differences are? When developing a library how could i choose one of them? Thanks a lot ...

Normal Maps vs. Normal Coordinates

Hello everyone, I'm currently working with OpenGL ES 1.1 and using the DrawElements convention along with Vertex, Normal, Texture Coordinate, and Index arrays. I recently came across this while researching the idea of using Normal/Bump mapping which I previously though impossible with OpenGL ES: http://iphone-3d-programming.labs.oreill...

Enable Exception C++

Hi. I am trying to make APP native code for Android. The Native code is in cplusplus. Whenever I try to make, the following error appears. H236Plus.cpp:135: error: exception handling disabled, use -fexceptions to enable How do I use -fexceptions to enable exception handling, and where do i use it? ...

Android-ndk with eclipse: How to force reinstallation of apk.

Hi, I'm developing a library in c++ using the android NDK. Actually i created my project in android with both java and c++ sources. I can compile and run my project and all works fine. Now i would like to force eclipse to reinstall the apk on the phone even if the java code is unchanged but something changed on the c++ side. Infact if ...

How to build Android NDK sample: "bitmap-plasma"

I am trying to build the bitmap-plasma sample that is included with the ndk, but getting an error. I run ndk-build from the samples/bitmap-plasma directory, and the error it displays is that it cannnot locate android/bitmap.h file. How do i direct the ndk-build script to the file it needs? Using android-ndk-r4 on Ubuntu Lucid 10.04 ...

Debugging Android NDK, under windows

i am porting a complex C application to android, as an SO library, wrapped with think java layer. after few hours of hassle, i have the code compiling under Android, but off course, the application crashes :( after looking around,i understand the only way to debug C application under Android is by gdb. since i don't have alot of experie...

How do I use Android OpenCORE codecs using JNI?

I want to use the codecs in Android from my application. For now I just want to use the H.264 codec for testing, unless the mp3 or aac codecs provide functions for sending the audio to the device's speaker in which case I would prefer one of those. I have the NDK installed along with Cygwin, GNU Make, and GNU Awk. I can't figure out wha...

Accessing Android Inbox/Messaging from Activity?

Is it possible to open up the default Android Messaging activity from inside an activity you write yourself? Like for example: I press a "Mail" button inside my program, and it opens the Android Messaging app just like as if I was to press the Messaging icon on the main screen. I did something similar to this with the Contacts activit...