Android

From otaking wiki

(Difference between revisions)
Revision as of 23:26, 20 June 2009
Putte (Talk | contribs)
Performance section
← Previous diff
Revision as of 23:28, 20 June 2009
Putte (Talk | contribs)

Next diff →
Line 3: Line 3:
Applications are written in Java, but compiled to another form of bytecode (optimized for memory efficiency), running in the Dalvik virtual machine. The GUI portions of the runtime happily have nothing in common with [[Swing]] or Java ME. Applications are written in Java, but compiled to another form of bytecode (optimized for memory efficiency), running in the Dalvik virtual machine. The GUI portions of the runtime happily have nothing in common with [[Swing]] or Java ME.
-<strike>It's gonna be awesome.</strike>Its degree of awesomeness remains to be determined.+<strike>It's gonna be awesome.</strike> Its degree of awesomeness remains to be determined.
== Links == == Links ==
Line 34: Line 34:
== Performance == == Performance ==
-A fairly thourough [http://arstechnica.com/open-source/reviews/2009/02/an-introduction-to-google-android-for-developers.ars article at Ars Technica] very diplomatically states that "some preliminary experiments by various developers indicate that Dalvik isn't necessarily faster than other comparable technologies" and that "there are still unanswered questions about the performance advantages of Dalvik's design".+A fairly thorough [http://arstechnica.com/open-source/reviews/2009/02/an-introduction-to-google-android-for-developers.ars article at Ars Technica] very diplomatically states that "some preliminary experiments by various developers indicate that Dalvik isn't necessarily faster than other comparable technologies" and that "there are still unanswered questions about the performance advantages of Dalvik's design".
The simple benchmark in the article gives the following results on various phones, showing that the iPhone is 100 times as fast as the HTC Dream and a humble K800 is 4 times as fast. The simple benchmark in the article gives the following results on various phones, showing that the iPhone is 100 times as fast as the HTC Dream and a humble K800 is 4 times as fast.

Revision as of 23:28, 20 June 2009

Android is a software platform for mobile phones being developed by Google and the Open Handset Alliance.

Applications are written in Java, but compiled to another form of bytecode (optimized for memory efficiency), running in the Dalvik virtual machine. The GUI portions of the runtime happily have nothing in common with Swing or Java ME.

It's gonna be awesome. Its degree of awesomeness remains to be determined.

Contents

Links

The platform

  • Linux kernel
  • All applications are run as separate users.
  • Applications are written i Java and run in the Dalvik VM.
  • Applications are very modular.
    • Every screen is an Activity.
    • Move between screens by sending an Intent to the system.
    • The system displays an Activity which fulfills the contract for the Intent.
  • No Java ME support, but there is a third-party solution.
  • Plays Ogg Vorbis!

Dalvik

  • Dalvik executable files (DEX files) can be mmap:ed and used directly, unlike JAR files.
  • Slightly more compact (uncompressed) than compressed JAR files.
  • No JIT or AOT compilation, but they are investigating JIT for a future release.

Devices

Performance

A fairly thorough article at Ars Technica very diplomatically states that "some preliminary experiments by various developers indicate that Dalvik isn't necessarily faster than other comparable technologies" and that "there are still unanswered questions about the performance advantages of Dalvik's design".

The simple benchmark in the article gives the following results on various phones, showing that the iPhone is 100 times as fast as the HTC Dream and a humble K800 is 4 times as fast.

Phone Result
HTC Dream 922 ms
iPhone 9.5 ms
Sony Ericsson K800 250 ms