I want to compile this program for Android and see it run on my phone:
#include "Hello World.h"
using namespace codewerks;
//=============================================
// Main Loop
//=============================================
int main(int argc, char* argv[])
{
Print(std::string("Hello World!"));
}
Where do I start? Ca...
i am trying to imlement the "hello-jni" sample application in android ndk.
when i execute the ndk-build command, the command prompt does not show anything, though as per the instructions given on the official android website, this step should build the shared libraries.
i also checked out my hello-jni folder, but no "lib" folder had b...
Hi.. can someone give me a guide on how I can add headers to my native c file.
So here's the details.
I was able to setup my android project to call a native function from a .so file. And actually I need to add box2d to my project, but I when I include the header files, it won't make. So basically my problem is how do I tell the make f...
Hello,
I don't if what I am trying to do is possible :
I am trying to build the tesseract project (libocr) with the ndk.
Compilation is ok but linking is wrong...
with a lot of error like this :
Android NDK: WARNING: Unsupported source file extensions in /home/jpprade/dev/tesseract3/jni/Android.mk for module ocr
Android NDK: cc...
Hi guys. I got a strange problem when I run my app on Nexus One, Android 2.2. In my app, I used a native .so lib, built under NDK. In Java code, I have 2 threads: one UI thread, one to run codes from native so lib, and then updates the UI with the result data.
In C++ code, I have a global variable "int count", which records the times a s...
Hello,
I've been programming with Java for Android quite some while now. Since performance is very important for the stuff I am working on I end up just spamming global variables. I guess everyone will come rushing in now and tell me this is the worst style ever, but lets keep it simple. For Android, local variables means garbage collec...
I have a static library that contains some JNICALL functions, i.e. they are expected to be called from the JVM and are never referenced by the shared library that links the static library.
However, it seems like function stripping is exterminating the JNICALL function (it's not visible in arm-eabi-objdump -t). I'm working around it by a...
Hi,
I have a question having to do with Bluetooth programming in C. I'm working on the Android platform, but anyone skilled with the Bluez stack should be able to lend some insight...
I am trying to write an application to capture Bluetooth packets from within an Android application, which is written in Java and runs in the Dalvik Virt...
Hi.
I try to use mpg123 for decoding mp3. I successfully compiled it with optimization for arm. When I try to play mp3 it's only noise on the output. But when I remove optimization for arm it's play music, but with delayes=( What the problem with this optimization?
Here is my Android.mk:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_...
Has anyone used the Android NDK to port a Linux app? We have an SSL VPN solution at work which Openconnect (http://www.infradead.org/openconnect.html) works with, but there is currently no client (from Cisco or otherwise) on Android. Is using the Android NDK a feasible approach to get this to work?
Thank you in advance
...
I have a problem when compiling JNI. It returns the error message like
that "arm-eabi/bin/ld: cannot find -landroid_runtime".
I think libandroid_runtime.so is the android's own lib. Why ld can't find the
lib. Can somebody help me.
My develop environment as follow:
OS: Ubuntu 9.10
SDK: Android2.2
NDK: r4b
...
Within these day I have tested to write Android application with native code C/C++. The problem is in making symbolic link when using Android NDK. After making googling, some say to use cywin. I have installed it now. Please tell me how to make symbolic link with cywin in window 7.
Thanks in advance,
...
I have an Android Application which uses JNI calls. Now i want this application to boot with the Android OS(i.e. my application should compile with Android OS . I'm using Intel Atom board for Android compilation.). My Questions are as follows:
1) Do i follow the same procedure of creating make file and symbolic link with the Android OS ...
I'm trying to re-partition an SDCard on Android, with root access.
I have the 512 byte MBR file, and it shows up as this:
Pos MBRndx Type/Name Size Active Hide Start Sector Sectors
--- ------ ---------- ---- ------ ---- ------------ ------------
0 0 0C-FAT32X 5.9G No No 64 12,124,096
1 1 0C-FAT3...
Hello people
Is it possible to communicate with the android RIL daemon using the android NDK ? I would like to get notifications from the RIL daemon or better i would like to grab the messages which are sent to the upper Aplication Framework and modify/filter them and after that transmit them to the upper layer.
I know there is a share...
Hi everyone.
I learned about the debug tool of "ndk-gdb" from Android NDK r4. Now I can start debugging the hello-jni sample(although some issue exists).
But, for my own Android applications, I have several so libs to use, build from a large number of c/c++ files. I used to build these so files with ndk-build, and then copy these so fi...
I would like to know how to intercept incoming calls and also how to forward them. I know there are several questions regarding this topic here and elsewhere on the net, but all the answers use the android.intent.action.PHONE_STATE action which is broadcast always after the phone begins to ring and the call screen is shown.
That's why I'...
I am writing an android game that involves some c++.
I have a fairly repeatable crash that seems to be due to my c++ code
Looking at the page:
http://source.android.com/porting/debugging_native.html#Debug_Scenarios
(right at the end)
it says to run the output through the "stack tool" - which I can find no trace of.. nor aproto - any he...
Does anyone knows some convinient method to capture video to file or stream from OpenGL app on Android device?
For example, can we capture video from a view, opengl view?
I just found out the following:
1) We can get frames using glReadPixels. (No video on this step?)
2) MediaRecorder can encode video, but how can we provide it our r...
Hey everyone,
I'm trying to compile a C++ library (VRPN) with a couple of Java wrappers to be used in an Android app. Using the ndk-build command, I get an "undefined reference" error for the first line of my C++ interface file which references a constructor for an object in the library. I am fairly sure my code is correct - the call ...