Genymotion Chinese manual (Official user manual translation)

Source: Internet
Author: User

 

 

1. Overview

Genymotion is a complete toolkit that provides a virtual Android environment. It is useful for game players in software development, testing, and sales settings.

Genymotion can be used in most operating systems: Windows, Linux, and MacOS X. It is easy to install and has powerful functions. Follow the simple steps below to select a virtual device and start enjoying your virtual Android!

2. Features 2.1 Best at virtual Android
    OpenGL accelerators achieve the best 3D Performance
  • Apps can be installed on Google Play.
  • Supports full screen to improve user experience
2.2 high controllability
    Allows you to enable multiple virtual devices at the same time.
  • Allows you to manage multiple sensors.
    • Battery level/status
    • GPS
    • Accelerator
  • Allows you to use Genymotion Shell to directly manipulate sensors on Virtual Devices.
  • Fully compatible with ADB, allowing you to directly control virtual devices from the host
2.3 manage your devices
    Easy to install
  • Compatible with 32/64-bit Windows, MacOS X 10.5 +, and Linux 32/64
  • Configurable Virtual Devices
    • Screen Resolution
    • Memory size
    • Number of CPU units
  • Easily download and deploy the latest Genymotion Virtual Device
2.4 enable virtual devices from Eclipse
    Test your application in Genymotion
3. Requirements 3.1 Operating System Requirements
  • Run Genymotion on the following operating system:
    • Microsoft Windows XP SP3 (32 or 64 bits)
    • Microsoft Windows Vista (32 or 64 bits)
    • Microsoft Windows 7 (32 or 64 bits)
    • Linux Ubuntu 12.04
    • Linux Ubuntu 12.10
    • Mac OS X 10.X
3.2 system hardware requirements
  • Supports OpenGL 2.0 graphics card with the latest driver
  • Supports VT-x or AMD-V CPUs and enables functionality in BIOS
  • RAM at least MB
  • Genymotion can be installed with only MB of hard disk space. A Virtual Device in Genymotion requires at least 2 GB of space available or more than 8 GB of space, depending on the usage of the virtual device and the applications it installs.
  • Internet access (installation and update)
  • Screen Resolution higher than 1024*768
3.3 installation requirements
  • Oracle VirtualBox 4.1 and later (better version)
4. Install 4.1 register 4.2 download and install Oracle VirtualBox

If Oracle VirtualBox is not installed on your computer, read the following.

  • Windows

The easiest way to install Oracle VirtualBox is to download files containing VirtualBox.

  • Mac OS X

Access the download page to obtain

Check your software Repository: VirtualBox provides installation packages for almost all GNU/Linux systems. If you do not have a special version, visit.

4.3 download Genymotion4.4 install Genymotion

Follow the following installation steps based on your operating system.

  • Windows
    • Double-click the downloaded msi installation package
    • Select the installation language (Genymotion language depends on the operating system language) and click "Next"
    • Click "Next" again"
    • Change the installation path as needed and click "Next"
    • Click "Next" again"
    • Whether to create a desktop icon, click "Next"
    • Click "Install"
    • Click "finish"
  • Mac OS X
    • Open the dmg installation package
    • Set
  • Linux
    • Use the following command in the terminal.

5. Quick Start

1. Run Genymotion

  • Windows

    Click the desktop icon

  • Mac OS X

    Click the icon in the application directory.

  • Linux

Start

2. The main window is as follows:

3. Click "add". The following window is displayed:

4. Click "Connect", enter your user name and password, and then click "Connect ".

5. Select a device from the list at the bottom and click "add ".

8. Click "close" to return to the main window.

9. Click "Play"

6. Genymotion application 6.1 Management window

The Genymotion main window can manage all Virtual Devices

  • In the menu bar, you can:
    • Open the window for started Virtual Devices
    • Add a new Virtual Device
    • Open/close Main Menu
  • Click the menu button:
    • Open setting window
    • Open the Help Window
    • Open a window
    • Launch applications
  • You can use a dedicated button or context menu:
    • Configure Virtual Machine Settings (resolution, DPI, navigation key, and so on)
    • Delete A Virtual Device
6.2 Virtual Device creation window

When you click "add" in the main window, the virtual device creation window is displayed.

In this window, you can select and create a device from the online device list or local device list:

    The list above contains the downloaded Virtual Devices.
  • The list below contains the available devices in your account
6.3 cloud connection window

The first time you open the virtual device creation window, you will be prompted to log on.

6.4 administrator settings window

  • Set ADB path:

The installation path of the Android SDK is set here, and the ADB executable file is automatically searched in this directory.

  • Set HTTP Proxy:

If you use an HTTP proxy, set the FQDN or IP address here.

  • Set the user name and password for the HTTP Proxy:

If your proxy requires basic authentication, use the user name and password for verification. Warning currently, only basic authentication is supported, and NTLM or Kerberos is not supported.

6.5 virtual device settings

You can configure Virtual Devices in this window, such as changing the resolution and density of Virtual Devices ......

  • Predefined screen size:

Set resolution and density from the predefined list

  • Custom screen size:

Set resolution and density manually. Warning errors may occur in custom resolution and density settings.

  • Run the VM in full screen mode:

You can start the VM in full screen mode and adjust the resolution based on the resolution of your monitor.

  • Display the android navigation bar:

6.6 enable Virtual Devices

6.7 run Virtual Devices

6.8 battery gadgets

6.9GPS gadgets

GPS gadgets can activate and modify location coordinates, precision, and orientation in real time.

  • Activate GPS

When you turn on GPS, you can receive GPS frames in the virtual device. When GPS is disabled, the location cannot be refreshed and the last location used is provided.

  • Modify location

You can use longitude and latitude to specify the location information you want to simulate. Must be specified with "degree", for example, the dimension range is-90.0 ~ 90.0 -- 180.0 ~ 180.0

7. Eclipse plug-in

An interesting feature is that you can use Genymotion to test the software you developed with Eclipse. Genymotion uses ADB to connect to the virtual device in operation and then install your software on the virtual device.

7.1install Eclipse plug-in

There are two ways to install plug-ins

1. Use the updated website for Automatic Installation

  • Start Eclipse
  • Click "Help-Install New Software…" in the menu bar... "
  • Click "Add" in the new window (in the upper right corner of the new window)
  • Enter the relevant information for verification.

      • Medium
      • Lower
7.2Eclipse plug-in usage

Plug-in used for the first time

7.3 operations

In the main window of the plug-in, you can perform the following operations:

The Genymotion creation Wizard will automatically appear during the "Create" operation.

7.4 virtual device status

The Status column in the main window of the plug-in can be in the following status:

  • Off: the virtual device is disabled.
  • Paused: the virtual device has been started and Paused. The virtual device will be in the same status after restart.
  • On: the virtual device is enabled, but it is not connected to ADB. This means that you cannot select this virtual Device from "Android Device Chooser" in the ADT plug-in.
  • Connected: the virtual device is started and Connected to ADB. This means you can select this virtual Device in "Android Device Chooser" of the ADT plug-in.
7.5 use Genymotion to test the application

1. Click Start or create a virtual device you want to use

2. Close Genymotion Main Window

3. Right-click your project file and select "Run as Android Application"

4. The "Android Devices Chooser" window appears.

5. Click the virtual device you have started/created

Where: VMNAME is the virtual device name in Genymotion, @ IP: PORT is the IP address and PORT (allocated by ADB)

When a virtual Device is restarted or accidentally paused, the display name in the Chooser window of the Android Device is not associated. Disabling and re-opening the Genymotion plug-in will solve this problem.

7.6 handle errors

When the Genymotion plug-in window is open, related error messages are printed on the Eclipse console.

8. IntelliJ plugin

Like Eclipse, we also provide a plug-in for IntelliJ (similar to). With this plug-in, you can easily test your application. It connects to any running Genymotion Virtual Device Using ADB and then loads your application.

8.1 plug-in Installation

There are two ways to install the plug-in:

1. JetBrains library Method

  • Start your IDE
  • Go to the "" menu
  • In the new window, select "" and click "..." (lower right)
  • In the list, click Genymotion and click "" (in the upper left corner)
  • Click "" to start
  • Click "" to exit the browser library window.
  • Click "" to exit the settings window.
  • IntelliJ requires a restart. Click "" to restart.

2. manual method

  • Access and download plug-ins
  • Start your IDE
  • Go to the "" menu
  • In the new window, select "" and click "..." (lower right)
  • Select File
  • Click ""
  • IDE request to restart, "" button to restart
8.2 use of plug-ins

First use

8.3 operations

In the main plug-in window, you can do the following:

The create operation automatically starts the create Genymotion Virtual Device wizard.

8.4 virtual device status

The Status column in the main window of the plug-in can be in the following status:

  • Off: the virtual device is disabled.
  • Paused: the virtual device has been started and Paused. The virtual device will be in the same status after restart.
  • On: the virtual device is enabled, but it is not connected to ADB. This means that you cannot select this virtual Device from "Android Device Chooser" in the ADT plug-in.
  • Connected: the virtual device is started and Connected to ADB. This means you can select this virtual Device in "Android Device Chooser" of the ADT plug-in.
8.5 use Genymotion to test the application

1. Click Start or create a virtual device you want to use

2. Close Genymotion Main Window

3. Right-click your project file and select "Run as Android Application"

4. The "Android Devices Chooser" window appears.

5. Click the virtual device you have started/created

Where: VMNAME is the virtual device name in Genymotion, @ IP: PORT is the IP address and PORT (allocated by ADB)

When a virtual Device is restarted or accidentally paused, the display name in the Chooser window of the Android Device is not associated. Disabling and re-opening the Genymotion plug-in will solve this problem.

8.6 handle errors

When the Genymotion plug-in window is open, related error messages are printed on the Eclipse console.

9. Genymotion Shell

Genymotion provides shell that allows you to modify the sensor status through scripts.

9.1 command line parameters
  • -H Print help: Show help
  • -R ip_address: connect to the virtual device with the specified IP Address
  • -C "command": Execute the command in shell and return
  • -F file: content of the execution file

    Each command must be in one line!

9.2 available commands
  • Battery getmode

    Returns the battery status of the selected virtual device, which can be:

    • Host: the battery of the virtual device reflects the battery status of the physical machine (host) (if any)
    • Manual: You can manually set the battery voltage and status in this status.
  • Battery setmode

    Set the battery status of the selected virtual device, which can be:

    • Host: the battery of the virtual device reflects the battery status of the physical machine (host) (if any)
    • Manual: You can manually set the battery voltage and status in this status.
  • Battery getlevel

    Returns the remaining power of the current battery. The value range is 0% ~ 100%. If the battery mode is "host", the battery power of the host is returned.

  • Battery setlevel
    Set the current battery power. The value range is 0% ~ 100%.

    Set the voltage to "Manual" mode. If the previous mode is "Host", it is set to "Manual" mode.

  • Battery getstatus
    Returns the current Battery status. There are four possible states:
    • Discharge: power off and battery discharge.
    • Charging Method: power connection and battery charging.
    • Full: Battery full.
    • Unknown: Sometimes the battery status cannot be determined and may appear when the host has no battery.
  • Battery setstatus
    Set the current Battery status. There are four possible states:
    • Discharge: power off and battery discharge.
    • Charging Method: power connection and battery charging.
    • Full: Battery full.
    • Unknown: Sometimes the battery status cannot be determined and may appear when the host has no battery.
  • Devices list
    List available Genymotion Virtual Devices and provide the current detailed status information, such as IP addresses.
  • Devices ping
    Send a ping command to check whether the virtual device responds.
  • Devices refresh
    Refresh the Genymotion virtual device list to keep the list up-to-date.
  • Devices select
    Select the virtual device you want to interact.
  • Devices show
    List available Genymotion Virtual Devices and provide the current detailed status information, such as IP addresses.
  • Gps activate
    Activate GPS (if not activated ).
  • Gps desactivate
    Turn off the GPS sensor (if activated ).
  • Gps getlatitude
    Returns the current latitude (if the GPS is activated and there is already a latitude) or 0.
  • Gps setlatitude
    Set the current latitude (if GPS is not activated, then GPS is activated ).
  • Gps getlongpolling
    Returns the current longitude (if the GPS is activated and there is already a latitude) or 0.
  • Gps setlongpolling
    Set the current longitude (if GPS is not activated, then GPS is activated ).
  • Gps getaltitude
    Returns the current height (if GPS is activated and the height is obtained) or 0.
  • Gps setaltitude
    Set the current height (if GPS is not activated, then GPS is activated ).
  • Gps getaccuracy
    Returns the precision in meters (if GPS is activated and precision is obtained) or 0.
  • Gps setaccuracy
    Set the current precision (if GPS is not activated, then GPS is activated ).
  • Gps getorientation
    The current orientation is returned in meters (if GPS is activated and orientation is obtained) or 0.
  • Gps setorientation
    Set the current orientation (if GPS is not activated, then GPS is activated ).
  • Rotation setangle
    Sets the Rotation Angle of the virtual device.
  • Android version
    Returns the Android version of the virtual device.
  • Build number
    Returns the genymotion shell version.
  • Help
    Show Help.
  • Pause
    Pause execution (in seconds ).
  • Version
    Returns the Genymotion Shell version.
  • Exit or quit
    Disable Genymotion Shell.
10. Install ADB

Android Debug Bridge (ADB)

How to install ADB and configure Genymotion:

  • In the path you selected, extract/decompress the archive.
  • Start Genymotion and open the settings panel.
  • Set the ADB path, for example

      This field will remain red until the provided path is valid
    • Not a valid value
  • Click "OK"

All Genymotion devices are automatically connected to the ADB server at startup.

Note:
  • This article is translated from the official website: https://cloud.genymotion.com/page/doc /;
  • Translated by Cui Nima, the level is limited, and it is inevitable that there are errors. Please include more;
  • Welcome to Cui Nima's blog;

Related Article

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.