android-ndk

Which android layout and drawable resources should galaxy tab support for development?

ぐ巨炮叔叔 提交于 2020-01-23 16:54:07
问题 I am Developing Application with multiple device support. Now i want to know which Layout is Galaxy Tab Support? I mean like layout-large or layout-small, layout-xlarge or anyother ?? Samw with which drawable is supported by galary tab for images to place. ? Thanks. 回答1: You can also use the new size qualifiers in the supports-screens.(for android 3.2 and above) <manifest ... > <supports-screens android:requiresSmallestWidthDp="600" /> ... </manifest> Here are some numbers for typical screen

android NDK mutex locking

被刻印的时光 ゝ 提交于 2020-01-22 23:07:56
问题 I've been porting a cross platform C++ engine to Android, and noticed that it will inexplicably (and inconsistently) block when calling pthread_mutex_lock . This engine has already been working for many years on several platforms, and the problematic code hasn't changed in years, so I doubt it's a deadlock or otherwise buggy code. It must be my port to Android.. So far there are several places in the code that block on pthread_mutex_lock. It isn't entirely reproducible either. When it hangs,

Run Shell Script file On Android Embedded Device using System function in Android NDK

℡╲_俬逩灬. 提交于 2020-01-22 16:27:31
问题 All Here i want to run .sh file via system call in android NDK. I able to run cp,rm command via system call. but sh command is not working via system call. I also installed busy-box on android.I am using below code.I set all permission on test.sh . Code : #include <stdlib.h> #include <stdio.h> #include <android/log.h> #include <jni.h> #define LOG_TAG "Demo" #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__) void Java_com_ndkdemo_NDKdemoActivity_systemcall(JNIEnv *

javah Android Studio Error: cannot access android.support.v7.app.ActionBarActivity class file for android.support.v7.app.ActionBarActivity not found

故事扮演 提交于 2020-01-21 11:56:10
问题 I am following this tutorial on how to use NDK with Android Studio: http://www.ph0b.com/android-studio-gradle-and-ndk-integration/ I have android studio 0.9.3 installled on windows 8, and i follow each step of the tutorial in the video, and at the step to generate jni folder i do this in the android studio's terminal : D:\ANDROID\workspace\NDKSample\app\src\main>javah -d jni -classpath D:\ANDROID\kits\sdk\platforms\android-19\android.jar;D:\ANDROID\workspace\NDKSample\app\build\intermediates

c++11 multithreading issues with Android where some threads are not scheduled properly

喜欢而已 提交于 2020-01-21 07:32:25
问题 I am developing a VoIP based application which is multithreaded. For every socket there is a c++11 std::thread (including SSL read & write). The core module for data communication is in C++ which is called through JNI interface. My observation is that, once initializing the application after few seconds, some threads which were running earlier normally are not getting running time. If a certain thread is running then it keeps running for a while ranging from 3-4 seconds to 30-40 seconds.

Unable to get JNIEnv* value in arbitrary context

一曲冷凌霜 提交于 2020-01-21 02:15:06
问题 I have an issue with the NDK. In my JNI_OnLoad method, I cache the JavaVm pointer, the class that called the method, and a method id which I use later on: JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *jvm, void *reserved){ JNIEnv *env; cachedJVM = jvm; if((*jvm)->GetEnv(jvm, (void**)&env, JNI_VERSION_1_6)){ LOG_ERROR("Could not get JNIEnv*"); return JNI_ERR; } javaClass = (*env)->FindClass(env, "org/test/opensl/AudioProcessor"); if(javaClass == NULL){ LOG_ERROR("Could not get java class"); return

Android NDK Environment Variables on Windows 7

纵然是瞬间 提交于 2020-01-20 08:18:10
问题 I am currently trying to get the NDK up and running in Eclipse. I have read several tutorials, and found one that seems to make sense to me. However, it says: Please make sure that you have set the environment variables like JAVA_HOME -- Java Home Directory NDK_HOME -- Android NDK Home Directory Update Path Variable with JDK Bin folder I am in my Environment Variables window, but am confused about what to do. I have no JAVA_HOME variable yet, so I need to create it, but with what value? The

What version of OpenGL does HTC Wildfire support?

删除回忆录丶 提交于 2020-01-20 07:01:27
问题 I'm testing my app on HTC Wildfire running Android 2.2.1. I suppose it should support atleast OpenGL 1.1 but in fact when I'm calling glGetString(GL_VERSION); I'm getting this: OpenGL ES-CM 1.0 Is there any way to create OpenGL 1.1 context and not 1.0 ? 回答1: Unfortunately, HTC Wildfire doesn't have GPU. http://developer.qualcomm.com/device/htc-wildfire CPU:Qualcomm MSM 7225 Graphical Processor Unit (GPU): No GPU GL info for HTC Wildfire OpenGL Version - OpenGL ES-CM 1.0 OpenGL Vendor -

What version of OpenGL does HTC Wildfire support?

 ̄綄美尐妖づ 提交于 2020-01-20 07:00:25
问题 I'm testing my app on HTC Wildfire running Android 2.2.1. I suppose it should support atleast OpenGL 1.1 but in fact when I'm calling glGetString(GL_VERSION); I'm getting this: OpenGL ES-CM 1.0 Is there any way to create OpenGL 1.1 context and not 1.0 ? 回答1: Unfortunately, HTC Wildfire doesn't have GPU. http://developer.qualcomm.com/device/htc-wildfire CPU:Qualcomm MSM 7225 Graphical Processor Unit (GPU): No GPU GL info for HTC Wildfire OpenGL Version - OpenGL ES-CM 1.0 OpenGL Vendor -

Fatal signal 11 (SIGSEGV), code 2, fault addr 0xb3d5e488 in tid 8058

会有一股神秘感。 提交于 2020-01-17 17:29:14
问题 I have a simple ndk code in my app and im keep getting this error in the logcat and app keep crashing. Here is the method where app is crashing: char VAL1[] = "abcdef"; char VAL2[] = "123456"; char VAL3[] = "helloworld"; JNIEXPORT jstring JNICALL Java_com_livetv_android_apps_uktvnow_utils_Constants_getValue(JNIEnv *env , jobject thiz, jstring date, jstring completeUrl, jstring params){ const char *nativeDate = (env)->GetStringUTFChars(date, 0); const char *nativeUrl = (env)->GetStringUTFChars