A friend responded the following: > Although Android Programs are written in Java, there is no Java VM on > Android Devices, they use the so called Dalvik VM. > > So when writing programs for Android devices, one needs the Android > SDK which contains a cross compiler that translates the > java code. As far as I know, because of that cross compiler, not all > java classes are supported (but there are also additional classes > that are specific for android devices). > > So the Java Version one needs to use for writing Android Apps, depends > on the Android SDK version one uses (and not the android version > itself). I think > its Java 1.6 one needs to use for the curren Android SDK version.
Maybe it helps? The simulators can be downloaded from developer.android.com/sdk/index.html paul Le 4 févr. 2011 à 17:19, Jörg Schaible a écrit : > > Thanks guys! > > David Karlsen wrote: > >> Got an user here which reports java.version returns "0" and >> java.specification.version returns "0.9" for all Andriod versions. >> >> ---------- Forwarded message ---------- >> From: Waltin Arve <arve.wal...@edb.com> >> Date: 2011/2/4 >> Subject: RE: [lang] Android users wanted :) >> To: David Karlsen <davidkarl...@gmail.com> >> >> >> For alle android versjoner: >> >> >> >> java.version returnerer ”0” >> >> java.specification.version returnerer ”0.9” >> >> >> >> >> >> Vennlig hilsen >> Arve Waltin, 99772552 >> 2C11 Development >> >> >> >> *From:* David Karlsen [mailto:davidkarl...@gmail.com] >> *Sent:* 27. januar 2011 11:52 >> *To:* Waltin Arve >> *Subject:* Fwd: [lang] Android users wanted :) >> >> >> >> Hei - jeg jobber i EDB og driver med hudson osv om du husker meg. >> Hadde du hatt anledning til å sjekke denne - så kan en oppdatert commons >> lang relases snart: >> >> >> Se https://issues.apache.org/jira/browse/LANG-624 + mail under. >> >> >> TIA >> >> ---------- Forwarded message ---------- >> From: *Jörg Schaible* <joerg.schai...@scalaris.com> >> Date: 2011/1/27 >> Subject: [lang] Android users wanted :) >> To: dev@commons.apache.org >> >> >> Guys, >> >> in the shed of LANG-624, can somebody tell us, what the different Android >> versions return for the java.version and java.specification.version? >> >> - Jörg >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org >> For additional commands, e-mail: dev-h...@commons.apache.org >> >> >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org