[Android] JNI TIP, udev
- Mobile/android
- 2011. 12. 20.
Android - JNI - LoadLibrary() 함수를 사용하여서
Error 나는 부분을 Debug 로 나타내도록 하자.
/** A helper for loading native libraries stored in "libs/armeabi*". */ public static boolean loadLibrary(String nLibName) { try { System.loadLibrary(nLibName); DebugLog.LOGI("Native library lib" + nLibName + ".so loaded"); return true; } catch (UnsatisfiedLinkError ulee) { DebugLog.LOGE("The library lib" + nLibName + ".so could not be loaded"); } catch (SecurityException se) { DebugLog.LOGE("The library lib" + nLibName + ".so was not allowed to be loaded"); } return false; }
LINUX(ubuntu) 에서 Android os 를 인식하기위한 방법
LINUX: Adb does not recognize the Nexus One phone correctly, configuration must be changed. To do this follow the steps below
sudo vi /etc/udev/rules.d/90-android.rules
and add the following lines:
SUBSYSTEM=="usb|usb_device", SYSFS{idVendor}=="18d1", MODE="0666", GROUP="plugdev" SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e12", SYMLINK+="android_adb" SUBSYSTEM=="usb|usb_device", ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0fff", SYMLINK+="android_fastboot"
Then call:
sudo restart udev
Android 에서 bin 파일 설치하는 방법
터미널에서
sh ./파일명
이라고 하면된다.
'Mobile > android' 카테고리의 다른 글
Android min3D library (0) | 2011.12.21 |
---|---|
Android NDK 경로 저장(windows, ubuntu ) (0) | 2011.12.20 |
[Android] DownloadManager 를 이용한 파일 다운로드하기 (3) | 2011.12.16 |
[android sensor] TYPE_ROTATION_VECTOR (0) | 2011.12.08 |
[NDK build] Android.mk Application.mk (0) | 2011.12.07 |