본문 바로가기
[android] Pie 에서 앱 잘 작동하는지 확인하기 [android] Pie 에서 앱 잘 작동하는지 확인하기 https://developer.android.com/about/versions/pie/android-9.0-migration#ct -targetSdkVersion 을 올리지 않아도 pie(android 9) 에서 제대로 작동하지 않는 경우가 있다.그래서 아래의 것들을 확인해봐야한다. * non-SDK interface 에 대한 제약 -특정 non-SDK interface 에 대한 접근이 막힌다. 이것이 직접적 사용이던, JNI 를 통하던 reflection 을 통하던 말이다.제한된 interface 에 접근하는 것은 NoSuchFieldException 또는 NoSuchMethodException 을 발생시킨다.이에 대한 자세한 내용은.. htt.. 2019. 7. 30.
[android] Gradle Tutorial #1 [android] Gradle Tutorial #1 http://tools.android.com/tech-docs/new-build-system/user-guide Build System 의 목적 code 와 resource 의 reuse 를 쉽게 한다. app 의 여러 variant 에 따라 multi-apk 를 생성하거나, 약간 다른 기능을 하는 app 을 쉽게 생성해낸다. build process 를 쉽게 설정하고, 확장하고, 개인화 할 수 있다. IDE 와 잘 연동된다. 왜 Gradle 인가? plugin 을 통해 custom build logic 을 만들어 낼 수 있는 진보된 빌드 시스템 혹은 툴킷이다. Groovy 기반 DSL ( Domain Specific Language) 을 빌드 로직을 .. 2018. 10. 4.
[android 보안] 안드로이드 보안 모델 #1 [android 보안] 안드로이드 보안 모델 출처 : Android Security Internals 1장개요 목차 1. 안드로이드 보안 모델 1.1. 안드로이드의 아키텍처 1.1.1. 리눅스 커널 1.1.2. 네이티브 사용자 공간 1.1.3. 달빅 가상 머신 1.1.4. 자바 런타임 라이브러리 1.1.5. 시스템 서비스 1.1.6. 프로세스 간 통신 1.1.7. 바인더 1.1.8. 안드로이드 프레임워크 라이브러리 1.1.9. 앱 1.2. 안드로이드 보안 모델 1.2.1. 앱 샌드박스 1.2.2. 권한 1.2.3. IPC 1.2.4. 코드 서명과 플랫폼 키 1.2.5. 다중 사용자 지원 1.2.6. SELinux 1.2.7. 시스템 업데이트 1.2.8. 검증된 부트 1.3. 요약 1.1. 안드로이드의 아.. 2018. 4. 14.
[Effecitve Java] 네이티브 메소드를 분별력 있게 사용하자. [Effecitve Java] 네이티브 메소드를 분별력 있게 사용하자. - JNI 는 네이티브 메소드를 호출할 수 있게 해준다. 네이티브 메소드는 C, C++ 과 같은 네이티브 프로그래밍 언어로 작성한 특별한 메소드를 말한다. - 지금까지 네이티브 메소드의 주용도는 세가지였다. 레지스트리와 파일 락 같은 특정 플랫폼 관리시스템의 접근을 제공 레거시 데이터를 제공할 수 있는 레거시 코드로 된 라이브러리의 접근 제공 성능 향상을 위해 어플리케이션의 일부를 네이티브 언어로 작성하는 데 사용 - 자바가 발전하면 기존의 네이티브 메소드만이 할 수 있었던 일을 많이 대체하였다. java.util.prefs 패키지가 레지스트리 기능을 제공. java.awt.SystemTray 가 데스크톱 시스템의 휴지통 영역의 접근.. 2017. 2. 14.
[JNI] fatal error: queue: No such file or directory JNI, fatal error: queue: No such file or directory C, C++ 의 기본 library 를 사용하는 데 있어 아래와 같은 에러가 난다면, fatal error: queue: No such file or directory Application.mk 에 아래와 같은 코드를 추가해주면 된다. ( Android.mk 가 아니다. ) APP_STL := stlport_static Android.mk, application.mk, APP_STL, C, C++, fatal error, JNI, Library, NDK, No such file or directory, SDK, stlport_static, [JNI] fatal error: queue: No such file or .. 2014. 4. 18.
[JNI] bitmap handling source code frame. JNI, bitmap handling source code frame. #include /* Header for class com_example_coloring_utils_FloodFillUtils */#include #include #define LOG_TAG "DEBUG"#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) #ifndef _Included_com_example_coloring_utils_FloodFillUtils#define _Included_com_example_co.. 2014. 4. 16.
[JNI] undefined reference to `__android_log_print' JNI, undefined reference to `__android_log_print' undefined reference to `__android_log_print' 위와 같은 reference error 가 나오면 아래의 것을 android.mk 에 넣어주면 된다. LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog Android.mk, JNI, L$(SYSROOT)/usr/lib -llog, LOCAL_LDLIBS, NDK, Reference Error, undefined reference to `__android_log_print', [JNI] undefined reference to `__android_log_print', __android_log_print 2014. 4. 14.
[JNI] undefined reference to AndroidBitmap JNI, undefined reference to AndroidBitmap "undefined reference to AndroidBitmap_getInfo""undefined reference to AndroidBitmap_lockPixels""undefined reference to AndroidBitmap_unlockPixels" 위와 같이 AndroidBitmap 에 관한 reference 를 찾을 수 없다는 메세지가 나오면..Android.mk 파일에 아래와 같이 reference 를 추가 해 주면 된다. LOCAL_LDFLAGS += -ljnigraphics androidbitmap, getinfo, JNI, ljnigraphics, local_ldflags, lockpixels, NDK, R.. 2014. 4. 12.
[android] flood fill algorithm performance tests. android, flood fill algorithm performance tests. 위와 같은 공룡의 엉덩이, 발, 그리고 꼬리에 이르는 부분을 FloodFill algorithm 을 적용하여 색칠해보았다.avg 값은 5회의 결과를 평균 낸 값이다. 1. Very Intuitive and Simple Flood Fill Algorithm Recursive method call 을 이용하여, 한 점을 기준으로 동,서,남,북 pixel 에 대해 recursive call 을 호출하는 방식이다. private void floodFill3(Bitmap bitmap, Point fillStartPoint, int targetColor, int replacementColor){Queue queue = new L.. 2014. 4. 11.
반응형