Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why Android language instead of Java ME?

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Why do people talk so much nowadays about Android and almost nothing about Java ME?

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because that's where the innovation is, and what the new "exciting" smartphones have. JME has stagnated for years, with BlackBerry being the only manufacturer left that notably improves its JME devices. Now Symbian has been sunset as well, sharply reducing the number of JME devices that will be shipped in the future. IMO, JME has not much of a future, certainly none that a commercial developer would get excited about.
 
Robert Heath
Ranch Hand
Posts: 94
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java was created to write platform independent applications. With all of these new phone platforms, platform independence would seem to be important to the developer. Is there a JVM for the Android?
 
Michael Hari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep, its called Dalvik. So when you build your application (or .apk) what's actually happening is your Java code gets transformed to Java class files (Java's bytecode) and then another utility called dx in the Android SDK will transform the Java class files to .dex files which are packed into a .apk (*.class -> .jar, *.dex -> .apk). And those .dex files with Google's own bytecode run on the Dalvik VM.

http://developer.android.com/guide/basics/what-is-android.html
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Hari wrote:Yep, its called Dalvik. So when you build your application (or .apk) what's actually happening is your Java code gets transformed to Java class files (Java's bytecode) and then another utility called dx in the Android SDK will transform the Java class files to .dex files which are packed into a .apk (*.class -> .jar, *.dex -> .apk). And those .dex files with Google's own bytecode run on the Dalvik VM.

http://developer.android.com/guide/basics/what-is-android.html


...and thats why Java is suing Google.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder who Java is using as a lawyer. Erlang perhaps? Or Pascal?
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oracle is relying on the Benjamins Law Firm.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18161
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going back to the original question, JME was designed to allow Java to run in limited-resource environments. These days, "limited" tends to mean things like 2GB RAM and a 500Mhz CPU, and I've got production servers that don't have that much power. JME also was broken into several different profiles, the better to support different levels of hardware limitations, but in the process doing some serious damage to the "Write Once/Run Anywhere" concept - far more than even the confusing array of confections that Android currently offers.

Another advantage - to me, anyway - of Android is that it's designed to make the apps interact to form a unified whole so that for, example, the "search" button can look in a multitude of places such as address books, application databases, and other such repositories without compromising application security or requiring detailed internal knowledge of all the apps and/or their datastores. This was one of the things I really likes about the Palm and hated losing when I got a WinCE phone.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic