Sun Java Solaris Communities My SDN Account Join SDN
 

Mobility Tech Tips

 
 

Mobility Tech Tips are tips, techniques, and sample code on topics of interest to developers using mobile Java technologies: Java ME (including MSA, MIDP, and the wireless toolkits for CDC and CLDC) and JavaFX technologies.

Subscribe to the RSS feed nowRSS button

Note: See the archive page for tech tips before 2007.


Mon, 2 Nov 2009 13:30:28 -0800
Powerful Logging in Java ME

Have you ever wanted to log from your MIDlet? You may have considered doing your own logging facility. Why not use an existing solution: The Microlog open-source logging library. It is based on the well known Log4j API or logging library, but has been created from the ground up with Java ME limitations in mind.

 

Mon, 28 Sep 2009 11:02:43 -0700
Simple Strategy for Logging and Monitoring of MIDlets

On-device debugging isn ' t useful when your MIDlet is running on a client ' s phone. This tech tip presents one approach to developers who want a fast and simple way to debug their apps remotely in real environments.

 

Fri, 11 Sep 2009 14:41:31 -0700
destroyApp() Is Your Friend
Concurrency and data safety are complex subjects. This tech tip addresses specific issues around handling individual record-entry safety and third-party libraries.  

Mon, 31 Aug 2009 22:11:23 -0700
More Reasons to Use JavaFX for Your Next Mobile Application

Bruce Hopkins briefly answers the questions that were submitted in the Comments section of his article Three Reasons Why Your Next Java ME Mobile Application Should Include JavaFX Mobile  

Mon, 27 Jul 2009 16:22:03 -0700
Faster Data Transfer With Bluetooth and Contactless Communication
Learn how Bluetooth ap plications can bypass the device discovery and service searching by using Near-Field Communication (NFC) technology and JSR 257 (Contactless Communication API).  

Mon, 27 Jul 2009 10:00:34 -07 00
JavaFX on the Mac OS: Security Warning

Have you been seeing a newly worded warning message appear when you access JavaFX.com samples or documentation examples on your Mac? This tech tip explains how to turn off the message.

 

Wed, 8 Jul 2009 10:46:43 -0700
Java ME SDKs and Tools: The State of the Union
The Java ME platform is huge, robust, and versatile. This article provides a compatibility matrix of tools, SDKs, and APIs, including NetBeams, MOTODEV Studio, Nokia, Blackberry, Sony Ericsson, and LG.  

Wed, 10 Jun 2009 15:21:01 -0700
Working with Bluetooth and GPS: Follow-up

The ? Working with Bluetooth and GPS ? series on the Bluetooth API (JSR-82) spawned a number of questions, which author Bruce Hopkins addresses in this follow-up tech tip.

 

Wed, 22 Apr 2009 18:11:04 -0700
Using the Location API for Favorite Spots
This tech tip shows you how to get started using the Location API ( JSR 179 ), and how to build a small location-aware application that you can use to tag your favorite spots.  

Wed, 1 Apr 2009 11:57:39 -0700
Q & A on Blu-ray Disc Application Development with Java ME
In the past year, Sun published a two-part series to lower the learning curve for Java developers who want to get started using the Blu-ray Disc for Java (BD-J) platform. This follow-up tech tip answers a couple of questions from readers.  

Thu, 19 Mar 2009 19:56:23 -0700
Discovering Devices and Sending Files via Bluetooth in Java ME
Vikram Goyal shows you how to create a MIDlet that will search for Bluetooth-enabled devices and services, and then allow the user to send a simple note to one of the found devices.  

Fri, 6 Feb 2009 12:01:11 -0800
Three Reasons Why Your Next Java ME Mobile Application Should Include JavaFX Mobile
Developer Bruce Hopkins walks you through three source-code samples to demonstrate JavaFX ' s usefulness to Java ME developers creating apps for mobile devices. Developers can call methods on objects and instantiate objects within libraries that already exist in Java ME and Java SE -- in this case, the APIs in JSRs 82, 135, and 180. Plus, JavaFX let you bind the value of an object to another variable.  

Wed, 21 Jan 2009 16:16:32 -0800
Notes from the Java Mobile, Media & Embedded Developer Days

Here are notes from the presentations I attended at the Java Mobile, Media & Embedded Developer Days (M3DD) today, at the Sun campus in Santa Clara, California.

 

Tue, 20 Jan 2009 15:10:36 -0800
Mixing MIDI, Tone, and Sampled Audio using MMAPI

In this tech tip, Vikram Goyal shows you how to mix and play multiple media content at the same time. He uses the Mobile Media API (MMAPI) and the NetBeans IDE.

 

Wed, 7 Jan 2009 15:55:34 -0800
Blu-ray Disc Application Development with Java ME, Part 2: Responding to User Input

Bruce Hopkins serves up Part 2 of his series on Blu-ray Disc Java development. Part 2 extends the code that was used in the Part 1, so that the application can respond to user input. Of course, since a Blu-ray Disc player is a set-top device, you can ' t expect users to interact with it with a keyboard and mouse. So we ' re going to look at the APIs involved in responding to input from a remote control, regardless of whether the user used an infrared remote control or Bluetooth remote control (such as the one used on the Sony Playstation 3, or PS3, gaming console).

 

Tue, 9 Dec 2008 21:53:33 -0800
Early Access to Java On Device Portal SDK

The new Java On Device Portal (ODP) lets developers use Java technology to
create and deploy widgets on mobile devices. Register now to join the
Early Access program.

 

Wed, 3 Dec 2008 21:42:54 -0800
JavaFX and JNLPs: How to Develop and Run JavaFX Applets and Applications Offline

This tech tip by Sun software engineer Thomas Ng describes how to run Java Network Launch Protocol (JNLP) files offline, such as for debugging or testing applets or applications developed with JavaFX.

 

Mon, 3 Nov 2008 16:14:43 -0800
Report from Africa: A Java ME MIDlet for User-Generated Localization

In this article, the authors describe the process of developing a user-generated localization MIDlet for an application that connects people to community radio stations -- important purveyors of information in technology-challenged Africa.

 

Fri, 31 Oct 2008 09:53:04 -0700
Asynchronous Communications with Java ME and SIP: Part 2
Bruce Hopkins uses a SIP proxy and the REGISTER method type to provide a simple, yet scalable solution for sen ding a simple message asynchronously from one application to the other, when one SIP device is behind a firewall.  

Mon, 27 Oct 2008 19:13:23 -0700
Bluetooth and GPS: Part 2 - Parsing GPS Data and Rendering a Map

Bruce Hopkins describes how to use Java ME technology and its Bluetooth API (JSR-82) to access location data from wireless GPS devices, in this second of a two-part series. The JSR-172 (XML Parsing and Web Services) API is used to parse the result.

 

Tue, 16 Sep 2008 11:51:35 -0700
Blu-ray Disc Application Development with Java ME

Java technology is a critical part of the new high-definition video standard, the Blu-ray Disc standard. In this first of a two-part series, Bruce Hopkins covers several aspects of using the Java language to create applications for your Blu-ray disc player, which includes the very popular PlayStation 3 gaming console.

 

Thu, 4 Sep 2008 20:19:09 -0700
Using JavaScript Object Notation (JSON) in Java ME for Data Interchange

In this code-rich article, mobility technologist C. Enrique Ortiz introduces the lightweight JSON Java ME APIs as an alternative to XML.

 

Mon, 25 Aug 2008 13:26:26 -0700
JavaFX Preview SDK - " Experts " Q & A

During the week of August 18, 2008, we encouraged you to " Ask the Experts " your questions about the recent JavaFX Preview SDK release. Our experts were Joshua Marinacci, Martin Brehovsky, and Lawrence McDonough of the JavaFX engineering team, plus Jeff Dinkins. Here ' s a list of the question-and-answer topics.

 

Tue, 19 Aug 2008 15:04:28 -0700
Creating a Custom Scrollable Table with JavaFX

JavaFX expert Jim Weaver continues his series of articles with this latest one, TableNode: Creating a Custom Scrollable Table in JavaFX .

 

Thu, 7 Aug 2008 16:57:00 -0700
Ask the Experts: JavaFX Preview, August 18-22

The recently released JavaFX Preview helps early adopters become familiar with JavaFX. Got a question about it? Post it during this session and get answers from three key members of Sun ' s JavaFX engineering team.

 

Thu, 31 Jul 2008 10:16:28 -0700
JavaFX Learning Curve Journal Updates

In August and September 2007, the Sun Developer Network staff started a Learning Curve Journal, a series designed to help users get started with the JavaFX Script programming language. A number of significant advances have been made to the language since then. The Learning Curve Journal has been updated to show you how to use the compiler-based version of the language. Other changes have been made to make the articles current.

 

Wed, 16 Jul 2008 15:26:29 -0700
Bluetooth and GPS: Part 1 - Reading Wireless Serial Port Data

In the first of this multi-part series, Bruce Hopkins describes how to construct a low-cost solution that allows you to install, debug, and test your JSR-82 applications on your computer, and how to read data from a Bluetooth-enabled GPS device.

 

Tue, 15 Jul 2008 16:31:01 -0700
Digisoft.tv ' s John Allen on Interactive Television

Sun ' s Jennifer Yonemitsu interviews Digisoft.tv CEO John Allen to discuss the Java ME-based client platform for IPTV set-top boxes, using Sun ' s Java technology-based media client and Digisoft.tv ' s middleware/SDK.

 

Thu, 19 Jun 2008 17:22:42 -0700
Near-Field Communication and the Contactless Communication API (JSR 257)

NFC is a short-range radio technology that operates on the 13.56 MHz frequency, with data transfers of up to 424 kilobits per second. NFC communication is triggered when two NFC-compatible devices are brought within close proximity, around four centimeters. The Contactless Communication API allows you to discover and exchange data with contactless targets such as NDEF tags, RFID tags, and external smartcards. C. Enrique Ortiz dissects a Contactless Communication API MIDlet.

 

Mon, 2 Jun 2008 13:03:04 -0700
The Bluetooth Conundrum
SDN staff writer Richard Marejka provides the required code to programmatically detect the presence of the JSR 82 Bluetooth APIs.  

Update Your Java Runtime Environment

NetBeans