Machine Learning Authors: Elizabeth White, William Schmarzo, Jnan Dash, Pat Romanski, 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.


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
Enterprises are adopting Kubernetes to accelerate the development and the delivery of cloud-native applications. However, sharing a Kubernetes cluster between members of the same team can be challenging. And, sharing clusters across multiple teams is even harder. Kubernetes offers several constructs to help implement segmentation and isolation. However, these primitives can be complex to understand and apply. As a result, it’s becoming common for enterprises to end up with several clusters. Thi...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
"ZeroStack is a startup in Silicon Valley. We're solving a very interesting problem around bringing public cloud convenience with private cloud control for enterprises and mid-size companies," explained Kamesh Pemmaraju, VP of Product Management at ZeroStack, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Infoblox does DNS, DHCP and IP address management for not only enterprise networks but cloud networks as well. Customers are looking for a single platform that can extend not only in their private enterprise environment but private cloud, public cloud, tracking all the IP space and everything that is going on in that environment," explained Steve Salo, Principal Systems Engineer at Infoblox, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventio...
"Codigm is based on the cloud and we are here to explore marketing opportunities in America. Our mission is to make an ecosystem of the SW environment that anyone can understand, learn, teach, and develop the SW on the cloud," explained Sung Tae Ryu, CEO of Codigm, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
The question before companies today is not whether to become intelligent, it’s a question of how and how fast. The key is to adopt and deploy an intelligent application strategy while simultaneously preparing to scale that intelligence. In her session at 21st Cloud Expo, Sangeeta Chakraborty, Chief Customer Officer at Ayasdi, provided a tactical framework to become a truly intelligent enterprise, including how to identify the right applications for AI, how to build a Center of Excellence to oper...
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
Large industrial manufacturing organizations are adopting the agile principles of cloud software companies. The industrial manufacturing development process has not scaled over time. Now that design CAD teams are geographically distributed, centralizing their work is key. With large multi-gigabyte projects, outdated tools have stifled industrial team agility, time-to-market milestones, and impacted P&L stakeholders.
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, discussed how by using ne...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
In his session at 21st Cloud Expo, James Henry, Co-CEO/CTO of Calgary Scientific Inc., introduced you to the challenges, solutions and benefits of training AI systems to solve visual problems with an emphasis on improving AIs with continuous training in the field. He explored applications in several industries and discussed technologies that allow the deployment of advanced visualization solutions to the cloud.
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Agile has finally jumped the technology shark, expanding outside the software world. Enterprises are now increasingly adopting Agile practices across their organizations in order to successfully navigate the disruptive waters that threaten to drown them. In our quest for establishing change as a core competency in our organizations, this business-centric notion of Agile is an essential component of Agile Digital Transformation. In the years since the publication of the Agile Manifesto, the conn...
Vulnerability management is vital for large companies that need to secure containers across thousands of hosts, but many struggle to understand how exposed they are when they discover a new high security vulnerability. In his session at 21st Cloud Expo, John Morello, CTO of Twistlock, addressed this pressing concern by introducing the concept of the “Vulnerability Risk Tree API,” which brings all the data together in a simple REST endpoint, allowing companies to easily grasp the severity of the ...
While some developers care passionately about how data centers and clouds are architected, for most, it is only the end result that matters. To the majority of companies, technology exists to solve a business problem, and only delivers value when it is solving that problem. 2017 brings the mainstream adoption of containers for production workloads. In his session at 21st Cloud Expo, Ben McCormack, VP of Operations at Evernote, discussed how data centers of the future will be managed, how the p...
"NetApp is known as a data management leader but we do a lot more than just data management on-prem with the data centers of our customers. We're also big in the hybrid cloud," explained Wes Talbert, Principal Architect at NetApp, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
"We're focused on how to get some of the attributes that you would expect from an Amazon, Azure, Google, and doing that on-prem. We believe today that you can actually get those types of things done with certain architectures available in the market today," explained Steve Conner, VP of Sales at Cloudistics, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.