android Programming Glossary: stdio.h
Rotating a bitmap using JNI & NDK http://stackoverflow.com/questions/14398670/rotating-a-bitmap-using-jni-ndk jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h..
OpenCV Template Matching example in Android http://stackoverflow.com/questions/17001083/opencv-template-matching-example-in-android opencv2 imgproc imgproc.hpp #include iostream #include stdio.h using namespace std using namespace cv Global Variables Mat..
How to cache bitmaps into native memory http://stackoverflow.com/questions/17900732/how-to-cache-bitmaps-into-native-memory jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h..
JNI bitmap operations , for helping to avoid OOM when using large images [closed] http://stackoverflow.com/questions/18250951/jni-bitmap-operations-for-helping-to-avoid-oom-when-using-large-images jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h..
How to create named pipe (mkfifo) in Android? http://stackoverflow.com/questions/2740321/how-to-create-named-pipe-mkfifo-in-android Here's a quick bit of client server sample code #include stdio.h #include string.h #include unistd.h #include stddef.h #include..
How to compile a static library using the Android NDK? http://stackoverflow.com/questions/2943828/how-to-compile-a-static-library-using-the-android-ndk out how to compile it. The library uses standard libraries stdio.h etc... and libxml2. I am trying to compile using arm eabi gcc..
How to use NDK in android project? http://stackoverflow.com/questions/4359720/how-to-use-ndk-in-android-project following code #include jni.h #include string.h #include stdio.h #include android log.h #define DEBUG_TAG MY_NDK_DEMO jstring..
iptables in android http://stackoverflow.com/questions/4577268/iptables-in-android as a root user just like in linux do. attachment #include stdio.h #include stdlib.h #include unistd.h #include sys socket.h #include..
Calling a java method from c++ in Android http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android from java to native. native.cpp #include string.h #include stdio.h #include jni.h jstring Java_the_package_MainActivity_getJniString.. it working with next code for c #include string.h #include stdio.h #include jni.h jstring Java_the_package_MainActivity_getJniString..
Include Boost C++ library in android http://stackoverflow.com/questions/7885384/include-boost-c-library-in-android ndkfoo.cpp file #include string.h #include jni.h #include stdio.h #include boost date_time.hpp using namespace boost gregorian..
Android ndk-build iostream: No such file or directory http://stackoverflow.com/questions/9130429/android-ndk-build-iostream-no-such-file-or-directory is my cpp file #include jni.h #include string.h #include stdio.h #include android log.h #include iostream #define DEBUG_TAG NDK_SampleActivity..
Cross compiling static C hello world for Android using arm-linux-gnueabi-gcc http://stackoverflow.com/questions/9324772/cross-compiling-static-c-hello-world-for-android-using-arm-linux-gnueabi-gcc gcc arm linux gnueabi I created a hi.c like this #include stdio.h int main int argc char argv printf hello world n return 0 I..
Rotating a bitmap using JNI & NDK http://stackoverflow.com/questions/14398670/rotating-a-bitmap-using-jni-ndk APP_OPTIM debug LOCAL_CFLAGS g cpp file #include jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h #define LOG_TAG DEBUG #define LOGD ... __android_log_print..
OpenCV Template Matching example in Android http://stackoverflow.com/questions/17001083/opencv-template-matching-example-in-android advance. C code #include opencv2 highgui highgui.hpp #include opencv2 imgproc imgproc.hpp #include iostream #include stdio.h using namespace std using namespace cv Global Variables Mat img Mat templ Mat result char image_window Source Image char..
How to cache bitmaps into native memory http://stackoverflow.com/questions/17900732/how-to-cache-bitmaps-into-native-memory g JniBitmapStorageTest.cpp the magical stuff goes here #include jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h #define LOG_TAG DEBUG #define LOGD ... __android_log_print..
JNI bitmap operations , for helping to avoid OOM when using large images [closed] http://stackoverflow.com/questions/18250951/jni-bitmap-operations-for-helping-to-avoid-oom-when-using-large-images the one with the CLEAR_VARS jni JniBitmapOperations.cpp #include jni.h #include jni.h #include android log.h #include stdio.h #include android bitmap.h #include cstring #include unistd.h #define LOG_TAG DEBUG #define LOGD ... __android_log_print..
How to create named pipe (mkfifo) in Android? http://stackoverflow.com/questions/2740321/how-to-create-named-pipe-mkfifo-in-android socket you may need INTERNET permission. Not sure about that. Here's a quick bit of client server sample code #include stdio.h #include string.h #include unistd.h #include stddef.h #include sys socket.h #include sys un.h Create a UNIX domain socket..
How to compile a static library using the Android NDK? http://stackoverflow.com/questions/2943828/how-to-compile-a-static-library-using-the-android-ndk a static library to use on Android but I can't figure out how to compile it. The library uses standard libraries stdio.h etc... and libxml2. I am trying to compile using arm eabi gcc but I get the following error cygdrive c android ndk r4 build..
How to use NDK in android project? http://stackoverflow.com/questions/4359720/how-to-use-ndk-in-android-project call from your android code from your Activity hear we create following code #include jni.h #include string.h #include stdio.h #include android log.h #define DEBUG_TAG MY_NDK_DEMO jstring Java_com_myNDKDemo_MainActivity_getString JNIEnv env jobject..
iptables in android http://stackoverflow.com/questions/4577268/iptables-in-android end you can adb shell to it directly use iptables command as a root user just like in linux do. attachment #include stdio.h #include stdlib.h #include unistd.h #include sys socket.h #include netinet in.h #include arpa inet.h #include linux types.h..
Calling a java method from c++ in Android http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android from native code in the process of getJniString method call from java to native. native.cpp #include string.h #include stdio.h #include jni.h jstring Java_the_package_MainActivity_getJniString JNIEnv env jobject obj jint depth JavaVM vm JNIEnv env.. c to c conversion basically env variable stuff but I got it working with next code for c #include string.h #include stdio.h #include jni.h jstring Java_the_package_MainActivity_getJniString JNIEnv env jobject obj jstring jstr env NewStringUTF env..
Include Boost C++ library in android http://stackoverflow.com/questions/7885384/include-boost-c-library-in-android as required APP_CPPFLAGS fexceptions And finally here is my ndkfoo.cpp file #include string.h #include jni.h #include stdio.h #include boost date_time.hpp using namespace boost gregorian void Java_com_ndkfoo_NdkfooActivity_invokeNativeFunction JNIEnv..
Android ndk-build iostream: No such file or directory http://stackoverflow.com/questions/9130429/android-ndk-build-iostream-no-such-file-or-directory native.cpp 5 20 error iostream No such file or directory Here is my cpp file #include jni.h #include string.h #include stdio.h #include android log.h #include iostream #define DEBUG_TAG NDK_SampleActivity #define LOG_TAG hellojni #define LOGI .....
Cross compiling static C hello world for Android using arm-linux-gnueabi-gcc http://stackoverflow.com/questions/9324772/cross-compiling-static-c-hello-world-for-android-using-arm-linux-gnueabi-gcc In Ubuntu... I have done the following sudo apt get install gcc arm linux gnueabi I created a hi.c like this #include stdio.h int main int argc char argv printf hello world n return 0 I have compiled it like this arm linux gnueabi gcc static hi.c..
|