tags:

views:

3431

answers:

5

What are the differences developers should be aware of?

+2  A: 

I'd say the main thing is that there are several "real devices" currently using Android, and there will be more, with different hardware endowments -- some will have GPS and some won't, ditto for touchscreen, real keyboard as opposed to virtual on-screen one, camera resolution, etc, etc.

While the OS will do a lot of the heavy lifting for you, you still want to make sure your design a user experience that makes sense on every Android device you intend to support, despite the variation in their HW features -- in this sense, designing applications for Android is more similar to designing them for, say, Linux, Windows, or the Web (cater for a wide variety of hardware-configuration details), rather than e.g. Macs or iPhone (where you need to consider a much narrower set of possible HW configurations).

The emulator is (or tries to be;-) "one" Android device -- but there will be others ("real" ones;-) with different screen resolutions, input peripheral devices, etc, etc...

Alex Martelli
+7  A: 

I am aware of these limitations:

  1. Pre-installed software. Real device can have preinstalled a lot more applications than emulator.
  2. You cannot use "capture" photo/video functions in emulator.

According to emulator documentation, its limitations are:

  • No support for placing or receiving actual phone calls, but you can simulate phone calls (placed and received) through the emulator console.
  • No support for USB connections
  • No support for camera/video capture (input).
  • No support for device-attached headphones
  • No support for determining connected state
  • No support for determining battery charge level and AC charging state
  • No support for determining SD card insert/eject
  • No support for Bluetooth

IMO you can use emulator to simplify UI development, to view UI on "device screen", to be sure that app layout is ok, app can be run, you can test some special cases by simulating gps position, network speed or messaging etc. But testing on real device is a must.

Jiri
Additionally, the emulator images cannot be tied to your Google account, so you can't test anything related to that (GMail, your real contacts, market, calendar, etc).
Henning
Do you have any idea why this limitation is enforced?
Jiri
It's a licensing issue. The emulator is based on the open source build of Android, but the proprietary Google apps need agreements with the handset vendor or mobile operator.
mparaz
So, if you want to install android on some new bizarre device, you cant have Google apps there either, am i right?
Jiri
the map heap size per app is limited to 16/24/48MB on a real device depending on the device. The emulator usually is limited to 16MB per app just like on of the older devices like G1. This parameter you cannot set when creating an avd, but you can pass it as parameter when launching the emulator, i.e.: -prop dalvik.vm.heapsize=24m This way you can also simulate the correct 'heap per app' size correctly for your device.
Mathias Lin
+4  A: 

With the 1.5 SDK the following limitations exists (from the SDK website):

  • No support for placing or receiving actual phone calls. You can simulate phone calls (placed and received) through the emulator console, however.
  • No support for USB connections
  • No support for camera/video capture (input).
  • No support for device-attached headphones
  • No support for determining connected state
  • No support for determining battery charge level and AC charging state
  • No support for determining SD card insert/eject
  • No support for Bluetooth

Based on experience I've noticed the following differences in actual developemnt:

  • There are bugs you'll be able to ignore in the emulator that will crash the device (not closing Cursors for example)
  • You interact with the device differently than the emulator. I use landscape mode a lot more with the
    real device than I do with the
    emulator.
  • There's a different CPU. Things that are fast on your emulator will be slower on the real device.
  • You can dogfood with the device. It is harder to dogfood with the
    emulator.

There is a google group here if you need real device testers.

Will
+2  A: 

One cannot test touch events with emulator which has to be tested only by means of mouse clicks on emulator which any developer going to develop an application based on touch screens should be aware of.

Ambika