Welcome!

Machine Learning Authors: Pat Romanski, Elizabeth White, Yeshim Deniz, Corey Roth, Liz McMillan

Related Topics: Mobile IoT

Mobile IoT: Article

Wireless Java: Developing with Java 2, Micro Edition

Wireless Java: Developing with Java 2, Micro Edition

Jonathan Knudsen is a Java veteran who has given us such diverse titles as Java Cryptography, Java 2D Graphics, and The Unofficial Guide to LEGO MINDSTORMS Robots. His latest offering is Wireless Java: Developing with Java 2, Micro Edition (Apress, 2001, ISBN 1-893115-50-X).

As readers of Wirelesss Business & Technology know, the Java 2 Micro Edition is big, (pardon the expression). It was a major focus of the latest JavaOne conference, and take a look sometime at the number of subscribers to the KVM Interest list, as compared to some of the others. There are over 2,300 subscribers, making its popularity near that of Enterprise JavaBeans, and JavaServer Pages. Given that J2ME is coming on strong, a title such as this is a welcome companion.

This book could properly be called a handbook, as opposed to being an exhaustive treatment of each of the subjects. The author acknowledges this in the preface when he mentions that he has not delved as deeply as possible into many of the subjects. It's a brief, 176 pages without the API reference, and is targeted at the developer who's already quite comfortable with Java.

This brevity is actually a help, I think. While it's true that each subject could be treated more completely, it's also true that there's added pressure on developers these days. He or she must learn new technologies at an ever-quickening pace. Project life cycles have definitely accelerated in the past few years, so it's helpful to have a book that distills only the essential information. The rate of change is such that you need sources other than books to stay current (monitoring the KVM-Interest list, for example).

We're just starting to see the titles on Micro Java beginning to flow, and that will certainly heat up in the months ahead. It's true that Addison-Wesley has had a title out for some time dealing with the Java 2 Micro Edition, but in my opinion, that book was published too early. The APIs were not at all settled and the MIDP was not even released in beta. The timing of the Apress book, therefore, strikes me as a little better.

If you've worked with standard Java, you should find the book helpful. MIDlet life cycles are covered, and then what is and isn't in the MIDP in terms of the API contents. Next there's coverage of the UI classes in the MIDP, and again it's brief but to the point. All of the GUI classes in the lcdui package are dealt with. Together with the downloadable examples, you should find everything you need to build an interface.

The samples in the book use the Sun Wireless Toolkit as the IDE of choice. Those of us who started out doing this on the command line were cheered by the release of this tool, and it seems a safe choice to go with in building your J2ME apps. Knudsen does mention some of the other tools that are available for J2ME coding.

The other two items of weight in the MIDP are storage and networking. The chapter on persistent storage I found to be too light. That is, the RecordStore class, and the associated interfaces are dealt with, but I found myself wanting a little more in the way of samples that show some real-world data being stored on the device. What about a game where I store player scores - high scores as well as user preferences?

The networking chapter provides helpful information on how to network enable your MIDP apps, including some hints about which methods in the HttpConnection classes are more efficient than others. In addition, using cookies for session tracking, and the datagram connection are also dealt with. I was surprised, however, that no mention is made that while the Motorola SDK supports datagrams, the J2ME Wireless Toolkit does so only when you set an (undocumented) environment variable.

There are also chapters on performance tuning, XML parsing, and programming a game interface. The first two are especially welcome if you intend to focus on suit-and-tie "business" programming. Developers have gotten used to giving little thought as to whether creating a particular object will cause undue overhead. These are habits that must be broken when coding for limited devices such as cell phones, and the chapter on performance tuning contains some solid principles to observe in order to get your application to be a svelte, agile piece of code. The chapter on game programming is actually one of the fuller treatments in the book, providing insights into handling gaming actions, and how to deal with the Canvas class. Everyone should try to write at least one game, and if you ever have, you know it can be an entirely different matter from what you're used to with other kinds of applications. Knudsen provides guidance on things such as double-buffering your images, animation, and multithreading for improved performance.

Finally, the chapter on protecting network data was prescient. If the day ever comes when cell phones are tools for corporate staff to not only call a sales prospect, but to also record interactions, place orders, adjust inventory and the like, then the security of the data and transmission must be assured. Drawing on his cryptographic experience, Knudsen gives some examples as to how this can be achieved today, dealing with both sides of the network connection.

As noted above, this is not an exhaustive treatment of any aspect of the Mobile Information Device Profile, but for the Java developer who has the language well in hand, the book is an excellent companion to getting up and running with J2ME.

Wireless Java: Developing with Java 2, Micro Edition

Author: Jonathan Knudsen
Format: Paperback, 226 pp.
ISBN: 1-89311550-X
Publisher: Apress L. P.

FROM THE BOOK...

Ch. 1   Introduction
Ch. 2   Building MIDlets
Ch. 3   All About MIDlets
Ch. 4   Almost the Same Old Stuff
Ch. 5   Creating a User Interface
Ch. 6   Lists and Forms
Ch. 7   Persistent Storage
Ch. 8   Connecting to the World
Ch. 9   Programming a Game Interface
. Ch. 10   Performance Tuning
Ch. 11   Parsing XML
Ch. 12   Protecting Network Data
App     MIDP API Reference

More Stories By Matthew Ferris

Matthew Ferris is Mid-West Editor of WBT.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@CloudExpo Stories
"Our strategy is to focus on the hyperscale providers - AWS, Azure, and Google. Over the last year we saw that a lot of developers need to learn how to do their job in the cloud and we see this DevOps movement that we are catering to with our content," stated Alessandro Fasan, Head of Global Sales at Cloud Academy, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
As organizations shift towards IT-as-a-service models, the need for managing and protecting data residing across physical, virtual, and now cloud environments grows with it. Commvault can ensure protection, access and E-Discovery of your data – whether in a private cloud, a Service Provider delivered public cloud, or a hybrid cloud environment – across the heterogeneous enterprise. In his general session at 18th Cloud Expo, Randy De Meno, Chief Technologist - Windows Products and Microsoft Part...
DXWorldEXPO LLC announced today that ICC-USA, a computer systems integrator and server manufacturing company focused on developing products and product appliances, will exhibit at the 22nd International CloudEXPO | DXWorldEXPO. DXWordEXPO New York 2018, colocated with CloudEXPO New York 2018 will be held November 11-13, 2018, in New York City. ICC is a computer systems integrator and server manufacturing company focused on developing products and product appliances to meet a wide range of ...
Andi Mann, Chief Technology Advocate at Splunk, is an accomplished digital business executive with extensive global expertise as a strategist, technologist, innovator, marketer, and communicator. For over 30 years across five continents, he has built success with Fortune 500 corporations, vendors, governments, and as a leading research analyst and consultant.
JETRO showcased Japan Digital Transformation Pavilion at SYS-CON's 21st International Cloud Expo® at the Santa Clara Convention Center in Santa Clara, CA. The Japan External Trade Organization (JETRO) is a non-profit organization that provides business support services to companies expanding to Japan. With the support of JETRO's dedicated staff, clients can incorporate their business; receive visa, immigration, and HR support; find dedicated office space; identify local government subsidies; get...
René Bostic is the Technical VP of the IBM Cloud Unit in North America. Enjoying her career with IBM during the modern millennial technological era, she is an expert in cloud computing, DevOps and emerging cloud technologies such as Blockchain. Her strengths and core competencies include a proven record of accomplishments in consensus building at all levels to assess, plan, and implement enterprise and cloud computing solutions. René is a member of the Society of Women Engineers (SWE) and a m...
In this presentation, you will learn first hand what works and what doesn't while architecting and deploying OpenStack. Some of the topics will include:- best practices for creating repeatable deployments of OpenStack- multi-site considerations- how to customize OpenStack to integrate with your existing systems and security best practices.
Explosive growth in connected devices. Enormous amounts of data for collection and analysis. Critical use of data for split-second decision making and actionable information. All three are factors in making the Internet of Things a reality. Yet, any one factor would have an IT organization pondering its infrastructure strategy. How should your organization enhance its IT framework to enable an Internet of Things implementation? In his session at @ThingsExpo, James Kirkland, Red Hat's Chief Archi...
Digital transformation has increased the pace of business creating a productivity divide between the technology haves and have nots. Managing financial information on spreadsheets and piecing together insight from numerous disconnected systems is no longer an option. Rapid market changes and aggressive competition are motivating business leaders to reevaluate legacy technology investments in search of modern technologies to achieve greater agility, reduced costs and organizational efficiencies. ...
"With Digital Experience Monitoring what used to be a simple visit to a web page has exploded into app on phones, data from social media feeds, competitive benchmarking - these are all components that are only available because of some type of digital asset," explained Leo Vasiliou, Director of Web Performance Engineering at Catchpoint Systems, in this SYS-CON.tv interview at DevOps Summit at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
It is ironic, but perhaps not unexpected, that many organizations who want the benefits of using an Agile approach to deliver software use a waterfall approach to adopting Agile practices: they form plans, they set milestones, and they measure progress by how many teams they have engaged. Old habits die hard, but like most waterfall software projects, most waterfall-style Agile adoption efforts fail to produce the results desired. The problem is that to get the results they want, they have to ch...
Organizations planning enterprise data center consolidation and modernization projects are faced with a challenging, costly reality. Requirements to deploy modern, cloud-native applications simultaneously with traditional client/server applications are almost impossible to achieve with hardware-centric enterprise infrastructure. Compute and network infrastructure are fast moving down a software-defined path, but storage has been a laggard. Until now.
Without a clear strategy for cost control and an architecture designed with cloud services in mind, costs and operational performance can quickly get out of control. To avoid multiple architectural redesigns requires extensive thought and planning. Boundary (now part of BMC) launched a new public-facing multi-tenant high resolution monitoring service on Amazon AWS two years ago, facing challenges and learning best practices in the early days of the new service.
HyperConvergence came to market with the objective of being simple, flexible and to help drive down operating expenses. It reduced the footprint by bundling the compute/storage/network into one box. This brought a new set of challenges as the HyperConverged vendors are very focused on their own proprietary building blocks. If you want to scale in a certain way, let's say you identified a need for more storage and want to add a device that is not sold by the HyperConverged vendor, forget about it...
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
The best way to leverage your CloudEXPO | DXWorldEXPO presence as a sponsor and exhibitor is to plan your news announcements around our events. The press covering CloudEXPO | DXWorldEXPO will have access to these releases and will amplify your news announcements. More than two dozen Cloud companies either set deals at our shows or have announced their mergers and acquisitions at CloudEXPO. Product announcements during our show provide your company with the most reach through our targeted audienc...
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world.
With 10 simultaneous tracks, keynotes, general sessions and targeted breakout classes, @CloudEXPO and DXWorldEXPO are two of the most important technology events of the year. Since its launch over eight years ago, @CloudEXPO and DXWorldEXPO have presented a rock star faculty as well as showcased hundreds of sponsors and exhibitors!
DXWorldEXPO LLC announced today that the upcoming DXWorldEXPO | CloudEXPO New York event will feature 10 companies from Poland to participate at the "Poland Digital Transformation Pavilion" on November 12-13, 2018.
Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more business becomes digital the more stakeholders are interested in this data including how it relates to business. Some of these people have never used a monitoring tool before. They have a question on their mind like “How is my application doing” but no id...