Discuss with youAndroidIn the simulator memory, sometimes when we use the simulator to develop applications, will we use the memory, then the memory provided by the simulator will be enough for small applications, but sometimes we will be exposed to a lot of applications, and the memory on our simulator will not be enough. So what should we do? When we get here, we will start to grow bigger, after today, the children's shoes will not be too big if they see this situation. So what are we waiting for to make the memory of our Android simulator bigger.
1. take the SDK for Windows as an example. Here, the path of the eoeAndroid simulator is C: \ Documents ents and Settings \ android \. android \ avd \ android3.avd. Note that the blue android in this path is my Windows user name, while the red Android3.avd is the name of my honeycomb simulator, I entered Android3 when creating AVD. For details, see congfig. ini is the configuration file of this simulator:
:
We use Notepad to open this INI file. Of course we can see the Unix/Binary line break. Here, we recommend that you use UltraEdit or Notepad ++ to open eoeandroid, here is only a demonstration of the structure of this file,
- Hw. LCD. density = 160; is the screen density
- Sdcard. size = 64 M; this statement indicates the size of the allocated SD card. I only assigned 64 M
- Skin. name = WXGA; resolution
- Skin. path = platforms \ android-11 \ skins \ WXGA; simulator skin
- Hw. keyboard. lid = no; whether there is a physical keyboard
- Vm. heapSize = 48; default vm heap size
- Hw. ramSize = 256; the memory size of the RAM running on the simulator is only 256 MB.
- Image. sysdir.1 = platforms \ android-11 \ images \; simulator image file path
Here we mainly modify hw. ramSize will change the subsequent 256 to a larger one. Of course, it should be modified based on the physical memory of your PC. Otherwise, it will seriously reflect the performance of your computer, if the memory of your computer is 2 GB or above, we recommend that you set the same size as the RAM settings of the motorcycle Xoom platform, hw. ramSize = write 1024 next to it. Save it,
Add Android source code to SDK
SD card for Android Simulators
How to install and uninstall programs in the Android Simulator
How do you correctly start the Android SDK 1.5 simulator?
How to install APK In the Android simulator on your computer