File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Where to learn Java Mobile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Where to learn Java Mobile" Watch "Where to learn Java Mobile" New topic
Author

Where to learn Java Mobile

Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Hey all,

Here I am again, asking for tutorials

I really want to learn Java Mobile from the very beginning to the advanced level just as I did in Java. I was seeking for J2ME, but I gave it up because I heard it is outdated (I believed it, because j2EE replaced with jee). So, I am seeking for the latest educational resource where I can learn Java Mobile from the very beginning to the advanced level, step by step. It doesn't matter whether it is a link/Book or EBOOK. Please help me....


Are you better than me? Then please show me my mistakes..
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
The "j2" in J2ME is just a code word because it was in fashion when Java split into 3 directions: SE, ME, EE in Java version 1.2-1.3. Java ME has been sorely neglected, so you'll still find some of the good info material on the core API libraries from the days when Java ME was called J2ME. (The current standard is MIDP 2.1 with MSA 1.1) (MIDP 2.1 is the same API as MIDP 2.0 so use 2.0 for programming references -- 2.1 is mainly there to enforce the MSA requirements and provides some under-the-hood maintenance so that cell phone makers can speed things up).

So do you already know how to program in Java SE? That's going to make things easier because many online resources assume you already have some Java programming knowledge. Java ME is basically a scaled down version of Java SE 1.0-1.1. The first place to go so you get use to Java ME's limitations are the core libraries in MIDP 2.0 and CDLC 1.1(The CDLC reference wouldn't need extra study, since the MIDP API includes the CDLC reference, except the separate CDLC API includes the new "WeakReference" addition not found in the MIDP 2.0 API document) these will be your first stop (Either link works but takes you to slightly different pages):

Java Mobile APIs
Documentation for Application Developers

Java ME is extended through what is called "MSA" Mobile Service Architecture - JSR 248 (be sure to download the latest version it has PDFs with useful, important technical specs on the core API and optional packages).

When I started learning Java ME I saw a book in the Java Ranch Library called: "Kicking Butt with MIDP and MSA: Creating Great Mobile Applications (Java Series)" by Jonathan Knudsen.

I got that book. It explains some things on how to program with MSA. I go back to it every so often for reference. It's good but it's old and I can't access the book's pre-typed website resources which means more typing if you want to try the book's examples.

You'll also want to check out the developers websites of the major mobile brands for device specific info and APIs. Sites like: Nokia Developer, Sony-Ericsson's Developer World, and BlackBerry Developer.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Thanks a lot for the info Walter. I really appreciate it. But, all the above links took me into api references. I am seeking for learners guide, you know, step by step one. Please help
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4528
    
    5

http://today.java.net/pub/a/today/2005/02/09/j2me1.html
http://developers.sun.com/mobility/getstart/
http://developers.sun.com/mobility/midp/articles/wtoolkit/
http://www.oracle.com/technetwork/java/tutorial2-138827.html


luck, db
There are no new questions, but there may be new answers.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Thanks a lot for the reply Darryl, I really appreciate it I am going to have a look at those
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Walter Gabrielsen Iii wrote:

When I started learning Java ME I saw a book in the Java Ranch Library called: "Kicking Butt with MIDP and MSA: Creating Great Mobile Applications (Java Series)" by Jonathan Knudsen.

I got that book. It explains some things on how to program with MSA. I go back to it every so often for reference. It's good but it's old and I can't access the book's pre-typed website resources which means more typing if you want to try the book's examples.


Are you sure that this book is useless? It seems like it is written in 2008. What did you mean by "more typing" ? You mean the given technology is old and in order to run it you need lot of extra coding? I am interested about this book.. If the book more than 70% useful in modern day, I can go with it and seek help in forum if I face any coding issues (However, I have seen "Need J2ME Developers" in job sites. So I guess J2ME is not completely dead).
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
I don't mean that the book is useless. I like the book. It has some of the best introductions to all of the areas of the MSA expansion pack. And since Java ME hasn't gone beyond MSA the book is still the cutting-edge technology today (JTWI was the previous expansion pack for Java ME), actually all this time has made the book more compatible with many phones, even those phones that are more than a few years old, because some smaller cell phone brands have had time to catch up to it.

However, the book came with a website that is not there anymore. The website had erratas for the book. From the website you could also get all of the code pre-written.

This pre-written stuff comes in useful for the 3D section of the book because there is like 3 pages of solid code for at least one of the examples, and some of it is in error, and at least somewhere in the book you were suppose to download a file from the website to use in one of the examples. So now you have to improvise with your own creation or avoid trying the example (you can still read the section to learn about the reasoning behind the task).

Otherwise it has many chapters worth of explanations on all of the useful areas of Java ME and MSA and I still recommend it highly.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

Perfect.. I will get this book very very soon, already placed an order in a local store. Do you have any recommendation about advanced learning resources which I can use AFTER THE BOOK study is done? How did you study more, after you have done with the book? I am gathering all the resources now because then I got nothing to worry. That's why
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

However, it seems like this book is somewhat useless. It has very few number of examples right? Most of the time it is talking about "you can use this method, that method" without any examples. Isn't it?
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Yes, Most guides skip examples on the core API of Java ME. Java ME is very, very tiny, organized, and easy to browse compared to Java SE.

These Java ME guides assume you've already been overly prepared for anything inside of the Java ME API by any, even the most basic, Java SE guides and tutorials that you've come across.

This book focuses on the MSA's optional packages. There are going to be several packages, classes, and interfaces in each optional package so you need to know what to focus on and what to ignore, and yes usually it really is just one or two methods and/or classes.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
After the book you just need to test your programming skills, until you're happy, inside of an emulator: Netbeans, Java ME SDK, or one of the brand specific Java ME developers kits.

The only other place to go is to read the guides of major cell phone brands. These would be on the developers websites (not the main websites). Use a search engine for terms such as "nokia developer", sony-ericsson, and others to find these developer sites.
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
Actually there are some other places... I looked through my old Java ME bookmarks/favorite links list and here are some links in no particular order, and not checked for duplicate links with the person who posted links earlier in the thread:

Random Class -- a tip on how to use the Random class with really, very old phones using MIDP 1.0 (MIDP 1.0 didn't have a random number generator in java.lang.Math yet).

Book - Mobile Phone Programming using Java ME (J2ME) Just anoter book or something.

Java ME (J2ME) -- just another variation of the above book with chapter references?

Character Encoding Issues and the Mobile Web -- Something to do with character encoding and using your app around the world.

Focus on Java Mobility -- just an article on Java ME.

Java ME & Java Card Technology Documentation -- just Oracle's opening page for various types of Java ME (other than Java SE).

Java Platform Micro Edition Software Development Kit -- online help file from the Java SDK 3.0.

How can I reduce the memory footprint of my J2ME application -- one of the tips from the Java ME section of the "Java Tips" website.

Java Verified: Docs, FAQs and Other Info -- tells you how to get your MIDlets signed via submission to a testing company.

JBenchmark -- tests and scores java-enabled phones for performance.

The Lurker's Guide to Optimizing MIDP apps (2002-7-7) article about how to optimize your app.

M3G development tools -- this company makes tools to create 3D compatible things for Java ME.

[url=http://www.developer.nokia.com/Community/Wiki/MIDP's_User_Interface_Hierarchy:_Event_Handling]MIDP's User Interface Hierarchy: Event Handling[/url] article by Nokia developer.

Java API Specifications -- Nokia developer offers download links to some popular MSA APIs and some of Nokia's proprietary APIs.

Mobility Technical Articles-- Oracle's saved articles by Sun Microsystems from Java ME's earlier days.


More stuff from Sun Microsystems saved by Oracle:
Sun Mobile Device Technology - Reference
The Java ME GUI APIs at a Glance (Ignore MIDP 3.0, Oracle dropped it.)
Understanding J2ME Application Models
What are the defined J2ME system property names?
Whitepaper: Sprint /Sun Recommended Deployment Process for Java ME Technology-based Applications


Even more stuff:
J2ME Tutorial, Part 1: Creating MIDlets
Java Connected Limited Device Configuration -- an early look at CDLC the (non-graphical, graphics being MIDP) underpinning of Java ME.
Is MIDP a layer on top of CLDC -- explains the parts of Java ME.
Learning Path: MIDlet Life Cycle
-- a 2D/SVG package for Java ME/SE. (Another? Java ME+MSA already has SVG support.)
Using wait(), notify() and notifyAll() -- okay, not a Java ME tutorial, but these three methods, plus the Thread, Timer, TimerTask, and Runnable objects/interfaces, plus keywords synchronized (methods and blocks) and volatile are about all you get as far as multi-threading in Java ME.
Yohan Weerasinghe
Ranch Hand

Joined: Oct 07, 2010
Posts: 499

wow. that was awesome.thanks a lot for the reply. i really apreciate it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to learn Java Mobile