본문 바로가기
[android] Useful ADB commands [android] Useful ADB commands # Start an activity adb shell am start / # Power Button adb shell input keyevent 26 # Menu Button adb shell input keyevent 82 # Print all installed packages adb shell pm list packages [-f] // -f 옵션이 있으면 apk 위치까지 함께 표시된다. # Logcat filter by tagname adb logcat -s TAG_NAME_1 TAG_NAME_2 # Logcat filter by priority adb logcat "*:E" # Logcat filter by tagname and priority.. 2015. 12. 12.
[Android] App Performance Tuning Video [Android] App Performance Tuning Video Key 1. Layout Depth 줄이기2. Overdraw 줄이기 3. UI Thread block 하지 않기 4. Garbage 만들지 않기 ( 쓸데없는 객체 생성 X ) How TraceView 로 확인하면서 Setting -> Developers options -> Show GPU overdraw빨간색은 수정이 필요하다. Method Profiling 이용 Android, app performance, developer options, GARBAGE, GC, Key, layout depth, method profiling, overdraw, setting, Show GPU overdraw, traceview, Tuning, u.. 2015. 12. 11.
[android] VideoView 를 사용하는 경우 progress hide timing. [android] VideoView 를 사용하는 경우 progress hide timing. 참조 : https://plus.google.com/+ArneStockmans/posts/FFE8PrWiPyq -API Level 1 부터 사용할 수 있는 VideoView 라는 녀석이 있다.http://developer.android.com/reference/android/widget/VideoView.html -MediaPlayer 의 내용물을 Rendering 시키는 SurfaceView 를 상속한 녀석이다. -SDK 17 부터는 OnInfoListener 를 달아놓으면, 실제 Rendering 이 시작될 때 What 으로 MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START 가 .. 2015. 12. 10.
[android] 강추 Graph open source library [android] 강추 Graph open source library -https://github.com/PhilJay/MPAndroidChart -앱에서 그래프를 사용해야 한다면 이 녀석이 최적의 solution 이 될 수 있다. -직접 사용은 안 해봤지만, github 에 이정도 인기있는 오픈 소스가 또 있을까 싶을정도로,2015년 11월 확인 당시 아래와 같은 인지도를 보여준다. -사이트 방문해서 어떤 그래프들을 제공하는지 한 번 보길~ Android, fork, github, graph, graph library, Open source, star, [android] 강추 Graph open source library, 강추, 그래프, 그래프 라이브러리, 그래프 오픈 소스, 사이트, 인지도, 추천 2015. 12. 9.
[android] face detect and cropper [android] face detect and cropper -https://github.com/lafosca/AndroidFaceCropper -아래와 같이 간단한 코드로 얼굴을 detect 해서 crop 한 결과를 전달해주는 open source.FaceCropper mFaceCropper = new FaceCropper();mFaceCropper.getCroppedImage(source); -얼굴 detect 를 어떻게 했을까?OpenCL 을 사용했을까 아니면 C 라이브러리를 사용했을까 궁금해하며 소스를 봤는데...안드로이드 자체에 FaceDetector 라는 녀석이 있었다. 오호? http://developer.android.com/reference/android/media/FaceDetector.. 2015. 12. 8.
[android] webview 에서 파일 업로드하기 -아래 input type 이 file 인 html 코드는 안드로이드 webview 에서 제대로 작동을 안 한다. 즉 해당 button 을 눌러도 파일 선택 창이 뜨지 않는다는 것. - 이 경우 webview 에 WebChromeClient 를 set 해주면서 필요한 함수를 구현해주면 된다.private static final int RC_FILE_CHOOSE = 2833;private ValueCallback mUploadMsg = null; ...webView.setWebChromeClient(new WebChromeClient() {// ICS 에서도 동작하기 위해서는 아래메소드도 넣어줘야함.public void openFileChooser(ValueCallback uploadFile, String.. 2015. 12. 7.
[android] authenticator 관련 Tutorial [android] authenticator 관련 Tutorial 참조 : http://cranix.net/346 http://cranix.net/347 http://cranix.net/349 http://cranix.net/350 Authenticator Service - 안드로이드 설정의 Accounts & Sync 메뉴의 기능 제공을 위해서 필요하다. - @ Manifest - @ xml/authenticator.xml - @AuthenticationService.java public class AuthenticationService extends Service { @Override public void onCreate() { // TODO Auto-generated method stub } @Ove.. 2015. 12. 5.
[android] tv 앱 기본설정 [android] tv 앱 기본설정 - Intent-Filter 의 category 가 android.intent.category.LEANBACK_LAUNCHER 로 설정되어야 TV에서 아이콘이 나오게 된다. - style 의 경우 @style/Theme.Leanback 을 사용하거나 이것을 상속한 녀석을 사용해야 한다. @style/theme.leanback, Android, android.iintent.category.LEANBACK_LAUNCHER, basic setting, Category, intent-filter, setting, style, Theme, theme.leanback, tv app, tv 아이콘, tv 앱, [android] tv 앱 기본설정, 기본 설정, 안드로이드, 테마 2015. 12. 4.
[android] Shadow effect with custom shapes [android] Shadow effect with custom shapes 출처 : https://slothdevelopers.wordpress.com/2014/05/22/shadow-effect-with-custom-shapes/ Custom 한 버튼을 만드는 xml 정의이다. Custom 한 Shadow 와 Custom 한 버튼 모양을 만들기에 좋다. Android, Bottom, COLOR, Corner, custom button, custom shape, custom 버튼, Example, ITEM, layer-list, Left, Radius, Right, sample, selector, Shadow, shadow effect, Shape, Solid, state_pressed, Top, xm.. 2015. 12. 3.
반응형