In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to configure a good Android simulator. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
By default, the Android simulator looks like this:
The most conspicuous problem seen in this screen shot is obviously its ugly interface. The simulator window takes up a lot of space on the screen, and there is an on-screen keyboard for no reason.
If you haven't used the simulator yourself, there's another problem that's hard to find: it's almost too slow to use! It took five minutes to start the simulator to take the picture above, and there was almost no response to input events. There are three reasons for this:
1. Non-localized. The ARM architecture emulator is used by default, and although it is possible to convert instructions to x86, the conversion process is very slow.
two。 Non-accelerated. Even if you choose x86, virtual hardware acceleration will not be available automatically.
3. Soft drawing. GPU acceleration is also not available by default, which causes the simulator to be slower.
Here are some ways to solve these problems so that you are no longer so disappointed with the simulator.
1. Install Intel Hardware Accelerated Execution Manager on your computer, which can be found at the following location: Android SDK:
Extras/intel/Hardware_Accelerated_Execution_Manager.
two。 Start Android Virtual Device Manager
$android avd
3. Click New to configure the following information:
Target: Android 4.1-API Level 16.
CPU/ABI: Intel Atom (x86).
SD Card: Size 512 MiB.
Skin: for phone-sized simulators, I usually set it to 320x528. For tablet-sized ones, I use 1024 x 648s, and I add 48 pixels vertically to make room for navigation control on the screen.
Hardware:
Change these defaults:
Abstract LCD density 160
Click New... Set the following options:
Hardware Back/Home keys: noKeyboard Support: yesSD Card Support: yesGPU emulation: yes
Note: after adding and configuring these hardware options, select another row in the list to confirm that the new options have been automatically saved.
4. Click Create AVD, but don't start immediately.
5. Since x86 images don't contain any Google APIs, I know this is a bad reason, so we have to add them manually. If you don't need Google Maps APIs, you don't have to add it.
a. You need to copy a Google Maps file, and the easiest way is to create an emulator that targets "Google APIs (Google Ins.)-API Level 10" and then kill them all.
You can also download those files from http://goo.im/gapps.
b. The emulator / system area has 0 bytes by default, and although the AVD manager has an option to change this value, it doesn't actually work. To solve this problem, exit the AVD manager and start AVD from the terminal, specifying a larger area.
$emulator-partition-size 512 @ AVD_NAME
(replace AVD-NAME with a suitable name)
c. Add Google API files to your virtual device
$adb remount$ adb push com.google.android.maps.xml / system/etc/permissions$ adb push com.google.android.maps.jar / system/framework
d. Next, we'll make a new system image so that we don't have to reconfigure it every time we start AVD. download
Mkfs.yaffs2.x86 is then added to your device.
$adb push mkfs.yaffs2.x86 / data
e. Create a new system mirror
$adb shell chmod 755 / data/mkfs.yaffs2.x86 $adb shell / data/mkfs.yaffs2.x86 / system / data/system.img
f. Extract the new image:
$adb pull / data/system.img
This will take a while to get ready. Now is a good time to have two drinks.
g.。 Put the new image system.img in your AVD directory. Here ~ /. Android/avd/AVD_NAME.avd.
$cp system.img ~ / .android/avd/AVD_NAME.avd/
h. Start your AVD normally
6. Congratulations, you have a working Android simulator.
Thank you for reading! This is the end of this article on "how to configure an easy-to-use Android simulator". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.