genymotion是一款号称速度最快性能最好的android模拟器,它基于Oracle VM VirtualBox。支持GPS、重力感应、光、温度等诸多传感器;支持OpenGL 3D加速;电池电量模拟;能够运行在windows、linux、mac系统下;并提供的有eclipse下的插件,可以支持在eclipse下进行应用开发测试。

(一)首先介绍下如何下载并运行genymotion模拟器

在http://www.genymotion.com/网站上点击sign up按钮开始进行注册。

填写相关注册信息

完成注册后会提示你有邮件发到你上一步填写的邮箱去激活账户

在邮箱里激活刚注册的账户

激活刚注册的账户会提示你可以开始下载genymotion

登陆刚注册的账户

选择下载genymotion

选择包含virtualbox的genymotion-1.0-vbox.exe进行下载

下载完genymotion-1.0-vbox.exe,运行该exe按照默认的选项一路安装下去即可

安装完成后在桌面上会发现genymotion命令行工具图标:Genymotion Shell;genymotion程序图标:Genymotion:Genymotion;以及虚拟机Oracle VM VirtualBox的图标。

点击Genymotion图标运行genymotion会提示你需要创建虚拟设备,点击yes按钮开始创建虚拟设备。

使用注册好的用户名和密码连接服务器

连接好服务器后开始添加自己需要的虚拟机

按Next按钮创建虚拟设备

点击Next

点击Create按钮

创建完成

运行虚拟设备

设置android SDK目录

再次运行genymotion中的虚拟设备

使用起来确实比google提供的模拟器流畅不少

(二)安装安兔兔进行测分

genymotion模拟器的安兔兔测试得分

google模拟器的安兔兔测试得分:

安兔兔测得在同一台电脑上同是Nexus 480X800的虚拟设备genymotion分值高达13836,而http://blog.csdn.net/yearafteryear/article/details/9255431测试得到的google模拟器只有区区953,genymotion在各项参数上均表现好不少。

(三)在eclipse下安装genymotion插件

启动eclipse,选择Help->Install New Software菜单

点击add按钮

填入Genymobile、http://plugins.genymotion.com/eclipse点击OK按钮

选择genymotion相关插件选项进行安装

接受相关协议

忽略相关警告

提示重启eclipse即已经完成genymotion插件的安装,点击yes按钮重启eclipse

重启eclipse会在工具栏上发现genymotion的图标,点击即可启动该插件。

第一次启动genymotion插件需要填入genymotion的安装目录:C:\Program Files\Genymobile\Genymotion

(四)调试应用程序,这里我调试一个OpenGL的程序。发现OpenGL的程序在genymotion上运行的很好。

点击eclipse上的genymotion插件图标,在弹出的对话框选择以前创建的虚拟设备启动。

在eclipse下的工程项目上单击鼠标右键,在弹出的菜单里选择Run as->Run Configurations.

在Run Configurations对话框选择下面的选项即可

之后运行工程项目即可发现当前的这个opengl项目在genymotion上能很流畅的运行

(五)genymotion shell命令行工具

可在genymotion shell下输入相关指令获取一些信息或者设置一些参数之类

genymotion shell支持的命令行如下所示:

Command line options

  • -h Print help
  • -r ip_address Connect to specific Genymotion Virtual Device
  • -c "command" Execute the given command in genyshell environment and return
  • -f file Execute the content of the file. Each command per line

Available commands

  • battery getmode
    Return the current battery mode of the selected virtual device. The mode can only be:

    • host: The virtual battery reflect the host battery (if exists)
    • manual: In this mode, you can set the level and status battery values
  • battery setmode
    Set the battery mode. The mode can only be:

    • host: The virtual battery reflect the host battery (if exists)
    • manual: In this mode, you can set the level and status battery values
  • battery getlevel
    Return the current battery amount of power. The value can only be between 0% and 100%.
    If the battery mode is "host", the returned value is the host value.
  • battery setlevel
    Set the current battery amount of power. The value can only be between 0% and 100%.
    Set the battery level force the "manual" mode: if the last mode was "host", then it's turned to "manual"
  • battery getstatus
    Return the current battery status. There are 4 possible status:

    • Discharging: The power supply is disconnected and the battery is discharging.
    • Charging: The power supply is connected and the battery is charging.
    • Full: The battery is full.
    • Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
  • battery setstatus
    Set the current battery status. There are 4 possible status:

    • Discharging: The power supply is disconnected and the battery is discharging.
    • Charging: The power supply is connected and the battery is charging.
    • Full: The battery is full.
    • Unknown: Sometimes, the battery status cannot be established, it happens when there is no host battery.
  • devices list
    List available Genymotion virtual devices and provides details like current states or IP address.
  • devices ping
    Send a ping message to check if virtual device if responding
  • devices refresh
    Refresh Genymotion virtual device list. Use it to keep the list up-to-date.
  • devices select
    Select the Genymotion virtual device you want to interact with.
  • devices show
    List available Genymotion virtual devices and provides details like current states or IP address
  • gps activate
    Activate the GPS sensor (if not already activated)
  • gps desactivate
    Desactivate the GPS sensor (if activated)
  • gps getlatitude
    Return the actual latitude (if GPS is activated AND already has a latitude) or 0
  • gps setlatitude
    Set latitude (and activate GPS if not allready activated)
  • gps getlongitude
    Return the actual longitude (if GPS is activated AND allready has a longitude) or 0
  • gps setlongitude
    Set longitude (and activate GPS if not allready activated)
  • gps getaltitude
    Return the actual altitude (if GPS is activated AND allready has a altitude) or 0
  • gps setaltitude
    Set altitude (and activate GPS if not allready activated)
  • gps getaccuracy
    Return the actual accuracy in meters (if GPS is activated AND allready has a accuracy) or 0
  • gps setaccuracy
    Set accuracy (and activate GPS if not allready activated)
  • gps getorientation
    Return the actual orientation in meters (if GPS is activated AND allready has a orientation) or 0
  • gps setorientation
    Set orientation (and activate GPS if not allready activated)
  • android version
    Return the Android version of the selected virtual device
  • build number
    Return the genymotion shell build number
  • help
    Prompt the help.
  • pause
    Pause execution (in number of seconds).
  • version
    Return GenyShell version.
  • exit or quit
    Close Genymotion Shell.

android genymotion模拟器怎么使用以及和google提供的模拟器性能对比相关推荐

  1. Android Studio带(Google Play)的模拟器无法获得root权限

    android Studio的模拟器获取root失败,即adb shell之后su无法转到root权限,原因是: Android Studio带(Google Play)的模拟器无法获得root权限安 ...

  2. 【Android】 Firebase登录、FCM、Google Play支付、adbrix、ONEStore、Galaxy Store、Google Install Referrer

    Android SDK接入 最近接了一个韩国的渠道,之前没有接过这些原生的sdk,头大啊.本来也不是搞android开发的,只能强搞了.还是国内的好啊,都给你整合完了. 如有问题,麻烦大佬指教一二,非 ...

  3. Android传感器、语音识别、定位系统、Google Map API、快捷方式、widget编程总结及示例

    Android特色开发 第一部分 传感器    传感器是一种物理装置或生物器官,能够探测.感受外界的信号.物理条件(如:光.热.湿度)或化学组成(如:烟雾),并将探知的信息传递给其他设备或器官.    ...

  4. Android传感器、语音识别、定位系统、Google Map API、快捷方式、widget编程总结及示例...

    Android特色开发 第一部分 传感器 传感器是一种物理装置或生物器官,能够探测.感受外界的信号.物理条件(如:光.热.湿度)或化学组成(如:烟雾),并将探知的信息传递给其他设备或器官. Andro ...

  5. Android Monkey测试入门:安装sdk、studio、模拟器,并分析monkey日志

    Android Monkey测试入门:安装sdk.studio.模拟器,并分析monkey测试报告结果 1. 安装Java JDK和android SDK 2. 安装Andriod studio及模拟 ...

  6. Google Maps API v2 android版本开发 国内手机不支持google play Service相关问题解决--图文教程

    Google Maps API v2 android版本开发 国内手机不支持google play Service相关问题解决--图文教程 参考文章: (1)Google Maps API v2 an ...

  7. 【Android 安装包优化】WebP 图片转换 ( 使用 iSparta 转换 WebP 图片格式 | Google 提供的 libwebp 库 )

    文章目录 一.使用 iSparta 转换 WebP 图片格式 二.Google 提供的 libwebp 库 三.参考资料 一.使用 iSparta 转换 WebP 图片格式 isparta 工具已经停 ...

  8. 关于 android 虚拟机显示在了界面里面,怎么把模拟器放到到android studio窗口外面这件事

    关于 android 虚拟机显示在了界面里面,怎么把模拟器放到到android studio窗口外面这件事 如图所示: 解决方法: 再次重启 AndroidStudio 即可

  9. android dolphin 手柄,使用安卓手机充当PC上WII模拟器手柄

    2014-03-10 没有安卓版wii模拟器吗 本帖最后由 wushuangqueque 于 2013-7-9 01:46 编辑 海豚团队的新型安卓模拟器由海豚wii模拟器团队原班人马开发前景光明 海 ...

最新文章

  1. 北工大计算机学院教授,北工大计算机学院计算机科学与技术导师介绍:周艺华...
  2. 工程搭建:搭建子工程之分布式id生成器
  3. 实现远程连接MySQL
  4. windows Ctrl + Alt + 方向键 取消屏幕反转
  5. 如何查看linux系统源码
  6. 搜狗营收创新高,股价却跌7%,对话王·玄奘·小川
  7. JavaScript数字精度丢失的一些问题
  8. iOS APP 启动页和icon图标尺寸
  9. 中国汽车市场的合资模式终究覆灭
  10. linux 切换ked桌面,manjaro更换桌面环境
  11. Win10系统怎么打开卓越模式?Win10这些隐藏模式你都知道吗?
  12. HTML 制作简单的下拉菜单
  13. hba卡在服务器什么位置,设置服务器通过HBA卡启动目前服务器主流使用的是Qlogic和Emulex.doc...
  14. 为员工 尚德机构建教育圈最大期权池
  15. 闲人博上介绍R语言的一篇好文章
  16. postgres使用with计算占比,同比和环比
  17. openpyxl学习笔记(2020--8-11)——制图续
  18. 超带感的AR大屏互动,多元化应用场景!
  19. 贪心、动态规划:钢条切割
  20. 怎样下载苹果 Apple Store 官方 APP 里的限时免费应用福利?

热门文章

  1. OpenCV-美食—鲜美滤镜
  2. java 注解object_JPA之常用 基本注解
  3. c语言break和return区别,C语言break,continue和return的区别
  4. 计算机械效率的公式四种,功功率机械效率复习题超全
  5. android mvp框架基类,Android MVP架构项目搭建封装,基类封装
  6. 怎么调整矩形边框宽度_PKPM:梁刚度放大通过放大系数与矩形梁转T形梁的区别...
  7. ios html5 自动全屏播放,禁止iPhone Safari video标签视频自动全屏的办法
  8. 测试工程师,应当知晓的12项基本原则
  9. java 重载 调用指定_java 方法重载的时候,同一个类,父子类,调用哪个方法的问题...
  10. android 模拟gps坐标,1020. Android GPS定位欺骗(模拟定位)的3类途径4种方式