Android Quick Simulator Genymotion

Source: Internet
Author: User
Tags oracle vm virtualbox vm virtualbox

Genymotion is the fastest-performing Android emulator, based on Oracle VM VirtualBox. Support for GPs, gravity sensor, light, temperature and many other sensors, support OpenGL 3D acceleration, battery power simulation, can run under Windows, Linux, Mac System, and provide a plug-in under Eclipse, can support the application development test under Eclipse.

(a) First, how to download and run the Genymotion simulator

Click on the Sign Up button on the http://www.genymotion.com/website to start registering.

Fill in the relevant registration information

After completing the registration, you will be prompted to send an email to the email address you completed in the previous step to activate your account.

Activate a newly registered account in a mailbox

Activating a newly registered account will prompt you to start downloading genymotion

Login to a newly registered account

Select Download Genymotion

Select the Genymotion-1.0-vbox.exe that contains VirtualBox to download

After downloading the Genymotion-1.0-vbox.exe, run the EXE and follow the default options to install it all the way down

After installation, the Genymotion command line tool icon will be found on the desktop: genymotion shell;genymotion program icon: genymotion:genymotion, and the virtual machine Oracle VM VirtualBox icon.

Clicking the genymotion icon to run Genymotion will prompt you to create a virtual device and click the Yes button to start creating the virtual device.

Connect to the server with a registered user name and password

Start adding the virtual machines you need after connecting the server

Press the Next button to create a virtual device

Click Next

Click the Create button

Create complete

Running Virtual appliances

Set up the Android SDK directory

Run the virtual appliance in Genymotion again

It's really a lot smoother than the simulator Google offers.

(ii) installation of an Ann Bunny for testing

Genymotion Simulator's Ann Bunny test score

Google Simulator's Ann Bunny test scores:

Ann Bunny measured on the same computer with Nexus 480x800 's virtual device genymotion scores of up to 13836, while http://blog.csdn.net/yearafteryear/article/details/ The Google simulator that was 9255431 tested only 953,genymotion a lot of parameters.

(iii) installation of the Genymotion plugin under eclipse

Launch Eclipse, select Help->install New software Menu

Click the Add button

Fill in Genymobile, http://plugins.genymotion.com/eclipse click OK button

Select the Genymotion related plug-in option to install

Accept the relevant agreement

Ignore related warnings

Prompted to restart Eclipse to complete the installation of the Genymotion plugin, click the Yes button to restart Eclipse

Restarting eclipse will find the genymotion icon on the toolbar and click to launch the plugin.

The first launch of the Genymotion plugin requires filling in the Genymotion installation directory: C:\Program files\genymobile\genymotion

(d) Debug the application, here I debug an OpenGL program. The program that found OpenGL was running well on the genymotion.

Click the genymotion plugin icon on Eclipse, and in the popup dialog box, select the previously created virtual device to start.

Right-click on the project under Eclipse and select Run as->run configurations in the popup menu.

In the Run Configurations dialog box, select the options below to

Then run the project to discover that the current OpenGL project is running smoothly on the genymotion.

(v) genymotion shell command-line tool

You can enter relevant instructions under the Genymotion shell to get some information or set some parameters, etc.

The command line supported by the Genymotion shell is as follows:

Command Line Options
    • -hPrint Help
    • -r ip_addressConnect to specific genymotion Virtual Device
    • -c "command"Execute the given command in Genyshell environment and return
    • -fFile Execute The content of the file. Command per line
Available commands
  • battery getmode
    Return the current battery mode of the selected virtual device. The mode can only is:
    • 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 is:
    • 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 is only 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 is only between 0% and 100%.
                Set The battery level force the "manual" mode: If the last mode is "host", then it's turned to "manual"          
  • battery GetStatus
    Return the current battery status. There is 4 possible status:            
    • Discharging : The power supply is disconnected and the battery is discharging.              
    • charging : The power supply is connected and the batter Y is charging.             
    • full : the battery is full.             
    • Unknown : Sometimes, the battery status cannot be established, it happens when there is no host BATTERY.&N bsp;          
  • battery setstatus
    Set the current battery status. There is 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 was established, it happens when there was 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 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 have 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 have 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 have 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 have 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 have 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.
      • exitOrquit
        Close genymotion Shell.

Android Quick Simulator Genymotion

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.