Welcome!

Mobile IoT Authors: Elizabeth White, Pat Romanski, Janakiram MSV, Shelly Palmer, Laureen Fagan

Related Topics: Mobile IoT

Mobile IoT: Article

Sinking Without a Trace

Sinking Without a Trace

Right now mention Java on mobile phones and most people think of something fun, with potential for the future. Games and puzzles are the order of the day, with the power and versatility of Java reduced to entertaining businesspeople on the train. But Java has much more to offer, and soon we're going to see it bursting out from its Sand Box to take on the world.

Java has had an impact on just about every area of computer technology, not the least, wireless. It's on mobile phone handsets where the original intention of Java has come closest to being realized. Mobile phones come in a wide range of types and styles, and the use of the MIDP (Mobile Information Device Profile) Java standard on millions of handsets has enabled unprecedented breadth of distribution for applications conforming to the standard. But while the ability to run basic applications on lots of phones is a good thing, it's only scratching the surface of what Java can do, and a new generation of phones is starting to see Java as much more than an environment for downloaded entertainment.

Java Caged
Java started on the PC and, in a story that is well told, found its niche embedded in Web sites and executed in browsers. Held within a Sand Box, Java applets (as these embedded programs are known) are limited as to what they can do, for the protection of the user. Nontechnical users can feel as confident running a Java applet as they do viewing an HTML page, in the knowledge that the browser will protect them from any nastiness. This works very well, and can be seen in everything from downloadable arcade games to news tickers and dancing text, but it was only the first step on Java's infiltration of our computer systems.

It is, of course, possible to write any application in Java, and while the concentration in the last few years has been on server-side components, there are many commercial desktop packages written in Java. For desktop applications the platform independence of Java is less important; porting an application to Windows and Mac just isn't very difficult.

But Java has many other advantages too. It's a very object-oriented language, offering fantastically easy code reuse. It's self-documenting and error intolerant, so even the sloppiest of developers is forced to implement a minimum of error trapping. All this leads to fast application development and deployment, which is a very attractive proposition on any platform.

There were several attempts to get rid of the whole operating system and just run everything on the desktop within Java. But the problems of re-creating all the applications currently used on Windows killed the Java OS before it was born. While many companies looked at moving their applications into Java, to run on a Java-based OS, Microsoft Office was never going to make that jump, and without Office, the idea was a nonstarter. But the dream of a Java-based environment isn't dead yet.

On phones we're very much at that first stage of Java implementation. The MIDP version 1.0 defines a very restrictive Sand Box, meaning that Midlets (as Java applications conforming to the MIDP are known) are very limited in the actions they can perform. While a Midlet can display things on the screen and create network connections to the rest of the Internet (over HTTP), it cannot communicate with other applications on the phone itself (such as the address book or diary), and it can't even take advantage of the very features that make a phone a phone, such as placing a call or sending a text message.

These limitations on the capabilities of MIDP have led to Java applications being limited to self-contained apps with limited functionality. This then leads to a perception, endemic in the mobile sphere, that Java is about games and graphics, rated somewhere near a color screen in must-have features. But these limitations won't last forever.

Extending Java the Proprietary Way
We've already seen companies extend their MIDP implementations to add functionality. A good example of this is the ability to send and receive text messages. Not only has SMS proved massively popular with users, it also presents a great communications channel for Java Midlets wanting to do everything from electronic commerce to non-time-sensitive multiplayer games.

This ability is so important that Nokia decided not to wait for the standard to be agreed on, but instead to go ahead and implement the functionality on their phones with a proprietary API. Of course, Nokia would much prefer to implement a standard API, and has worked within the JCP (Java Community Process) to establish that standard (now known as JSR120). But we are still waiting for handsets that implement this new standard.

An example may serve to illustrate the utility this will make possible. Mobile reps for a holiday tour company were equipped with Nokia 3410 handsets, a low-end phone supporting MIDP 1.0, with an m-commerce application on it. In order to sell extras to vacationers (activities like water skiing or horseback-riding trips) the reps run the application that asks them questions about how much the activity costs and the credit card details of the customer. These details are then formatted as an SMS message and sent to an authorization server, which responds with an SMS of its own, indicating that the transaction has been completed.

This SMS response is picked up by the application, which then displays the information to the rep. In this way, reps are able to accept credit card payments all over the world, using a client application that took under a day to create! Of course this application will work only on Nokia phones. Until a standard is implemented - and available on a wide range of devices - such applications will be limited to vertical markets where the choice of handset can be dictated.

Messaging is only one example where MIDP 1.0 falls short of what's wanted, so JSR118 defines MIDP 2.0, a completely new version of the MIDP standard. MIDP 2.0 not only allows Midlets much more freedom to communicate with in-built applications, but it also has a much more granular security model. Where an MIDP 1.0 Midlet simply couldn't do certain things, and could do others, MIDP 2.0 Midlets can be digitally signed and allowed to do things conditional as to who signed them.

The Midlet Identity
Through the use of digital signatures it's possible for an MIDP 2.0 Midlet to be identified as having been created by either the phone manufacturer, the network operator, a trusted partner, or an untrusted source. For those coming from an untrusted source the available functionality of MIDP 2.0 is much the same as version 1, with some graphical improvements, but for those with the right credentials, a world of possibilities opens up.

Not only is the ability to perform actions limited by who created the application, but some actions require user authorization depending on the signature. For example, any Midlet can send a text message, but the user will be asked to authorize every message sent. However, the network operator can create a Midlet that can send and receive text messages without user involvement, or knowledge. Because the network operator is responsible for the billing arrangements, it's up to them to ensure that their customer either isn't charged or doesn't mind. By breaking down the security model in this way, MIDP 2.0 Midlets can be much more functional, while still allowing freedom and confidence for the user.

With such a granular security model it's possible to use Java for more than just games and entertainment. Indeed, some phone manufacturers are starting to think of Java as a useful language for their own applications. Every phone handset has a range of applications embedded in it at manufacture, usually including a basic address book, message composition and inbox, phone-setting management, and often a very basic calendar or at least an alarm clock. These applications are, traditionally, developed in C to run on the operating system of the phone.

While phones offered only very basic functionality, this was not a problem, but as phones get more complex, these applications are becoming increasingly more time-consuming to develop (see Figure 1).

As the phone already has a JVM in it, and a Midlet signed by the manufacturer has access to all the resources most in-built applications need, there is no reason not to make use of Java for these embedded applications. Users may not be aware that they are running a Java Midlet, nor should they be, but the reduction in development time and the stability of Java can make everyone's life easier. One well-known manufacturer already uses Java Midlets to control the camera functions on their phone, so you might be using Java today without even knowing it!

Java to the Core
If it makes sense to create some of the applications embedded on the phone in Java, does it make sense to create any of them in C? With increased processor speeds and memory getting cheaper all the time, it might be possible to just create the whole suite of applications for the phone in Java, using the MIDP 2.0 profile. Such an environment would make changes to the hardware design easier, and ease development in what is an increasingly competitive market. There are some small penalties in speed and memory requirements, but these are already minimal and being further reduced.

This approach is offered by Esmertec, who suggests providing a phone application suite created wholly in MIDP 2.0, running on a minimal embedded OS. Obviously they need a core kernel, and have had to add a couple of proprietary extensions to get all the functionality they need, but the ability for quick integration of MIDP 2.0 applications and remote management of the software on the device, makes for a compelling proposition. Esmertec addresses the speed concerns inherent in Java by precompiling Midlets to native code as part of the installation process. This offers the performance of a JIT (Just In Time) compiler without the startup lag normally associated with JIT technologies.

The sinking of Java is taken one stage further by SavaJe, who has decided not to muck about with MIDP standards, and instead, has implemented pretty much the whole J2SE (Standard Edition) API. While still only possible on high-end handsets, this offers the ability to run normal Java applications, and to integrate new applications easily and quickly with the phone. Support for the Swing APIs allows innovative and interesting GUI development, while MIDP 2.0 Midlets are still supported within a Sand Box itself written in Java (see Figure 2).

Clearly the reality of the Java-based computer is still on its way, even if it's going to be in our pockets rather than on our desks. Java has always rested on top of everything, but by sinking into the OS before it can dominate mobile development, it's going to have to sink out of sight.

More Stories By Bill Ray

Bill Ray, former editor-in-chief (and continuing distinguished contributor to) Wireless Business & Technology magazine, has been developing wireless applications for over 20 ears on just about every platform available. Heavily involved in Java since its release, he developed some of the first cryptography applications for Java and was a founder of JCP Computer Services, a company later sold to Sun Microsystems. At Swisscom he was responsible for the first Java-capable DTV set-top box, and currently holds the position of head of Enabling Software at 02, a UK network operator.

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.


@ThingsExpo Stories
"We've been engaging with a lot of customers including Panasonic, we've been involved with Cisco and now we're working with the U.S. government - the Department of Homeland Security," explained Peter Jung, Chief Product Officer at Pulzze Systems, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution and join Akvelon expert and IoT industry leader, Sergey Grebnov, in his session at @ThingsExpo, for an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.
The financial services market is one of the most data-driven industries in the world, yet it’s bogged down by legacy CPU technologies that simply can’t keep up with the task of querying and visualizing billions of records. In his session at 20th Cloud Expo, Karthik Lalithraj, a Principal Solutions Architect at Kinetica, discussed how the advent of advanced in-database analytics on the GPU makes it possible to run sophisticated data science workloads on the same database that is housing the rich...
IoT is at the core or many Digital Transformation initiatives with the goal of re-inventing a company's business model. We all agree that collecting relevant IoT data will result in massive amounts of data needing to be stored. However, with the rapid development of IoT devices and ongoing business model transformation, we are not able to predict the volume and growth of IoT data. And with the lack of IoT history, traditional methods of IT and infrastructure planning based on the past do not app...
DX World EXPO, LLC., a Lighthouse Point, Florida-based startup trade show producer and the creator of "DXWorldEXPO® - Digital Transformation Conference & Expo" has announced its executive management team. The team is headed by Levent Selamoglu, who has been named CEO. "Now is the time for a truly global DX event, to bring together the leading minds from the technology world in a conversation about Digital Transformation," he said in making the announcement.
With tough new regulations coming to Europe on data privacy in May 2018, Calligo will explain why in reality the effect is global and transforms how you consider critical data. EU GDPR fundamentally rewrites the rules for cloud, Big Data and IoT. In his session at 21st Cloud Expo, Adam Ryan, Vice President and General Manager EMEA at Calligo, will examine the regulations and provide insight on how it affects technology, challenges the established rules and will usher in new levels of diligence...
In the enterprise today, connected IoT devices are everywhere – both inside and outside corporate environments. The need to identify, manage, control and secure a quickly growing web of connections and outside devices is making the already challenging task of security even more important, and onerous. In his session at @ThingsExpo, Rich Boyer, CISO and Chief Architect for Security at NTT i3, discussed new ways of thinking and the approaches needed to address the emerging challenges of security i...
Internet of @ThingsExpo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The Internet of Things (IoT) is the most profound change in personal and enterprise IT since the creation of the Worldwide Web more than 20 years ago. All major researchers estimate there will be tens of billions devic...
What sort of WebRTC based applications can we expect to see over the next year and beyond? One way to predict development trends is to see what sorts of applications startups are building. In his session at @ThingsExpo, Arin Sime, founder of WebRTC.ventures, discussed the current and likely future trends in WebRTC application development based on real requests for custom applications from real customers, as well as other public sources of information.
"The Striim platform is a full end-to-end streaming integration and analytics platform that is middleware that covers a lot of different use cases," explained Steve Wilkes, Founder and CTO at Striim, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that Calligo, an innovative cloud service provider offering mid-sized companies the highest levels of data privacy and security, has been named "Bronze Sponsor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Calligo offers unparalleled application performance guarantees, commercial flexibility and a personalised support service from its globally located cloud plat...
SYS-CON Events announced today that Massive Networks will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Massive Networks mission is simple. To help your business operate seamlessly with fast, reliable, and secure internet and network solutions. Improve your customer's experience with outstanding connections to your cloud.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.
SYS-CON Events announced today that Datera, that offers a radically new data management architecture, has been named "Exhibitor" of SYS-CON's 21st International Cloud Expo ®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Datera is transforming the traditional datacenter model through modern cloud simplicity. The technology industry is at another major inflection point. The rise of mobile, the Internet of Things, data storage and Big...
While the focus and objectives of IoT initiatives are many and diverse, they all share a few common attributes, and one of those is the network. Commonly, that network includes the Internet, over which there isn't any real control for performance and availability. Or is there? The current state of the art for Big Data analytics, as applied to network telemetry, offers new opportunities for improving and assuring operational integrity. In his session at @ThingsExpo, Jim Frey, Vice President of S...
"DX encompasses the continuing technology revolution, and is addressing society's most important issues throughout the entire $78 trillion 21st-century global economy," said Roger Strukhoff, Conference Chair. "DX World Expo has organized these issues along 10 tracks with more than 150 of the world's top speakers coming to Istanbul to help change the world."
"We provide IoT solutions. We provide the most compatible solutions for many applications. Our solutions are industry agnostic and also protocol agnostic," explained Richard Han, Head of Sales and Marketing and Engineering at Systena America, in this SYS-CON.tv interview at @ThingsExpo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"We are focused on SAP running in the clouds, to make this super easy because we believe in the tremendous value of those powerful worlds - SAP and the cloud," explained Frank Stienhans, CTO of Ocean9, Inc., in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
"MobiDev is a Ukraine-based software development company. We do mobile development, and we're specialists in that. But we do full stack software development for entrepreneurs, for emerging companies, and for enterprise ventures," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.
SYS-CON Events announced today that DXWorldExpo has been named “Global Sponsor” of SYS-CON's 21st International Cloud Expo, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Digital Transformation is the key issue driving the global enterprise IT business. Digital Transformation is most prominent among Global 2000 enterprises and government institutions.