标签:android des style class code tar
Genymotion is a complete set of tools that provides a virtual environment for Android. It can be very useful for developers, testers, salesman or even gamers.
It is available for most operating systems: Windows, Linux and Mac OS X. It
is as simple to install as powerful to use:
Follow the simple install
process, choose one of our Android virtual devices, start it, and enjoy
it!
You need one of the following system:
A minimum of 2GB of free space is required to deploy each Genymotion virtual devices. They might need more than 8GB depending on your usage of the virtual devices and the applications you have installed.
If you don‘t already have VirtualBox installed, read the following section.
The easiest way to install VirtualBox is to download the Genymotion package that contains VirtualBox installerhere
Go to VirtualBox download page and get the Mac OS X .dmg file. Open the .dmg file and follow the installation steps. When finished, reboot.
Check your repositories: almost every GNU/Linux have a package installer for VirtualBox. If not, or if you need to install a specific version, go to VirtualBox download page
Depending of your system, follow the install process:
chmod +x [DOWNLOAD_PATH]/genymotion-[VERSION]_[ARCH].bin cd [DOWNLOAD_PATH] ./genymotion-[VERSION]_[ARCH].bin -d [YOUR_INSTALL_PATH]
cd [YOUR_INSTALL_PATH] ./genymotion
Click the icon on your desktop
Click the icon from the Application directory
Launch [InstallationPath]/genymotion
The creation window appears.
Fill the authentication window with your Genymotion Cloud username/email address and password, then click the "Connect" button.
Select a virtual device (Nexus 7 - 4.3, for example) in the list and click the "Next" button.
For more informations about Genymotion software usage, please visit the following page: Usage disclaimer
For more details about the content of each licenses and differences among licenses, please visit the following page:Licenses details
To install a license into Genymotion and use the related features (Remote Control widget, Screencast widget, ...), follow these steps:
If your license is valid, your software will be fully unlocked and all corresponding features will be available.
If you have any problem registering your license, please, contact us using the support page
To check your license validity and ensure nobody else is using it, you’ll have to connect periodically to the Genymotion Cloud with Genymotion.
If you don‘t connect for several days, then your Genymotion software will switch back to free mode.
When your license is about to expire, the Genymotion software will notify you and ask you to connect to Genymotion Cloud.
The main Genymotion window lets you manage your virtual Genymotion devices:
In the menu bar, you can:
When clicking the "Add" button of the main window, it will open the virtual device creation window:
From this window, you can choose and create virtual device from the ones available online, or locally.
If you don‘t see any virtual device in the list, click the "Connect" button at the bottom of the list.
When clicking the "Connect" button, you will be prompt for your Genymotion Cloud credentials:
The general tab contains basic settings.
Change the network settings to fit your Internet access.
Configure virtual devices storage path.
Configure Genymotion to use ADB
By default, Genymotion use its own ADB utility. But it is possible to use your own ADB configuration (from Android SDK).
Set various options.
From the virtual devices list, you can:
In this window, you can configure virtual device settings such as its screen size, density, navigation bar, ...
When you deploy a new virtual device, at the end of the deployment, a snapshot is created. At any time you can restore your virtual device to its initial state just by using the "Factory Reset" button.
Warning: All installed applications, system patches, modified settings and data will be lost.When you run a virtual device from the main window of Genymotion, there are three steps:
If all these steps passed with success then your Genymotion virtual device is ready to use.
If Genymotion is up-to-date but a new version of virtual devices has been released, we recommend that you update some or all of your virtual devices.
When starting a virtual device, a popup window indicates that a newer version is available. Click Update.
During the update process, the wizard introduces some of the new features.
Note that when you upgrade a virtual device, the following items will not be lost:
This is the window where the virtual device is running and where you can interact with it
Because in most cases, virtual devices are controlled with mouse and keyboard, some shortcuts have been implemented to help simulate common gestures:
Note: on Apple OS X, you can replace Right click by using CTRL + click
Genymotion virtual devices support files drag&drop from computer to the device. Behaviour is different depending on the file type:
/sdcard/Download
.
They can be accessed by the the file explorer provided into the virtual device.
If the same application already exists with another signature, you will have the choice to override the existing application.
/system
folder) will be flash on the
device.
Such archives may damage your Genymotion virtual device. It is recommended to reboot your virtual device after flashing an archive.
Note: drag&drop requires ADB configured to work. Click here to learn how to configure ADB with Genymotion.
The clipboard is shared between your computer and Genymotion. Thus, you can easily copy and paste text from your computer to Genymotion, and reciprocally.
If you want to be precise in your UI development, you can use the "pixel perfect" button.
Note: if the device screen size is bigger than your monitor size, Genymotion window will be maximized and you will be able to use scrollbars to move into the device screen.
The battery widget allows modifications of the battery level, power status and power mode of the Genymotion virtual device.
First, open the widget using the corresponding panel button
By default, the Genymotion virtual device simulates the same battery as the one present in your computer. This button activate the simulation of a battery with custom values that you can adjust to test your application.
When your computer does not have a battery (desktop computer for example), the simulated is automatically activated.
When the simulated battery is activated, you can specify the Genymotion current battery level using the slider or by entering manually the value in the corresponding field.
When the simulated battery is activated, you can also modify the current status of the battery with the corresponding button:
The GPS widget allows *real time* activation and modifications of the position,accuracy and orientation.
When you activate the GPS with the corresponding button, you enable the reception of generated GPS frames in the Genymotion virtual device. When it is not activated, the GPS is not able to refresh the position, and the last known location is used.
Using the latitude and longitude field, you can specify the current position you want to simulated. They must be specified in degrees: the latitude from -90.0° to 90.0°, and the longitude from -180 to 180°
You can specify a custom altitude from -10000 m to 10000 m
You can specify a custom accuracy value using the slider or by entering the desired value from 0 to 200 m.
You can modify the bearing using the corresponding dial, or by entering the desired value form 0 to 359,99°
Note than many applications do not rely on the GPS orientation, but use the device accelerometer or gyroscope to determine the bearing of the device, which are not yet supported.
The Camera widget allows you to send a video stream to the Android system from a Genymotion virtual device.
With this feature you can test your Android application that requires the use of Android device builtin camera (eg, the development of an application such as a camera or video editing application type, ...).
The video stream can come from a dummy camera or a real physical webcam connected (or integrated) in your workstation. So you can send a real-time streaming.
When you activate the widget with the corresponding button, the Genymotion software tries to detect the available webcam on your workstation.
The preview allows you to see the video stream which will be sent to the
Android system, as the front or as the back camera.
With this preview, you
know if webcam is operational.
The Screencast widget allows you to take a screenshot or to record a video
(with sound capture) of virtual devices.
It is very convenient to broadcast
images or videos of your applications on web sites (Youtube, Google Play,
...).
All screenshots and recordings are stored in your home directory, in a folder named with your virtual device name. You can change this default folder in the configuration panel.
When you press this button, a screenshot of your virtual device is stored
in configured folder.
The shortcut for this action
is CTRL-SHIFT-S.
When you press this button, a video of your virtual device starts
recording. Press this button again to stop recording.
If your virtual
device emits sound then it will be captured with the video.
The shortcut
for this action is CTRL-SHIFT-V.
When you press this button, a file explorer opens to allow you to directly
access your screenshots and recorded videos.
The shortcut for this action
is CTRL-SHIFT-E.
Note: All screencast features are accessible via shortcuts even if Screencast widget is not displayed.
The remote control widget allows you to take control of Genymotion virtual
devices with your real device (any phone or tablet running API 8/Froyo or
greater). This widget works with a specific Android application that runs on
your device and forwards touch inputs and accelerometer values to
Genymotion.
As a result, you will be able to test the behavior of your
application as if it was running in your hands.
When activating the widget with the corresponding button, Genymotion tries to detect any connected Android devices.
Select your device in the list box, then click the "Start" button. If the device is connected to ADB and not visible in the list, then restart the widget.
Genymotion identifier widget shows Device ID and Android ID numbers. You can see and edit these values at runtime, without having to reboot your virtual device.
An Android ID is a 64-bit number (as a 16 hex digits string) that is randomly generated when the user first sets up the device and should remain constant for the whole lifetime of user‘s device.
Android 4.2.2 and newer versions support multiple user accounts, each one having a unique Android ID.
Button on the right of input text box generates a random identifier for you.
Valid characters for setting Android ID are:
Note: it is NOT allowed to set an empty Android ID.
By default, a new virtual device is deployed with a default Device ID
of 00 000000 000000 0
.
Button on the right of input text box generates a random identifier
for you. As IMEI or MEID number are used as Device ID, Genymotion will generate
valid numbers, according to GSM 02.16 standard and 3GPP2 specification (14
digits or hex-digits + a checksum digit).
Valid characters for setting Device ID / IMEI / MEID are:
Note that it is allowed to set an empty Device ID.
One of the most interesting feature of Genymotion is that you can test your application developed with Eclipse IDE. It uses ADB to connect to any active Genymotion virtual devices and then push your application.
There are two ways to install the plugin:
Genymobile
http://plugins.genymotion.com/eclipse
/home/[user]/Eclipse
Click the button in Eclipse toolbar to open the plugin
C:\Program Files\Genymobile\Genymotion
/Applications/Genymotion.app
/home/[user]/genymotion
In the plugin main window, you can do the following steps:
"Create" action will automatically start the Genymotion creation wizard
In the "status" column of the main window can take the following status:
Genymotion-VMNAME-@IP:PORTWhere:
VMNAME
is the virtual device name, as define in
Genymotion@IP:PORT
are the device address and port (assigned by
ADB)After a reboot or an unexpected halt of a Genymotion virtual device, its displayed name in the "Android Devices Chooser" window can became unrelated. Close and re-open the Genymotion plugin to resolve this
While Genymotion plugin window is open, errors are printed in Eclipse console.
As for Eclipse, we provide a plugin for IntelliJ IDE (Like Android Studio, or
IDEA).
With it, you can easily test your applications. It uses ADB to connect
to any running Genymotion virtual device and then push your application.
There are two ways to install the plugin:
genymotion-IDEA-plugin.jar
fileClick the button in IntelliJ toolbar to open the plugin
C:\Program Files\Genymobile\Genymotion
/Applications/Genymotion.app
/home/[user]/genymotion
In the plugin main window, you can do the following actions:
"Create" action will automatically start the Genymotion creation wizard.
The "status" column of the main window can take the following values:
Genymotion-VMNAME-@IP:PORTWhere:
VMNAME
is the virtual device name, as defined in
Genymotion@IP:PORT
are the device address and port (assigned by
ADB)After a reboot or an unexpected halt of a Genymotion virtual device, its displayed name in the "Android Devices Chooser" may become not relevant. Close and re-open the Genymotion plugin to solve it.
While Genymotion plugin window is open, errors are printed in IntelliJ console.
Genymotion provides a shell that enables you to script the modification of sensor states.
-h
: print help-r ip_address
: connect to specific Genymotion virtual
device-c "command"
: execute the given command in Genymotion Shell
environment and return-f file
: execute the content of the file. Each command per
linebattery getmode
host
: The virtual battery reflect the host battery (if
exists)manual
: In this mode, you can set the level and status
battery valuesbattery setmode
host
: The virtual battery reflect the host battery (if
exists)manual
: In this mode, you can set the level and status
battery valuesbattery getlevel
battery setlevel
battery getstatus
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
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
devices ping
devices refresh
devices select
devices show
devices factoryreset
force
at the end to avoid warning message about
data loss)
gps activate
gps desactivate
gps getlatitude
gps setlatitude
gps getlongitude
gps setlongitude
gps getaltitude
gps setaltitude
gps getaccuracy
gps setaccuracy
gps getorientation
gps setorientation
rotation setangle
genymotion capabilities
genymotion clearcache
genymotion version
genymotion license
android version
android getandroidid
android setandroidid
random
: generate a random Android ID.android getdeviceid
android setdeviceid
none
: set an empty Device ID.random
: generate a random Device ID.
build number
help
pause
version
exit
or quit
Android Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components: a client, a server and a service
How to install your own ADB tool and configure Genymotion to use it:
adt-bundle\sdkNote that :
Every Genymotion devices will now be automatically connected to ADB at start.
Genymotion User Guide,布布扣,bubuko.com
标签:android des style class code tar
原文地址:http://www.cnblogs.com/lashwang/p/3719765.html