Android virtual device on your PC | The emulator on the computer devices running Android



Rep: (3543)
Android Virtual Device


Attached Image


Installation

Android SDK / AVD Manager startup method

Video instruction

Windows 8.1:here

Windows 7 / etc.
1. Download JDK desired bitfrom here. How to determine the capacity of the system?
2. Install. Remove an unnecessary NetBeans 8.1 shortcut from a slave. the table.
3. Download Android Studio fromoff the site. Specify the path for Android Studio and Android SDK. For example such for Android Studio (do not forget, instead of<Username>Write your name): C: \ Users \<Username>\ AppData \ Local \ Android \ Android_Studio And Android_SDK: C: \ Users \<Username>\ AppData \ Local \ Android \ Android_SDK
4. After installing the Wizard of Android Studio, it will launch the Android Studio installer itself. Install.
5. Now click RMB on "My Computer" and select "Properties". On the "Advanced" tab, click on "Environment Variables", in the "System Variables" section, select the "Path" line and click the "Change" button. Add to the end of the line the full path to the platform-tools / directory, pre-separating it with a semicolon ";" For example:
; C: \ Users \ admin1 \ AppData \ Local \ Android \ Android_SDK \ platform-tools

6. Go to the Android_SDK folder and launch the SDK Manager. It is recommended to select everything in the list.
7. Click Install 101 packages
8. A list will appear with checkmarks and crosses. Click on the top and on the right choose Accept. Install. We wait.
9. Run AVD Manager and voila!
Creating a device
Attached Image

1. Click the Create button ...
2. In the upper field we write the name of the virtual device without spaces.
3. Choose a device that we want to emulate.
4. Select the version of Android. Personally, from my experience I recommend 4.4.2.
5. Select the processor. Better ARM.
6. Keyboard left as is.
7. Choose Skin: Skin with dynamic hardware controls
8. Select the RAM. I recommend to dial 2048. Leave the right margin as is.
9. Internal Storage - Internal memory. Give value. Better to put 500.
10. Select the size of the SD card. I recommend 500.
11. Emulation Options: Select Use Host GPU.
12. Click OK and wait.
13. In the list, select your device and click Start.
What should happen. Android 2.0 Sample
Attached Image
Error solving
AT - Question
ABOUT - Answer
P - Cause
AT: emulator: ERROR: no search paths found in this AVD's configuration.
Weird, the AVD's config.ini file is malformed. Try re-creating it.
P: Cyrillic is on the way.
ABOUT:
Ebb @ 01/01/2011, 03:52 *
On the way “c: \ Documents and Settings \ USERNAME \ .android \ avd \” there is a file “YOUR VIRTUAL.INI NAME”. Open notepad and edit the path. In your opinion, it will look something like, “c: \ Documents and Settings \ ABRECTS \ .android \ avd \ name emul.avd”. Replace “ABRACADABLEWOOD” with your username and save.
This is all tested on WinXP.
If it fails, try this method.
Oleg V @ 04/28/2012, 12:38*
Therefore, without thinking twice, I just made a normal command line and launched it from the folder of the receiver, where I had previously moved .android and recorded junction.exe
junction.exe "C: \ Documents and Settings \ username \ .android" "C: \ my way to where \ .android" and everything is linked
After creating a new image, you need to edit the image source, change the path in it from C: \ Documents and Settings \ username \ .android ...... to C: \ my path to where \ .android .....
Archive itselfhere.
AT: adb is not an internal or external command, executable program or batch file
P: You did not add adb to the system variables, or you specified an incorrect path to the adb file there.
Old method - via command line
Now we need to create our AVD (Android Virtual Devace), to put it simply, we create our virtual device.
Go to Start ->Run ->type cmd and click OK

At the command line, write android create avd -n<name>-t<targetID>
<name>- this is the name of our device (for example, HTC)
<targetID>- if we set the value to 1, then our device will have Android 1.1; if we set the value to 2, then our device will have Android 1.5

Also, when creating AVD, you can specify other parameters for our future device in the form -<option><value>where<option>is a parameter, and<value>- value. The list of parameters can be found here.

Attached Image

After creating AVD, we can change the iron characteristics of our virtual device. To do this, go to the directory where our virtual device is located, by default C: \ Documents and Settings \ username \ .android \ on Windows XP, and C: \ Users \ username \ .android \ on Windows Vista. In the file config.ini we add what we want to change, the list of parameters here

You can delete a virtual device by typing in the command line android delete avd -n<name>

Approximate AVD launch algorithm with 9 android in pictures

Virtual device launch
To launch the virtual device created by us, go to the command line. There we type emulator -avd<avd_name>where<avd_name>- the name of our device.

Also at startup, you can specify various parameters, the listhere.

Attached Image
Installing / reinstalling applications
To install applications on our virtual device, in the command line we write adb install your_application.apk, where your_application.apk is the path to the application you want to install.
After that, it will appear in your device.
To reinstall, write adb install -r your_application.apk

Attached Image
Images
Devices
Alternatives
Backup your programs to a separate system.img

Discussion and comparison of different emulators is conducted inspecial topic

Thanks for rebranding hatsGoogle 61


Post has been editedKenas - 29.08.18, 18:15
Reason for editing: Approximate algorithm for launching AVD with 9 android in pictures



Rep: (804)
MELLKOM3,
Android virtual device on your PC (Post # 3000913)



Rep: (4)
MELLKOM3,
Android virtual device on your PC (Post # 3000913)

no, also writes, some crap



Rep: (804)
MELLKOM3,
way, hope you indicated the right one?
show your teams



Rep: (4)
Now, look, I registered it according to the instructions
C: \ Program Files (x86) \ JavaFX \ javafx-sdk1.2 \ bin; C: \ Program Files (x86) \ JavaFX \ javafx-sdk1.2 \ emulator \ bin; C: \ Windows \ Microsoft.NET \ Framework \ v1.1.4322 \; C: \ Program Files (x86) \ Borland \ BDS \ 4.0 \ Bin;% SystemRoot% \ system32;% SystemRoot%;% SystemRoot% \ System32 \ Wbem; c: \ Program Files (x86) \ Microsoft SQL Server \ 90 \ Tools \ binn \; C: \ Program Files (x86) \ ATI Technologies \ ATI.ACE \ Core-Static; C: \ MY \ android-sdk-windows-1.5_r2 \ tools \ emulator.exe



Rep: (1094)
MELLKOM3 @ 08.28.09, 8:08*
Now, look, I registered it according to the instructions

C: \ MY \ android-sdk-windows-1.5_r2 \ tools \ - just like this,



Rep: (804)
MELLKOM3,
not quite right, + you need to run as
C: \ MY \ android-sdk-windows-1.5_r2 \ tools \ emulator.exe



Rep: (0)
Is there any command to assign a specific folder to a memory card?



Rep: (1094)
DeXel @ 08.28.09, 4:29*
Is there any command to assign a specific folder to a memory card?

From the beginning you need to create an image of a flash drive,
mksdcard

(Where<size>the size,<file>image name - for example, "mksdcard 1024M sdcard1.iso"), in the directory in which CMD is open your image will be saved in iso format
Next, you need to run the emulator directly with the registered card
emulator -sdcard

e.g. emulator @HTCMagic -sdcard C: \ Users \ Junoreaktor \ sdcard.iso

The only inconvenience to pull out the file from the virtual flash drive is to use ddms.bat (in the tools folder)

Post has been editedjunoreaktor - 27.08.09, 09:56



Rep: (76)
Android 1.6 SDK released
http://proandroid.ru/node/180



Rep: (2)
Um ... And the config file where you need to record the characteristics of the PDA you need to create yourself? And then I don’t have it ...



Rep: (0)
MELLKOM3,
I also wrote:
"android" is not internal or external
command, executable program or batch file.

It turned out that the thing was that, when I prescribed the path to the \ tools folder, I put the ";" sign before and after spaces. By removing the spaces, everything started normally !!!
Look, maybe you have it ...



Rep: (41)
Android.bat did not start for a long time
it turned out when I realized that in path I need to write the path WITHOUT SPACES after ";"

Now the batch file is launched, but now apparently inside it something with an error swears on java
H: \>android create avd -n HTC -t 1
Usage: java [-options] class [args ...]
(to execute a class)
or java [-options] -jar jarfile [args ...]
(to execute a jar file)

where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.

-cp<class search path of directories and zip / jar files>
-classpath<class search path of directories and zip / jar files>
A; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose [: class | gc | jni]
enable verbose output
-version print product version and exit
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
-ea [:<packagename>...|:<classname>]
-enableassertions [:<packagename>...|:<classname>]
enable assertions
-da [:<packagename>...|:<classname>]
-disableassertions [:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions

H: \>


I put it, as advised, not the SDK, but the Environment ..
what could be?

Post has been editedlittre - 23.09.09, 14:39



Rep: (0)
Who creates AVD's on Vista on the D: \. Android disk but the Emulator does not start, copy the D: \. Android folder to the C: \ Users \ directory<folder under the name of your computer>\ .android
All emulator starts;)
I myself suffered for a long time, I found
On Vista, android creates the avd folder under C: \ Users \<username>\ .android. It does this even if you are logged into a domain account (i.e. it doesn't create a C: \ Users \<domain>.<username>\ .android folder. This will cause the "unknown virtual device" error also. Copy the .android folder to C: \ Users \<domain>.<username>and you will be good to go.

onhttp://forum.xda-developers.com/showthread.php?t=520915

Post has been editedvldmr - 23.09.09, 21:51



Rep: (17)
For SDK 1.6 which<targetID>?



Rep: (0)
For SDK 1.6 which<targetID>?

Available Android targets:
id: 1
Name: Android 1.1
Type: Platform
API level: 2
Revision: 1
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2
Name: Android 1.5
Type: Platform
API level: 3
Revision: 1
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 3
Name:Android 1.6
Type: Platform
API level: 4
Revision: 1
Skins: HVGA (default), QVGA, WVGA800, WVGA854
id: 4
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 3
Description: Android + Google APIs
Based on Android 1.5 (API level 3)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: QVGA-P, HVGA-L, HVGA (default), QVGA-L, HVGA-P
id: 5
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Android + Google APIs
Based onAndroid 1.6 (API level 4)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: WVGA854, HVGA (default), WVGA800, QVGA


Post has been editedvldmr - 25.09.09, 15:09



Rep: (2)
I repeat, the config file where you want to record the characteristics of the PDA you need to create yourself?



Rep: (0)
I repeat, the config file where you want to record the characteristics of the PDA you need to create yourself?

No, it is created by itself android create avd -n<name>-t<targetID>
to the .android folder

Post has been editedvldmr - 26.09.09, 18:37



Rep: (0)
Attached Image

Attached Image


Post has been editedvldmr - 26.09.09, 19:04



Rep: (18)
But do not tell me under what IP virtual device sees the computer on which it is running?

I feel that the question is incomprehensible, so I’ll explain the problem:
on a computer on a known port a certain network service is running. What IP must be specified in the socket settings on the virtual device in order to connect to the service running on the computer?

UPD: I will answer my own question, maybe someone else will need:
Referring to localhost from the emulated environment

If you need to refer to your host computer's localhost, such as when you want the emulator client to contact a server running on the same host, use the alias 10.0.2.2 to refer to the host computer's loopback interface. From the emulator's perspective, localhost (127.0.0.1) refers to its own loopback interface.

found the answer tohttp://developer.android.com/guide/appendi...indowproperties
By the way, I recommend this resource to everyone.

Post has been editedAmmog - 03.10.09, 02:56
Reason for editing: answer



Rep: (5)
I launched android.bat, a normal guy appeared, you can run without a console ...


Full version    

Help     rules

Now: 09/13/19, 17:07