Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: What is the correct form of a MIDlet suite version number?

One character can be the difference between a successful installation and a failed attempt. Check your knowledge of MIDlet versioning.

Tutorial Details:

Question
What is the correct form of a MIDlet suite version number?

Answer
In testing a MIDlet suite recently some inexplicable errors occurred. Sometimes the MIDlet suite would install and run successfully, sometimes it would fail to install. The only clear pattern was that failures were more likely on more recent devices. The failures were not specific to one manufacturer or to one version of the profile, MIDP 1.0 or MIDP 2.0.

After some review, conjecture, and further testing the failure was traced to the value of the MIDlet-Version attribute. When the original value ".8" was changed to "0.8", the suite installed and ran fine on all devices tested.

This experience led to a more detailed investigation into the question: What is a valid version number? The MIDP 1.0 specification (on page 45) and MIDP 2.0 (on page 434) provide the same definition of version number. To quote from the MIDP 2.0 document:


Version numbers have the format Major.Minor[.Micro] (X.X[.X]), where the Micro portion MAY be omitted. (If the .Micro portion is not omitted then it defaults to zero.) In addition, each portion of the version number is allowed a maximum of two decimal digits (i.e. 0-99).

What's missing is an explicit statement of the minimum length of each portion. The note in parentheses "(i.e. 0-99)," is used to support the statement of maximum length.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
What is the correct form of a MIDlet suite version number?

View Tutorial:
What is the correct form of a MIDlet suite version number?

Related Tutorials:

Which Java VM scales best? - JavaWorld - August 1998
Which Java VM scales best? - JavaWorld - August 1998
 
Validation with Java and XML schema, Part 1 - JavaWorld September 2000
Validation with Java and XML schema, Part 1 - JavaWorld September 2000
 
Build your own languages with JavaCC - JavaWorld December 2000
Build your own languages with JavaCC - JavaWorld December 2000
 
Device programming with MIDP, Part 1 - JavaWorld January 2001
Device programming with MIDP, Part 1 - JavaWorld January 2001
 
J2ME: The next major games platform? - JavaWorld March 2001
J2ME: The next major games platform? - JavaWorld March 2001
 
Device programming with MIDP, Part 3 - JavaWorld July 2001
Device programming with MIDP, Part 3 - JavaWorld July 2001
 
Build database-powered mobile applications on the Java platform
Build database-powered mobile applications on the Java platform
 
J2ME devices: Real-world performance
J2ME devices: Real-world performance
 
Enhance your J2EE presentation layer
Enhance your J2EE presentation layer
 
Picture this
Picture this
 
Java tools reign supreme - JavaWorld celebrates the leading Java tools
Java tools reign supreme - JavaWorld celebrates the leading Java tools
 
Profiling the profilers
Profiling the profilers
 
Java and GIS, Part 2: Mobile LBS
Java and GIS, Mobile LBS Using LBS First, let\'s make sure that we understand what an LBS application is. Typically, an LBS application is trying to answer the question \"Where am I?\" and then do something with that information. There are a number
 
KCC v1.3
KCC v1.3 What is Koalog Code CoverageTM? Koalog Code CoverageTM is a code coverage computation application written in the JavaTMprogramming language. Koalog Code CoverageTM allows you to measure the efficiency of your tests suite, but also to discover
 
Software Download Central compatible.
GNU getopt - Java port A while back I found myself in need of a Java command line option parser. Unsatisfied with free versions I was able to find on the net, I volunteered to port the GNU getopt family of functions from C to Java. The current release
 
Understanding MIDP System Threads
Describes the multi-threaded aspects of the J2ME application environment. Understanding the interactions between systems threads, user-interface and application threads will help in avoiding MIDlet deadlock.
 
What is the correct form of a MIDlet suite version number?
One character can be the difference between a successful installation and a failed attempt. Check your knowledge of MIDlet versioning.
 
Oracle answers on Linux
The world's business software giant offers answers to the 10 most frequently asked questions about Linux.
 
developing a Session Bean and a Servlet and deploy the web application on JBoss 3.0
developing a Session Bean and a Servlet and deploy the web application on JBoss 3.0 Writing Calculator Session Bean and Calling through JSP Previous Tutorial Index Next In this lesson I will show you how to develop a Calculator Stateless Session
 
Updated Hardware Certification Test Suite Available for Download
Version 2.4 of the HCTS is now available. Use it to certify your hardware on the Solaris 9 Operating System (and updates) and the Solaris 10 OS, 32-bit and 64-bit environments.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.