Issues need to be tackled while developing J2ME applications
While developing an application in J2ME, the programmers need to take care of lot of things (rather I would say limitations) and should tackle it down. Normal Java applications may enjoy the richness of memory, processor speed and things like that (may also get a lot of support from the native environment also).
But J2ME doesn’t offer us such a fruit. I have listed some of the design areas where we need to focus while developing J2ME applications:
Memory
Instead of memory its better to say “lack of memory”. The J2ME is a lighter version of Java which is targeting devices with minimal amount of volatile & non-volatile memory. So the point is clear, right?
But these days, even memory is not a constraint. B’ coz almost all devices comes with extendable memory. But still should be an area of concern.
No Multi-Window Support
There is no multi-window support in J2ME. So the application UI should be designed properly so that the user should be able to navigate it properly (without much effort to understand the UI).
No File System Support
J2ME does have file system support (JSR 75). But most of the devices still doesn’t support JSR 75. What the programmer can do is, use the RMS (Record Management System) feature.
Device Dependency
J2ME applications are too much device dependent. Then you may be thinking about the promise (”write once, run anywhere”) made by Sun, right? To some extend, yes it do keep its promise. But once you start running the same application in different devices, you will come to know how much effort the application developer need to do to make it working properly in all devices.
So, what developers can do is to write the code in such a way to minimize the amount of porting needed. One way I can suggest is to have a clear separation of general purpose and device dependent code segments.
Filed under: Articles, Mobility (J2ME & more), Tips
Hi,
After reading this article Iam confused to some extend. First of all Iam unable to get the context of multi window. Moreover about the File system support, I believe J2ME has file connection APIs.I think JSR75 explians about this.J2ME supports File system along with the RMS record store.
Regards,
Me
Wow! So you kept your promise.
So here goes my thoughts:
1. Multi-window concept is nothing but the use of multiple windows in an application just like what we do with Java Swing, SWT etc. What I was trying to say, there should be a proper UI design for a J2ME application to make it more usable to the user.
2. Yup, J2ME has its file connection APIs. Now there is a PDAP (PDA Profile) which does it for us. But I am not sure about which all handsets support that. Its JSR 75. There is two sepecification requests in JSR 75. PIM & File Connection.
And RMS is not a file system. RMS can be considered as a record management system which can be a much scaled down version of a DBMS.
Thanks & Regards,
Subin