是否有一个Android模拟器(不是默认仿真器),与iPhone类似吗?仿真器、模拟器、有一个、类似

2023-09-05 05:37:50 作者:捧着风的少女

我想这在技术上是可以模拟哪一个可以运行和测试的Andr​​oid code的环境。它是基于Java的毕竟。通常情况下,我没有我的设备和我,再加上,这是不是很实用建立针对所有的时间。此外,默认的模拟器是可笑缓慢,资源饿了,这使得它更不实用的选择。

我流淌在黑暗中。如果事情还处于早期发展阶段,或者如果有一个哈克的方式来编译针对桌面操作系统的Andr​​oid code,我会很高兴地知道,请给我一个线索,事件。必须有一个较快的方式来开发比使用默认模拟器。至少,苹果做到了。

注:没有的模拟和模拟之间的差异。我希望任何人谁决定后一个问题是意识到这一点。

我愿意给50赏金分的最佳答案。谢谢你。

解决方案

Android模拟器慢? 我有两个解决方案,为你..

优化和升级你的系统 找到一个垃圾电脑,安装Android的x86

优化和升级你的系统:

在安装最新的驱动程序和更新你的系统和OS 在安装最新的Java构建,Eclipse和ADT 的 在清理你的系统垃圾/临时文件(通常在Windows根驱动器)。像CCleaner的使用工具 确保你ATLEAST拥有2GB的RAM,1GB单独的模拟器。更改设置,同时创造一个仿真器,禁用硬件,您不使用像GPS,陀螺仪或什么的。 增加设备的RAM大小和高速缓存Partion大小

给予充足的时间ammount的仿真器准备就绪

tools.android.com/recent/emulatorsnapshots尝试模拟器快照,它工作正常,以及

10%-50%加速性能。

查找垃圾电脑,安装Android的x86

如果您拥有或买得起一台旧电脑,像奔腾4 1GHz以上给这个一杆。

打开了CPU盒,

在拉出不必要的硬件像调制解调器和附加卡 在清理一点点..去除灰尘和所有.. 在BIOS中禁用不需要的外设,如软驱,PCI,AGP,...等等。 设置在BIOS中,以便从CD启动

两个SATA或者PATA工作。

获取最新的稳定通用构建 从 android-x86.google code.com 下面是最新的稳定(在 的2.2发布)ISO时间, http://android-x86.google$c$c.com/files/android-x86-2.2-generic.iso

下载ISO并刻录到     光盘。请务必下载通用     ISO版本。此版本适用于大多数     的个人电脑。

现在,从启动该CD的PC和     安装Android。您也可以选择     安装过程中安装SD卡。     我建议设置它通俗易懂。 在应用启动到Android和安装程序设置

  +未知来源 - 选择
      + USB调试 - 选择
      +保持清醒 - 选择
      +允许模拟位置 - 选择
 

获取一个USB转USB A型公电缆,用于连接不同的PC两个USB接口。事情是这样的,   安卓模拟器是不是不能登录支付宝

Amazon.com USB电缆

将电缆连接到开发机, 在安装必要的驱动程序,你应该安装的SDK更新点到C谷歌USB驱动程序软件包:\机器人\谷歌-usb_driver。新的硬件名称的Andr​​oid手机将安装。

现在输入端子或命令提示符下键入以下, ADB设备

现在你可以看到连接到亚行您的设备。现在,当您运行/测试/调试此设备应用程序。

您也可以做到这一点VirtualBox的,但我不知道如何将其连接到亚洲开发银行。不过看我的博客文章生根粉安装它的VirtualBox

我的实验设置和放大器;结果:

  

开机时13秒]的(2011年8月31日 - 2.3.5测试在PC上,启动时间为不到8秒......惊人......)的时间对于   安装应用程序到设备几乎可以忽略

PC规格用于测试:

  

奔腾4 @ 2.90GHz超线程(HT)。 915G   芯片组 2GB内存 USB键盘和放大器; USB   鼠标所有的串口,PS2,并口   被禁用。

有关照片和更多信息,请看看我的博客文章在sree.cc ----

  

http://www.sree.cc/google/installing-android-in-pc-virtualbox

100%的加速性能。

http://$c$c.google.com/p/android-x86/downloads/list Android 4.0的已被释放。 CHK了。

I guess it is technically possible to simulate an environment on which one could run and test Android code. It is Java-based after all. Often, I don't have my device with me, plus, it is not very practical to build against all the time. Besides, the default emulator is ridiculously slow and resource hungry, which makes it an even less practical option.

I am flowing in the dark. Please give me a clue, event if something is in its early stages of development, or if there's a hacky approach to compile Android code against a desktop OS, i would be very happy to know. There must be a faster way to develop than using the default simulator. At least, Apple did it.

NOTE: There is a difference between emulation and simulation. I hope that anyone who decides to post a question is aware of that.

I am willing to give 50 bounty points for the best answer. Thanks.

解决方案

Android Emulator Slow? I got two solutions for you..

Optimize and upgrade your system Find a Junk PC, Install Android x86

Optimize and upgrade your system:

Install latest Drivers and Updates for your System and OS Install latest Builds of Java, Eclipse and ADT Cleanup Your system for Junk/Temp Files (Usually in Windows root drive). Use tools like Ccleaner Ensure you atleast have 2GB of RAM, 1GB for the Emulator alone. Change the settings while creating an emulator, Disable hardware that you don't use like GPS, Gyroscope or whatever. Increase the Device RAM Size and Cache Partion Size

Give ample ammount of time for the Emulator to be ready

tools.android.com/recent/emulatorsnapshots try Emulator Snapshots, it works fine as well.

10-50% Boost of performance.

Find a Junk PC, Install Android x86

If you have or can afford an old PC, something like Pentium 4 1GHz or more give this a shot.

Open Up the CPU Box,

Pull out unnecessary hardware like modems and add-in cards Clean it up a little bit.. Remove the Dust and all.. Disable unwanted peripherals like Floppy, PCI, AGP,....etc in the BIOS. Setup in BIOS so as to boot from CD

Both SATA or PATA Work Well.

Get the Latest Stable Generic Build from android-x86.googlecode.com Here is the Latest Stable(At the time of posting) ISO of 2.2, http://android-x86.googlecode.com/files/android-x86-2.2-generic.iso

Download this ISO and Burn it to a CD. Be sure to download the Generic iso build. This build works for most of the PCs.

Now boot the PC from this CD and install Android. Optionally You can setup an SD card during the install. I recommend setting it up straightaway. Boot in to android and Setup the settings within Application

      + Unknown Sources - Selected
      + USB Debugging - Selected
      + Stay awake - Selected
      + Allow mock locations - Selected

Get a USB to USB type A Male Cable, Used to connect two USB ports in different PCs. Something like this,

Amazon.com usb cable

Connect the Cable to the Developer Machine, Install Necessary Driver, You Should Install Google USB driver Package from SDK update Point to C:\android\google-usb_driver. A new Hardware name Android Phone will be installed.

Now type the following in terminal or command-prompt, adb devices

Now you can see your device connected to the adb. Now when you run/test/debug your application in this device.

You can also do this Virtualbox but I'm not sure about how to connect it to the adb. However look at my blog post abt installing it to virtualbox

My Experiment Setup & Result:

Boot-up-Time 13 Secs (Aug 31, 2011 - 2.3.5 Tested on PC, Boot up time is just under 8 Seconds.. Amazing...)Time for installing an app into device Almost negligible

PC Specs Used For testing:

Pentium 4 @ 2.90GHz With HT. 915G Chipset 2GB RAM USB Keyboard & USB Mouse All Serial, PS2, Parallel ports were disabled.

For Photos and more please take a look at my Blog post at sree.cc ----

http://www.sree.cc/google/installing-android-in-pc-virtualbox

100% Boost of performance.

http://code.google.com/p/android-x86/downloads/list Android 4.0 had been released. Chk out.

 
精彩推荐
图片推荐