Oracle ADF Mobile - Part 4 - Deploying and Testing Android Applications using AndroVM
seen from China

seen from Austria
seen from United States
seen from United States

seen from United States
seen from United States

seen from Austria
seen from China
seen from China

seen from Türkiye
seen from United States

seen from United States
seen from Norway
seen from United States
seen from Russia

seen from Germany

seen from Bangladesh

seen from United States
seen from United States
seen from United States
Oracle ADF Mobile - Part 4 - Deploying and Testing Android Applications using AndroVM
Installing Google Play Services on Genymotion 2.0
Genymotion no longer includes Google Apps in virtual device image. So the new Genymotion 2.0 no…
View Post
Baking Android Apps Just Became Even More Fun with Gradle and Genymotion
First of all, work has forced me to scour the web for less painful solutions to running Android apps in emulators. Genymotion came to my rescue! Utilizing the VirtualBox virtualization wizardry, the Genymotion engineers have succeeded in making Android emulation something "wonderful" (coming from something painful) which is a tremendous improvement. They're not lying... it's lightning fast. Fast to the point it's almost awkward (I'll have to get used to this). The product is based on the the AndroVM open source project something you'll need to keep an eye on if you're a Android dev.
Furthermore, I've been checking my build options for some improvement. Up until now I've been writing custom makefiles using ant and adb to clean, build, install, uninstall and log my apps. I needed this because I do everything from my command line -- I have an aversion to IDE's although they are great for shielding you from the nitty gritty household magic that happens underneath the hood. A couple of months ago I ran into a nasty problem with support libraries that forced me to copy the source of one of the classes into my project (not something I was happy with). Somehow I was not getting my support libraries properly added to my build path to allow exception-less extensions of the ActionBarActivity class.
Last night, while setting up another app I decided to do things the right way. The Android dev community seems to be making a shift to gradle and why would I say no to something that offers dependency management? After shifting my entire project structure around a bit I got this b* (baby or bitch -- either one goes) running. For a great example of how to get gradle running in Android projects check out the Google I/O 2013 app source.
Some wonderful developments in Android world!
[안드로이드] 에뮬레이터 대신 AndroVM을 통해 테스트 진행하기
테스트장비 없이 안드로이드 개발을 해 본적이 있다면, 에뮬레이터의 느린 속도 때문에 답답함을 느껴보았을 것이다. (그것도 매우!)
이 부분을 보완하는 여러가지 방법이 있는데, 내가 봤던 방법 중 하나는 Intel에서 제공하는 x86 system image를 세팅하는 방법이 있다.
http://software.intel.com/en-us/articles/intel-atom-x86-image-for-android-ice-cream-sandwich-installation-instructions-manually/
Android SDK Manager를 통해 실행하고, CPU/GPU 가속도 사용 가능해서 쓸만하다고 느껴진다. 이 부분은 추후에 번역해서 올리려고 한다.
이번에 테스트 해본 부분은, 안드로이드 x86 vm 을 virtualbox에 올려서 테스트할 수 있는 방법에 대해 소개하려고 한다.
첫 번째로, virtualbox 는 www.virtualbox.org 에서 다운로드 받아서 각 운영체제에 맞게 다운로드 받으면 된다.
virtualbox 설치 완료 후, 안드로이드 x86 vm을 다운로드 받도록 하자.
vm 파일은 http://androvm.org/blog/download/ 에서 최신 파일을 다운로드 받으면 된다.
테스트를 위해 20130222 버전을 받았으며, vbox86tp 는 타블렛/스마트폰 지원을 의미하며, vbox86t는 타블렛, vbox86p는 스마트폰을 의미한다.
각각의 기본 설정값 아래와 같다.
vbox86p : 스마트폰 용 빌드, 480×800 기본 해상도
vbox86t : 태블릿 용 빌드, 1024×600 기본 해상도
vbox86tp : 스마트폰 및 태블릿 용 빌드, 1024×600 기본 해상도
다운로드 받은 후 virtualbox에서 파일 > 가상시스템 가져오기로 파일을 읽어들인다.
그럼 위와 같이 보이는 것을 확인할 수 있으며, Host PC와 VM간 연결을 위해 설정 > 네트워크로 들어가서 호스트 전용 어댑터를 생성하도록 하자.
이때 VM은 꺼진 상태에서 작업해야 한다.
이제, eclipse에서 실행하기 위해 아래와 같이 세팅한다.
Eclipse > Debug > Debug Configuration에서 새로운 debug configuration 생성한다.
설정을 완료하고 나면, 커맨드 창에서 테스트 안드로이드 프로젝트로 들어간 후, 아래와 같은 명령어를 수행한다.
실행하고 나면, 연결에 성공했다는 메세지가 보인다.
$adb connect 192.168.56.101
connected to 192.168.56.101:5555
* 참고) virtualbox 에서 호스트 전용 어댑터로 연결하고 나면 Host PC는192.168.56.1 의 virtualbox의 router가 되고, Guest (VM) 은 192.168.56.101의 기본 ip를 가지며, 변경도 가능하다.
이후 Debug > virtualbox_debug를 실행하면 vm에서 아래와 같이 나오는 것을 확인할 수 있다.
* 네트워크 > 호스트 전용 어댑터 설정이 잘 되지 않을 경우,
http://androvm.org/blog/download/ 에서 AndroVMPlayer 를 다운받아 실행시키면 네트워크 설정을 잡아주니 테스트해보도록 하자.
* 속도? 당연히 에뮬레이터보다 훨씬 빠르다.
----
* 내용에 수정이 필요한 부분이 있으면 의견 환영합니다.
* 문서 작성하기 참 쉽지 않네요. 특히 가독성 있는 문서라는건 참...ㅠ_ㅠ