Is Deploying A Mono Android App to Emulator Always Slow?
I am building a simple mono android project and deploying to the emulator. Every time I try to run my program it takes at least 30 seconds to a minute to deploy and start the app in the emulator. Further, simple things like single stepping and inspecting variables take several seconds. Is this normal?
Also:
- Is it much faster deploying to an actual android device开发者_如何学Python?
- Is it much faster using java instead of c#/mono android?
- If no, how does one efficiently program on the droid with such slow iterations?
My computer is no powerhouse but it isn't crap either: core 2 duo 2.6ghz, 4gb ram.
I faced with same problem too. But you can solved it in two ways (at least both these ways helped me):
- Use MonoDroid on Mac. It deploys to emulator much faster.
- Run your application in emulator with same Android version. I tried few different configuration and this one the fastest (as for me): application with android 2.1 and emulator with android version 2.1.1. For me it works pretty fast.
Is it much faster using java instead of c#/mono android?
I tried java and yes, it deploys (not works) faster.
1) It is faster and more effective to test your program on an android device.
2) It isn't critical.
My hardware is like yours, I develop in Java, and have a wait time similar to yours.
I'm developing android applictions using monodroid and deploy takes ~10s.
Just deploy without close emulator.
I was closing it all times and it take 30sec-1min to deploy.
I did next and it helps a Little in speed: MonoForAndroid 4.1 API level 16
- Add to hardware 'accelerometer'
- And set Device size Ram to 512 instead of 1024 (Will not start with accelerometer and ram 1024)
Emulator began work faster, not enough but it is better than nothing
The same issue is without Mono too.
You can run emulator with parameters:
emulator @my_avd -no-boot-anim -qemu -icount auto
where @my_avd
-- launch a virtual device named 'my_avd'
The full answer by @Timothy003 is here: Why is the Android emulator so slow? How can we speed up the Android emulator?
Works fine for me, deploying is much faster.
精彩评论