Get your CodeRanch badge!*
The moose likes Android and the fly likes Why Android language instead of Java ME? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Why Android language instead of Java ME?" Watch "Why Android language instead of Java ME?" New topic
Author

Why Android language instead of Java ME?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Hi,

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


SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
Robert Heath
Ranch Hand

Joined: Aug 11, 2010
Posts: 94

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

Joined: Apr 07, 2011
Posts: 5
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

Joined: Feb 26, 2005
Posts: 2046
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

Joined: Jan 10, 2002
Posts: 60059
    
  65

I wonder who Java is using as a lawyer. Erlang perhaps? Or Pascal?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2046
Oracle is relying on the Benjamins Law Firm.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Android language instead of Java ME?
 
Similar Threads
Android Development - Android vs. Java ME
Retrieve values for a complicate XML file (Java)
Will Android gets popular?
Hello Android questions
Generating a video from images with animation