CLDC - MIDP (JSR 37, JSR 118)

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
Tips
  Tutorials
  

Articles:
  • Give Your Mobile Workforce Offline Muscle with the MIDP Record Management System by David Hemphill   - [Clicks: 45]
    MIDP offers the ability to store data locally on the device. This is a distinct advantage over browser-based approaches, especially when the user moves out of network coverage. Find out how to use the MIDP Record Management System (RMS) to store application data for offline browsing.
    [Includes source code]
    http://www.devx.com/wireless/Article/23275 - Dec, 2004
  • Mobile Memories: The MIDP Record Management System by Thomas Kunneth   - [Clicks: 58]
    Welcome to the third part of my introduction to J2ME. In this installment, I will take a closer look at the persistence package that Duke's Diary (the sample program from the previous article) uses to store its entries.
    http://today.java.net/pub/a/today/2004/11/16/J2ME-3.html - Nov, 2004
  • Still on the Road with Duke by Thomas Kunneth   - [Clicks: 14]
    The first part of this series introduced key aspects of the Java 2 Platform, Micro Edition (J2ME) and the J2ME Wireless Toolkit and offered a small sample application as a starting point to MIDlet development. In this installment, I focus on the user interface of MIDP applications. We will have a look at what components are available to the programmer and how they fit together. I demonstrate key techniques of MIDP-centered GUI design with an application called Duke's Diary.
    [Includes source code]
    http://today.java.net/pub/a/today/2004/10/08/J2ME-2.html - Oct, 2004
  • Architectural manifesto: The MVC design pattern in MIDP development by Mikko Kontio   - [Clicks: 41]
    Learn how to use the Model-View-Controller pattern in your MIDP user interface development. Start with an overview of the structure of the MVC pattern, then see how it can be applied in a real-life case.
    http://www-106.ibm.com/developerworks/wireless/library/wi-arch6/ - Sep, 2004
  • Managing the MIDlet Life-Cycle with a Finite State Machine by C. Enrique Ortiz   - [Clicks: 29]
    This articles shows a simple and effective means to control a MIDlet's life-cycle and overall application behavior using a Finite State Machine.
    http://developers.sun.com/techtopics/mobility/midp/articles/fsm/index.html - Aug, 2004
  • Alerts in MIDP 2.0 by Eric Giguere   - [Clicks: 35]
    Don't leave the user guessing, provide visual feedback of MIDlet progress using MIDP 2.0 alerts. New alert features provide an interface to associate a javax.microedition.lcdui.Gauge item with a javax.microedition.lcdui.Alert. By adding a javax.microedition.lcdui.CommandListener interface alerts can also provide users more control over MIDlet processing.
    [Includes source code]
    http://developers.sun.com/techtopics/mobility/midp/ttips/alerts20/index.html - Aug, 2004
  • The Information Module Profile by Eric Giguere   - [Clicks: 15]
    The Information Module Profile (IMP) is a subset of MIDP 1.0 specification. The IMP specification removes MIDP's display and input mechanisms. The profile is suitable for deployment on devices with either no user-interface or a non-conventional user interface, for example: vending machines or tracking devices. Read more about IMP and it's future.
    http://developers.sun.com/techtopics/mobility/imp/impintro/index.html - Aug, 2004
  • Scratch by Scott Davis   - [Clicks: 14]
    Scott Davis wanted to capture signatures on a Palm. To scratch this particular itch, he rolled a J2ME MIDlet and posted it on java.net. In this article, he describes how this small, practical app works.
    http://today.java.net/pub/a/today/2004/08/10/scratch.html - Aug, 2004
  • Get Down with the MIDP Low-level User Interface API by David Hemphill   - [Clicks: 28]
    MIDP provides a low-level API for fine-grained control over the application user interface. However, applications wanting to make use of these features also inherit a lot of responsibility and risk. Find out the benefits and pitfalls of using the MIDP low-level APIs.
    http://www.devx.com/wireless/Article/21452 - Jul, 2004
  • AMS implementation on Palm by Chidananda Rudraiah   - [Clicks: 11]
    Find out how an Application Management Software (AMS) implementation on Palm, delivered in this example as part of the IBM WebSphereŽ Micro Environment Toolkit, enables you to effectively download, install, update, launch, set permissions, and, finally, delete MIDlet suites on Palm OS-powered devices.
    http://www-106.ibm.com/developerworks/library/wi-amspalm/ - Jun, 2004
  • Take the High Road when Creating MIDP User Interfaces by David Hemphill   - [Clicks: 33]
    MIDP supports a user interface framework that caters to mobile devices by providing a number of built-in controls. Find out how these controls enable the portability of applications between devices.
    http://www.devx.com/wireless/Article/21262 - Jun, 2004
  • MIDP Terminal Emulation, Part 3: Custom Fonts for MIDP by Michael Powers   - [Clicks: 90]
    In Part 3, we'll add some polish -- and some badly needed control over appearance -- by taking advantage of MIDP's capabilities for rendering custom fonts. First we'll examine the advantages and constraints of the built-in support for fonts, and determine what kinds of applications might require custom fonts. Then I'll show you a technique for implementing your own fonts, and we'll put it to good use in the terminal emulator MIDlet.
    [Includes project code]
    http://developers.sun.com/techtopics/mobility/midp/articles/termemulator3/ - Jun, 2004
  • Architectural manifesto: Designing networked MIDP applications by Mikko Kontio   - [Clicks: 30]
    Designing network operations in a restricted environment like MIDP can be challenging, requiring the designer or architect to think about trade-offs between different solutions. In this column, Mikko considers the factors involved in selecting the best design for a simple, networked MIDP application. The results might surprise you.
    http://www-106.ibm.com/developerworks/wireless/library/wi-arch2/index.html - May, 2004
  • Databases and MIDP, Part 2: Data Mapping by Eric Giguere   - [Clicks: 45]
    This article describes data mapping strategies you can use to encapsulate low-level storage operations so your applications can store and retrieve persistent data efficiently and effectively.
    http://developers.sun.com/techtopics/mobility/midp/articles/databasemap/ - May, 2004
  • Databases and MIDP, Part 3: Putting Data Mapping to Work by Eric Giguere   - [Clicks: 23]
    In this article you'll learn how to distance your applications from these lower-level operations, by extending core classes to include reading and writing operations, and by creating field lists and using them to store and retrieve objects.
    http://developers.sun.com/techtopics/mobility/midp/articles/databasemapextend/ - May, 2004
  • KICK START J2ME Development with BlackBerry by Jason Lam   - [Clicks: 33]
    Get a quick introduction to BlackBerry and learn some of it's differences when compared to developing J2ME applications on mobile phones.
    http://www.developer.com/java/j2me/article.php/3353321 - May, 2004
  • Developing a Newsreader in Java by Mikko Kontio   - [Clicks: 23]
    Are you a news junkie? Need headlines on the fly? Mobile phones offer fascinating opportunities to create applications for mobile workers. In this article, Mikko Kontio gives you helpful source code and tells you how to develop a newsreader for Java-enabled phones.
    http://www.informit.com/articles/article.asp?p=170871 - May, 2004
  • MIDP Terminal Emulation, Part 2: Advanced Terminal Emulation by Michael Powers   - [Clicks: 14]
    In the first article in this series we built a simple terminal emulator that runs on any MIDP device that supports TCP/IP sockets. It boasts a Connection that implements the Telnet protocol and a Canvas customized to display terminal content. In this second article I'll assume you've read the first one and are familiar with these components.
    [Includes source code]
    http://developers.sun.com/techtopics/mobility/midp/articles/termemulator2/ - Apr, 2004
  • Push Your MIDlets to Do a Lot More with MIDP 2.0 PushRegistry by David Hemphill   - [Clicks: 65]
    Learn how to push your MIDlets up to first-class status on a range of mobile devices using the PushRegistry.
    http://www.devx.com/wireless/Article/20154 - Feb, 2004
  • Designing MIDP applications by Mikko Kontio   - [Clicks: 21]
    When designing software applications for devices such as cell phones and PDAs, you must consider any potential problems, such as resource-challenged platforms for instance. With those tasks in mind, Mikko Kontio walks you through the design process for MIDP-based applications.
    http://www-106.ibm.com/developerworks/library/wi-midp/ - Feb, 2004
  • Databases and MIDP, Part 1: Understanding the Record Management System by Eric Giguere   - [Clicks: 37]
    This article is the first in a series that will explore RMS and the larger issues surrounding its use in MIDP applications, such as interacting with external data sources like relational databases. We'll start by exploring what RMS has to offer and writing some simple RMS debugging aids.
    http://developers.sun.com/techtopics/mobility/midp/articles/databaserms/ - Feb, 2004
  • J2ME 101, Part 4: The Generic Connection Framework by John Muchow   - [Clicks: 36]
    The Generic Connection Framework (GCF) provides an extensible, generic I/O framework for resource constrained devices. In this final installment in the J2ME 101 series, author John Muchow walks you through the GCF interfaces, showing you how they facilitate the development and support of various types of network and file I/O on MIDP.
    http://www-106.ibm.com/developerworks/library/j-j2me4/ - Jan, 2004
  • A Terminal Emulator for MIDP by Michael Powers   - [Clicks: 20]
    In this article you and I will explore the socket support in the Generic Connection Framework (GCF) by building a small and simple terminal emulator.
    [Includes source code]
    http://developers.sun.com/techtopics/mobility/midp/articles/termemulator1/ - Jan, 2004

[Top]

Tips:
  • What is the correct form of a MIDlet suite version number? by Richard Marejka   - [Clicks: 32]
    One character can be the difference between a successful installation and a failed attempt. Check your knowledge of MIDlet versioning.
    http://developers.sun.com/techtopics/mobility/midp/questions/version/index.html - Dec, 2004
  • Game Canvas Basics by Eric Giguere   - [Clicks: 35]
    Many, perhaps most, of the early commercial applications developed on the J2ME platform were games. With all the obvious interest in gaming - and the many device-specific gaming extensions developed by different handset vendors - it was no surprise to anyone that the Java Community Process group responsible for defining MIDP 2.0 introduced basic gaming capabilities. Let's take a look at the core of those capabilities, the GameCanvas class.
    [Includes source code]
    http://developers.sun.com/techtopics/mobility/midp/ttips/gamecanvas/index.html - Dec, 2004
  • Understanding MIDP System Threads by Eric Giguere   - [Clicks: 53]
    Concurrency - multiple threads executing simultaneously within a single application - is a complex topic. Although Java technology has always included extensive built-in support for multithreading, writing correct concurrent code is seldom as simple as it seems. To give you some welcome help J2SE 5.0 (also called Java 1.5) adds a number of concurrency utilities that are based on work by Doug Lea, author of Concurrent Programming in Java - an excellent reference, well worth reading. These new classes are not available to J2ME applications, unfortunately, so the basic techniques discussed in the article "Using Threads in J2ME Applications" still apply. This tech tip focuses on dealing with system threads, an aspect of MIDP programming that trips up many a beginner.
    http://developers.sun.com/techtopics/mobility/midp/ttips/threading3/index.html - Dec, 2004
  • Writing a Custom Counter Component by Eric Giguere   - [Clicks: 65]
    MIDP 2.0 introduced the javax.microedition.lcdui.CustomItem class. As the name implies, a developer can now create custom UI components by extending the CustomItem class. This tech tip designs and implements a UI component for displaying a numeric counter and of course, source code is available.
    [Includes source code]
    http://developer.sun.com/techtopics/mobility/midp/ttips/counteritem/index.html - Oct, 2004
  • Databases and MIDP, Part 5: Searching a Record Store by Eric Giguere   - [Clicks: 36]
    In Part 4 of this series, you learned how to traverse a record store, sort records into useful order, and use filters to select desired records. This article explores the various strategies for finding one or more records that meet criteria you specify.
    http://developers.sun.com/techtopics/mobility/midp/articles/databaserecordstore/index.html - Jul, 2004
  • Databases and MIDP, Part 4: Filtering and Traversal Strategies by Eric Giguere   - [Clicks: 19]
    In Parts 2 and 3 of this series we discussed basic ways of mapping data to and from byte arrays in order to store them in record stores managed by the Record Management System (RMS). Reading and writing data is always the first obstacle to overcome, but finding the data you need is just as important, and to do that you need to be able to navigate the record store, sort records into a useful order, and use filters to extract wanted records. This article explores the different strategies for performing these chores; Part 5 will build on what you learn here, and show you how to search for records that meet criteria you specify.
    http://developers.sun.com/techtopics/mobility/midp/articles/databasefilter/index.html - Jul, 2004
  • A Custom List Component for MIDP 2.0 by Eric Giguere   - [Clicks: 80]
    The MIDP 2.0 specification allows the creation of custom user-interface (UI) components. This tech tip illustrates custom UI component development by way of an example "virtual list" component. The source is available for download.
    http://developers.sun.com/techtopics/mobility/midp/ttips/customcomponent/index.html - Jul, 2004
  • Custom Item Traversal in MIDP 2.0 by Eric Giguere   - [Clicks: 70]
    Navigating between and within UI components is a common user activity. Learn about the MIDP 2.0 javax.microedition.lcdui.CustomItem traversal model to enhance your custom UI components.
    http://developers.sun.com/techtopics/mobility/midp/ttips/customitemtraversal/index.html - Jul, 2004
  • HTTP POST Basics by Eric Giguere   - [Clicks: 42]
    A presentation of the benefits and usage model of the HTTP POST method. The POST method is explained and compared to the HTTP GET method. Code samples illustrate the usage of each method in the MIDP environment.
    http://developers.sun.com/techtopics/mobility/midp/ttips/HTTPPost/ - Jun, 2004
  • Interaction Modes in MIDP 2.0 by Eric Giguere   - [Clicks: 48]
    MIDP 2.0 introduces three user interaction modes in the javax.micoredition.lcdui package. Custom UI items can discover the interaction modes available in an implementation at run-time. Learn how to identify and dynamically adapt to interaction modes in your javax.microedition.lcdui.CustomItem components.
    http://developers.sun.com/techtopics/mobility/midp/ttips/interactionmodes/ - Jun, 2004
  • Invoking Platform Services in MIDP 2.0 by C. Enrique Ortiz   - [Clicks: 150]
    Version 2.0 of the Mobile Information Device Profile (MIDP) includes a facility that enables MIDlets to invoke external platform services; to start downloading and installing a MIDlet suite for example, or to initiate a voice call. Access is through the method javax.microedition.midlet.MIDlet.platformRequest().
    http://developers.sun.com/techtopics/mobility/midp/ttips/platformRequest/index.html - May, 2004
  • Retrieving MIDlet Attributes by Richard Marejka   - [Clicks: 28]
    Attributes in the Mobile Information Device Profile (MIDP) are similar in concept to the properties seen in the java.util.Properties package in the Java 2 Platform, Standard Edition (J2SE). Attributes are name-value pairs of strings that are bound into a MIDlet suite. You can use them to set initial default values or to control the behavior of your MIDlet in a way that's far more convenient than hard-coding values into the MIDlet suite. A common example in a network-aware MIDlet is a server URL. If you implement the URL as an attribute retrieved at runtime, you don't need to rebuild the MIDlet suite's Java Archive (JAR) file entirely each time you change the attribute's value. Using attributes this way increases the flexibility of the MIDlet, and reduces both build and test time.
    http://developers.sun.com/techtopics/mobility/midp/ttips/getAppProperty/index.html - May, 2004
  • Request Permissions with a MIDlet by David Hemphill   - [Clicks: 39]
    A MIDlet requests permissions by declaring them in the application descriptor, using either MIDlet-Permissions or MIDlet-Permissions-Opt. Multiple permissions can be specified and are separated by commas. If a permission is declared in MIDlet-Permissions, then the MIDlet suite must be granted access to a protection domain with this permission.
    http://www.devx.com/tips/Tip/20798 - Apr, 2004
  • Converting Flash Movies to MIDlets by Qusay H. Mahmoud   - [Clicks: 50]
    This tech tip provides a glimpse into the future of J2ME-based multimedia, including a way to convert Macromedia Flash files into J2ME MIDlets, and tools for using vector graphics.
    http://developer.sun.com/techtopics/mobility/midp/ttips/flash/index.html - Apr, 2004
  • Personalizing Wireless Java Applications by Qusay H. Mahmoud   - [Clicks: 12]
    Learn how to store user-specific data on a J2ME device to enhance the user experience. Personalization stores the most commonly entered user data on the device. This data does not have to be re-entered by the user and can be shared by co-operating MIDlets.
    http://developers.sun.com/techtopics/mobility/midp/ttips/personalizing/index.html - Apr, 2004
  • Preventing Screen Lockups of Blocking Operations by Qusay H. Mahmoud   - [Clicks: 21]
    When you're developing networking MIDlets, pay special attention to blocking operations, such as methods that establish a connection to the network. These can lock up the screen, leaving your user frustrated with your application. To prevent screen lockups, you should perform all blocking operations in a separate thread.
    http://developers.sun.com/techtopics/mobility/midp/ttips/screenlock/index.html - Mar, 2004
  • Text Wrapping in MIDP by Qusay H. Mahmoud   - [Clicks: 74]
    Version 2.0 of the Mobile Information Device Profile (MIDP) enhances text wrapping in several ways. This tech tip provides some hints and guidelines on handling text wrapping in MIDP.
    http://developers.sun.com/techtopics/mobility/midp/ttips/wordwrap/index.html - Mar, 2004

[Top]

Tutorials:
  • Threads and networking in J2ME by John Muchow   - [Clicks: 100]
    This tutorial teaches you how to use threads in MIDlets to communicate over a network connection. Without multithreading, a MIDlet that requests a network connection blocks while waiting for a response from the network. In the real world, a user expects the application to continue running, even while a network connection is underway. The tutorial demonstrates the problems of non-threaded MIDlets and lets you build a multithreaded MIDlet.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/edu/wi-dw-wi-threads-i.html - Mar, 2004
  • Develop Web services clients for mobile devices   - [Clicks: 63]
    This tutorial guides you through the necessary steps to build mobile Web services clients on J2ME MIDP devices. By following the steps in this tutorial, you will see how quick and easy it is to create a Web services client. The example built in this tutorial is a stock quote client application. Using the WebSphere Studio Device Developer V5.6 Web Services tooling, you can generate a client stub and a MIDlet that will take a stock symbol as input and retrieve the most current price (time delayed, of course). Finally, it guides you through the steps necessary to run the MIDlet on the Device Developer MIDP emulator.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/webservices/edu/ws-dw-ws-mobile-i.html - Mar, 2004
  • Mobile database access by Naveen Balani   - [Clicks: 149]
    This tutorial shows you how to build a database application using Java 2 Micro Edition (J2ME) Record Management System (RMS). It also demonstrates how to craft a MIDlet that performs the necessary logic of creating and accessing a sample database application and deploys it to a J2ME environment.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/edu/wi-dw-wi-data-i.html - Mar, 2004
  • Encrypt data within mobile apps by John Muchow   - [Clicks: 67]
    In this tutorial, you'll employ the open standard Bouncy Castle to encrypt mobile MIDlet applications. The tutorial provides an overview of how to encrypt application-related data in a Java 2 Micro Edition (J2ME) application. It begins with a brief introduction to data encryption, then continues on to introduce the open source obfuscator, ProGuard. The final section in this tutorial compares MIDlet JAR file sizes, with and without obfuscation.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/edu/wi-dw-wi-encrypt-i.html - Jan, 2004
  • Session management with J2ME and PHP by John Muchow   - [Clicks: 48]
    This tutorial provides an introduction to session management between a J2ME MIDlet and a Web server running PHP.The course discusses how to create and establish connections using HTTP, and also has a short overview of PHP, including how PHP and HTML work together to create dynamic content.
    [Formats: HTML, PDF, Zip]
    http://www-106.ibm.com/developerworks/edu/wi-dw-wi-php1-i.html - Jan, 2004

[Top]