English 中文(简体)
Android emulator alternative
原标题:

I m completely new to Android development, but I just got a HTC Hero and would like to develop a few applications for it. However, I ve use a laptop as my dev machine and the emulator is extremely slow. It took around 10-15 mins to boot up and although I could leave it on, it generally slows down the system when using other applications (like a web browser/Eclipse IDE etc..) What is the best way to develop for an Android phone? I could simply plug in the HTC and constantly load the new APK, but that just seems too long a process to test minor changes. Are there any other methods available for debugging applications, or will I have to brave the emulator until I can get a new system? Thanks

最佳回答

Using your HERO is the way to go. The loading of the APK and running the program after each change should only take a matter of a few seconds. If you do not have any emulators running and the HERO is plugged in (with the Android SDK USB driver installed) then Eclipse will automatically select the HERO as the target machine.

问题回答

You can indeed just load the app onto the phone and test that way; it s what I do quite often.

Hitting Ctrl+Shift+F11 in Eclipse will automatically compile the app, upload the APK to the running device it finds (whether emulator or phone), and then starts the app.

This takes about seven seconds with my HTC Hero and dev machine (which is admittedly quite fast, but as Eclipse is usually compiling away in the background anyway, most of the time taken is for installation on the phone).

I don t know much about android-specific development, but are you writing and using tests? If you are you can test a lot of logic without loading up the emulator, as long as you have proper setup methods to simulate the environment.

The emulator or device would then be used to just verify GUI adjustments or device-specific functionality. If that s what you are mostly testing right now, then no, I don t believe there is any other solution.

use the virtual box for a change,download the android iso file from google and if that does nt work well try this one http://www.genymotion.com/features/





相关问题
What to look for in performance analyzer in VS 2008

What to look for in performance analyzer in VS 2008 I am using VS Team system and got the performance wizard and reports going. What benchmarks/process do I use? There is a lot of stuff in the ...

SQL Table Size And Query Performance

We have a number of items coming in from a web service; each item containing an unknown number of properties. We are storing them in a database with the following Schema. Items - ItemID - ...

How to speed up Visual Studio 2008? Add more resources?

I m using Visual Studio 2008 (with the latest service pack) I also have ReSharper 4.5 installed. ReSharper Code analysis/ scan is turned off. OS: Windows 7 Enterprise Edition It takes me a long time ...

Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

热门标签