m_shige1979のときどきITブログ

プログラムの勉強をしながら学習したことや経験したことをぼそぼそと書いていきます

Github(変なおっさんの顔でるので気をつけてね)

https://github.com/mshige1979

androidの高速なエミュレータ「genymotion」を使用

まず

通常?というかエミュレータを上げずに実行

環境

cordova

実験

$ cordova run android
・
・
・
BUILD SUCCESSFUL
Total time: 5 seconds
Built the following apk(s):
    /Users/matsumotoshigeharu/sample_projects/hello/platforms/android/ant-build/CordovaApp-debug.apk
WARNING : No started emulators found, starting an emulator.
Waiting for emulator...
Booting up emulator (this may take a while)..........

起動するのおせぇぇぇぇぇぇぇl
というか動かんだろこれ

genymotion

サイト

f:id:m_shige1979:20141119210256p:plain

サインアップするとgenymotionをダウンロードできるのでインストールする

f:id:m_shige1979:20141119210558p:plain

起動するとサインインを求められるので認証してエミュレータを追加

f:id:m_shige1979:20141119210845p:plain

バーチャルボックスの仮想VMのネットワーク設定を変更

f:id:m_shige1979:20141119211122p:plain

起動

f:id:m_shige1979:20141119211304p:plain

実行
$ cordova run android
BUILD SUCCESSFUL
Total time: 4 seconds
Built the following apk(s):
    /Users/matsumotoshigeharu/sample_projects/hello/platforms/android/ant-build/CordovaApp-debug.apk
WARNING : No target specified, deploying to device '192.168.57.101:5555'.
Using apk: /Users/matsumotoshigeharu/sample_projects/hello/platforms/android/ant-build/CordovaApp-debug.apk
Installing app on device...
Launching application...
LAUNCH SUCCESS

f:id:m_shige1979:20141119211528p:plain

※簡単に稼働しました

注意

$ cordova emulate android

※この場合は既存のエミュレータが動作するのでダメでした

所感

速かった