ddms seems to be disabled for genymotion in android studio -
i on mac . started genymotion emulator , via android studio started ddms .
kindly note send button in location control not clickable . if not use genymotion emulator , use directly emulator android studio button not disabled , works fine .
do need steps before using ddms genymotion emulator in android studio.
genymotion's fake gps positions cannot controlled ddms. there several other ways it:
- the ui widget. can open widget clicking on gps icon on right of device
it allows send mock data device (lat, long, altitude, accuracy , bearing). can open googlemap view choose location more easily.
- the java api
you can control gps position of device directly instrumented tests usgin java api. api gives same level of control ui widget. can find more information on the documentation.
here how it:
genymotionmanager genymotion = genymotionmanager.getgenymotionmanager(ctx); genymotion.getgps() .setlatitude(64.13367829) .setlongitude(-21.8964386);
you can find full sample on github
- the command line (genyshell)
you can launch genymotion console, connect specific device , send commands control gps. can find more information on genyshell documentation
Comments
Post a Comment