기본 콘텐츠로 건너뛰기

글

라벨이 android인 게시물 표시

build assimp for android on os x

https://www.bountysource.com/issues/44127272-android-ndk-build-fails http://www.myandroidonline.com/2015/06/09/compile-assimp-open-source-library-for-android/ https://developer.android.com/ndk/guides/standalone_toolchain.html $NDK/build/tools/make-standalone-toolchain.sh --arch=arm --verbose --toolchain=arm-linux-androideabi-4.8 --platform=android-21 --install-dir=./my-android-toolchain cmake -DCMAKE_TOOLCHAIN_FILE=$ANDTOOLCHAIN \       -DANDROID_NDK=$ANDROID_NDK \       -DASSIMP_ANDROID_JNIIOSYSTEM=ON \       -DCMAKE_BUILD_TYPE=Release \       -DANDROID_ABI="armeabi-v7a" \       -DANDROID_NATIVE_API_LEVEL=android-21 \       -DANDROID_FORCE_ARM_BUILD=TRUE \       -DCMAKE_INSTALL_PREFIX=install \       -DASSIMP_BUILD_TESTS=OFF \       ./$ASSIMP cmake --build .

Picasso vs Glide in Android

I started a new project with Picasso first, but had a problem with the orientation of photos. Picasso didn't display a photo properly according to it's orientation. So I changed to Glide which solve the problem. Use 'Glide' if you want to be safe about photo's orientation,

Android Dagger2

Google Docs and example codes https://docs.google.com/presentation/d/1fby5VeGU9CN8zjw4lAb2QPPsKRxx6mSwCe9q7ECNSJQ/pub?start=false&loop=false&delayms=3000&slide=id.g36c44a5df_0295 https://github.com/google/dagger/tree/master/examples good to read https://docs.google.com/presentation/d/1bkctcKjbLlpiI0Nj9v0QpCcNIiZBhVsJsJp1dgU5n98/edit#slide=id.g76eaa01fe_0_36 good to read https://medium.com/@patrykpoborca/making-a-best-practice-app-4-dagger-2-267ec5f6c89a#.w6v2qtxsb https://github.com/konmik/konmik.github.io/wiki/Snorkeling-with-Dagger-2 https://github.com/codepath/android_guides/wiki/Dependency-Injection-with-Dagger-2 http://fernandocejas.com/2015/04/11/tasting-dagger-2-on-android/ translation in Korean -  https://medium.com/@jason_kim/tasting-dagger-2-on-android-번역-632e727a7998#.24tkm44qc Component Dependency vs Submodules http://jellybeanssir.blogspot.kr/2015/05/component-dependency-vs-submodules-in.html https://github.com/JakeWharton/u2020...

Android Programming Architecture

Good writings for Android Architecture. list for resources https://github.com/ziem/android-architecture-resources History of Android Architecture http://zserge.com/blog/android-mvp-mvvm-redux-history.html Android Clean Architecture http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/ Google sample for Android Architecture with to-do app https://github.com/googlesamples/android-architecture MVP http://www.tinmegali.com/en/model-view-presenter-android-part-1/ https://github.com/konmik/konmik.github.io/wiki/Introduction-to-Model-View-Presenter-on-Android http://antonioleiva.com/mvp-android MVP examples https://github.com/antoniolg/androidmvp https://github.com/glomadrian/MvpCleanArchitecture in Krean http://thdev.tech/androiddev/2016/06/14/Android-TODO-MVP-Example.html http://pluu.github.io/blog/android/2016/04/06/android-mvc-mvp/ https://github.com/javajigi/mvp-examples

Problem of overlapping CoordinatorLayout and FrameLayout as frame_container in Android

When using FrameLayout as frame_container in CoordinatorLayout, it overlaps CoordinateLayout. The solution is set app:layout_behavior="@string/appbar_scrolling_view_behavior" to FrameLayout. http://stackoverflow.com/questions/32427084/android-supportlib-framelayout-in-coordinatorlayout-with-appbarlayout-consumin

Android NDK PREBUILT_STATIC_LIBRARY LOCAL_SRC_FILE should only contain one item error

to include other modules in the project, in the module's Android.mk file - using a shared ( .so ):  PREBUILT_SHARED_LIBRARY  - using a static ( .a ) library:  PREBUILT_STATIC_LIBRARY don't set LOCAL_SRC_FILES one item each LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := mobule_b LOCAL_SRC_FILES := ./lib/module_a.a include $(PREBUILT_STATIC_LIBRARY) include $(CLEAR_VARS) LOCAL_MODULE := module_b LOCAL_SRC_FILES := ./lib/module_b.a include $(PREBUILT_STATIC_LIBRARY)

Android OpenCV NDK loadlibrary function in static statement slow down problem

It is odd that when loading OpenCV NDK module in static statement makes app slow. Don't load the module like this.  static {       System. loadLibrary ( "ndk_module" );  } Load NDK module at onManagerConnected() in BaseLoaderCallback. private BaseLoaderCallback mLoaderCallback = new BaseLoaderCallback( this ) { @Override public void onManagerConnected( int status) { switch (status) { case LoaderCallbackInterface. SUCCESS : { System. loadLibrary ( "ndk_module" ); mOpenCvCameraView .enableView(); } break ; default : { super .onManagerConnected(status); } break ; } } };

Android Studio, gradle experimental, NDK, and OpenCV

It is really frustrating to build OpenCV native code with new Android Studio. The new Android Studio doesn't use make files, instead, sets compile options in app's builde.gradle file. The new gradle experimental(0.6.0-beta4) has some changes in DSL. It uses '.add' function, not '+='. Look at Sample Project at github AndroidOpenCVNDKDemo . It use Android Studio 2.0 beta5, gradle-experimental:0.6.0-beta, and OpenCV 3.1.0. I hope this will save your time. Useful sites http://tools.android.com/tech-docs/new-build-system/gradle-experimental http://ph0b.com/new-android-studio-ndk-support/ https://github.com/joaopedronardari/OpenCV-AndroidSamples -- 2016.03.06 Updated step by step explanation for Android NDK http://web.guohuiwang.com/technical-notes/androidndk1