android Programming Glossary: android_log_info
Android : How to change Playback Rate of music using OpenSL ES http://stackoverflow.com/questions/11094377/android-how-to-change-playback-rate-of-music-using-opensl-es __VA_ARGS__ #define LOGI ... __android_log_print ANDROID_LOG_INFO OSLESMediaPlayer __VA_ARGS__ #define LOGW ... __android_log_print..
TCP socket Transfer data from PC to android device (Android NDK) http://stackoverflow.com/questions/11872405/tcp-socket-transfer-data-from-pc-to-android-device-android-ndk jni client socket bind error exit 1 __android_log_print ANDROID_LOG_INFO jni client client start finished void Client connectServer __android_log_print.. finished void Client connectServer __android_log_print ANDROID_LOG_INFO jni client connect to server starts connect to server rc connect.. matrix buf numbytes for int i 0 i 4 i __android_log_print ANDROID_LOG_INFO matrix f f f f matrix i 4 matrix i 4 1 matrix i 4 2 matrix i..
How to call Java methods from C++ in JNI http://stackoverflow.com/questions/3902066/how-to-call-java-methods-from-c-in-jni as followed #define LOG_INFO info __android_log_write ANDROID_LOG_INFO JNI info #define LOG_ERROR error __android_log_write ANDROID_LOG_ERROR..
Can't include C++ headers like vector in Android NDK http://stackoverflow.com/questions/4893403/cant-include-c-headers-like-vector-in-android-ndk LOG_TAG hellojni #define LOGI ... __android_log_print ANDROID_LOG_INFO LOG_TAG __VA_ARGS__ #define LOGE ... __android_log_print ANDROID_LOG_ERROR..
How to decode audio via FFmpeg in Android http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android str env GetStringUTFChars env argv 0 __android_log_print ANDROID_LOG_INFO HelloNDK str str if av_open_input_file pFormatCtx str NULL 0..
Decoding audio via Android using FFMpeg http://stackoverflow.com/questions/6228008/decoding-audio-via-android-using-ffmpeg 2 FF_INPUT_BUFFER_PADDING_SIZE __android_log_print ANDROID_LOG_INFO DEBUG_TAG RAH28 Starting res av_open_input_file pFormatCtx szfile..
C/C++ printfs - Where's it appears in a Android native code? http://stackoverflow.com/questions/6426911/c-c-printfs-wheres-it-appears-in-a-android-native-code .. . #include android log.h __android_log_write ANDROID_LOG_INFO tag here message here 2 In your Android.mk file include the..
access (faster polling) accelerometer via NativeActivity NDK http://stackoverflow.com/questions/8989686/access-faster-polling-accelerometer-via-nativeactivity-ndk TAG accelerondk #define LOGI ... __android_log_print ANDROID_LOG_INFO TAG __VA_ARGS__ #define LOGD ... __android_log_print ANDROID_LOG_DEBUG..
Android ndk-build iostream: No such file or directory http://stackoverflow.com/questions/9130429/android-ndk-build-iostream-no-such-file-or-directory LOG_TAG hellojni #define LOGI ... __android_log_print ANDROID_LOG_INFO LOG_TAG __VA_ARGS__ #define LOGE ... __android_log_print ANDROID_LOG_ERROR..
Android : How to change Playback Rate of music using OpenSL ES http://stackoverflow.com/questions/11094377/android-how-to-change-playback-rate-of-music-using-opensl-es LOGD ... __android_log_print ANDROID_LOG_DEBUG OSLESMediaPlayer __VA_ARGS__ #define LOGI ... __android_log_print ANDROID_LOG_INFO OSLESMediaPlayer __VA_ARGS__ #define LOGW ... __android_log_print ANDROID_LOG_WARN OSLESMediaPlayer __VA_ARGS__ #define..
TCP socket Transfer data from PC to android device (Android NDK) http://stackoverflow.com/questions/11872405/tcp-socket-transfer-data-from-pc-to-android-device-android-ndk local_addr if rc 0 __android_log_print ANDROID_LOG_ERROR jni client socket bind error exit 1 __android_log_print ANDROID_LOG_INFO jni client client start finished void Client connectServer __android_log_print ANDROID_LOG_INFO jni client connect to server.. 1 __android_log_print ANDROID_LOG_INFO jni client client start finished void Client connectServer __android_log_print ANDROID_LOG_INFO jni client connect to server starts connect to server rc connect client_skt struct sockaddr serv_addr sizeof serv_addr if.. ANDROID_LOG_ERROR jni client recv error exit 1 else memcpy matrix buf numbytes for int i 0 i 4 i __android_log_print ANDROID_LOG_INFO matrix f f f f matrix i 4 matrix i 4 1 matrix i 4 2 matrix i 4 3 Regards android c sockets android ndk share improve..
How to call Java methods from C++ in JNI http://stackoverflow.com/questions/3902066/how-to-call-java-methods-from-c-in-jni statements. See this post for the full story. I define macros as followed #define LOG_INFO info __android_log_write ANDROID_LOG_INFO JNI info #define LOG_ERROR error __android_log_write ANDROID_LOG_ERROR JNI error and then within the sourcecode I can call..
Can't include C++ headers like vector in Android NDK http://stackoverflow.com/questions/4893403/cant-include-c-headers-like-vector-in-android-ndk #include android log.h #include iostream #include vector #define LOG_TAG hellojni #define LOGI ... __android_log_print ANDROID_LOG_INFO LOG_TAG __VA_ARGS__ #define LOGE ... __android_log_print ANDROID_LOG_ERROR LOG_TAG __VA_ARGS__ #ifdef __cplusplus extern..
How to decode audio via FFmpeg in Android http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android the file through FFmpeg and wrote this av_register_all char str env GetStringUTFChars env argv 0 __android_log_print ANDROID_LOG_INFO HelloNDK str str if av_open_input_file pFormatCtx str NULL 0 NULL 0 return 2 Couldn't open file Retrieve stream information..
Decoding audio via Android using FFMpeg http://stackoverflow.com/questions/6228008/decoding-audio-via-android-using-ffmpeg int16_t outBuffer int16_t av_malloc AVCODEC_MAX_AUDIO_FRAME_SIZE 2 FF_INPUT_BUFFER_PADDING_SIZE __android_log_print ANDROID_LOG_INFO DEBUG_TAG RAH28 Starting res av_open_input_file pFormatCtx szfile NULL 0 NULL if res 0 __android_log_print ANDROID_LOG_DEBUG..
C/C++ printfs - Where's it appears in a Android native code? http://stackoverflow.com/questions/6426911/c-c-printfs-wheres-it-appears-in-a-android-native-code logger in native code include the header and call _android_log_write .. . #include android log.h __android_log_write ANDROID_LOG_INFO tag here message here 2 In your Android.mk file include the log lib like this. LOCAL_LDLIBS L SYSROOT usr lib llog share..
access (faster polling) accelerometer via NativeActivity NDK http://stackoverflow.com/questions/8989686/access-faster-polling-accelerometer-via-nativeactivity-ndk sensor.h #include android log.h #include android looper.h #define TAG accelerondk #define LOGI ... __android_log_print ANDROID_LOG_INFO TAG __VA_ARGS__ #define LOGD ... __android_log_print ANDROID_LOG_DEBUG TAG __VA_ARGS__ #define LOOPER_ID 1 #define SAMP_PER_SEC..
Android ndk-build iostream: No such file or directory http://stackoverflow.com/questions/9130429/android-ndk-build-iostream-no-such-file-or-directory #include iostream #define DEBUG_TAG NDK_SampleActivity #define LOG_TAG hellojni #define LOGI ... __android_log_print ANDROID_LOG_INFO LOG_TAG __VA_ARGS__ #define LOGE ... __android_log_print ANDROID_LOG_ERROR LOG_TAG __VA_ARGS__ #ifdef __cplusplus extern..
|