본문 바로가기
[android] login test 를 쉽게 하자! [android] login test 를 쉽게 하자! adb 는 신비롭다.현재 focus 를 가지고 있는 edittext 에 adb 로 input 도 가능하다. adb shell input text [typing]adb shell input keyevent 66 // enteradb shell input text [typing] 위의 typing 부분에 각각 id, password 를 넣으면 쉽게 login 테스트를 할 수 있다. batch 파일로 만들어서 로그인 할 때마다 실행하면 손쉽게 로그인 시킬 수 있다. 몰론.. debug 개발시에는 그냥 id, password 를 코드에 상수로 박아도 되지만,이렇게 adb 로 입력할 수 있다는 것을 안다는 것은 다른 곳에도 활용할 수 있어 알아야 할 지식 중 .. 2015. 12. 1.
[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.
Eclipse 에서 Android Studio 로 넘어가기. Eclipse 에서 Android Studio 로 넘어가기. Work spaces 와 Sub-Projects 여 안녕~ Eclipse 에서는 Workspace 와 library projects 개념이 친숙했을 것이다.Android Studio 에서는 projects 들은 Modules, library project 들은 Library Modules 이라는 개념으로 통한다. Module 안뇽~ 반가워~ : ) Module 은 독립적으로 실행 가능하고, 테스트 되고, 디버그 되는 녀석을 이야기한다.각 모듈은 각각의 gradle build file이 필요하다.gradle build file 은 android version range, dependency, meta data 등을 포함한다. 개선된 Interfa.. 2014. 3. 27.
반응형