Resolution: Increase the simulator memory size in Android

Source: Internet
Author: User

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,

 
 
  1. Hw. LCD. density = 160; is the screen density
  2. Sdcard. size = 64 M; this statement indicates the size of the allocated SD card. I only assigned 64 M
  3. Skin. name = WXGA; resolution
  4. Skin. path = platforms \ android-11 \ skins \ WXGA; simulator skin
  5. Hw. keyboard. lid = no; whether there is a physical keyboard
  6. Vm. heapSize = 48; default vm heap size
  7. Hw. ramSize = 256; the memory size of the RAM running on the simulator is only 256 MB.
  8. 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

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.