advertisement
Premier Club Log In/Registration
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   SKILLBUILDING  |   TIP BANK  |   SOURCEBANK  |   FORUMS  |   NEWSLETTERS
Browse DevX
Download the code for this article
Have you found developing J2ME apps easier than actually deploying them to the devices for which they are intended?
Partners & Affiliates
advertisement
advertisement
Average Rating: 4.8/5 | Rate this item | 4 users have rated this item.
 Print Print
 
Deploy Your J2ME Application on a Sprint Phone
Web server configuration and caching problems are just two of the obstacles you'll need to overcome when you deploy Java applications on cell phones. This article provides the workarounds and solutions you'll need to overcome these bumps. 

advertisement
recently tested one of my J2ME MIDlet applications on a Sprint Vision handset. Once on the handset, the application ran great and I needed to make only a few changes to the code, but I ran into a few snags before I could even get my MIDlet onto the device.


In this article, I detail some of the bumps I ran into, including Web server configuration and caching problems, and I explain the solutions I used to overcome them. I also discuss Over The Air (OTA) Provisioning on the Sprint PCS network and the Java Application Descriptor's contribution to the provisioning process—this little file can provide useful additions for your application that will enhance the user's experience.

I use simple, readily available tools for development and deployment, so you can take these techniques and apply them to your own development, testing, and deployment processes. Although most of the techniques and advice I provide were applied on a Sprint Vision handset, the majority should be applicable to other J2ME-enabled devices.

MIDlets and MIDlet Suites
MIDP is a version of the java platform that is aimed at small footprint devices like cellular handsets. Java applications that run on MIDP devices are called MIDlets, and a MIDlet suite is a grouping of MIDlets that can share resources at runtime. A suite is actually comprised of two separate files:

  • The Java Application Descriptor (JAD)—This file tells the Application Management Software (AMS), the piece of software on the hardware responsible for managing J2ME applications, how to handle your application, including installation, identification, and retrieval.
  • The Java Archive (JAR)—This file is a collection of your application's compiled byte classes, resources, and manifest file.
  • I concentrate on the JAD because this little jewel enables you to do all sorts of cool things. For example, you can:

  • Specify an information URL for your application
  • Tell the AMS to associate your application with specific media types or URIs (like HTTP or mailto)
  • Force your application to be downloaded and categorized into an appropriate folder, like Games or Fun Tools
  • Even have the phone notify you when an application is successfully installed
  • You can use development environments like KToolBar or Sun ONE Studio ME to automate the creation and maintenance of the JAD file. (If you use the KToolBar, you eventually have to modify the JAD file manually as some of the techniques in this article cannot be implemented through this tool).

    First, I'll demonstrate how to create a simple MIDlet that you can use for practice. This article includes a KToolBar project, which you can just download into the KToolBar "/apps" directory. This MIDlet will help you get your feet wet and figure out how to upload the application onto a phone before you try out any of the cooler features the JAD offers.

    Page 1 of 4


    advertisement
      Next Page: Uploading an App to the Handset
    Page 1: IntroductionPage 3: Caching Problems
    Page 2: Uploading an App to the HandsetPage 4: Fun Things with JAD
    advertisement
    Advertising Info  |   Member Services  |   Permissions  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About


    JupiterOnlineMedia

    internet.comearthweb.comDevx.commediabistro.comGraphics.com

    Search:

    Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

    Jupitermedia Corporate Info


    Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

    Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

    Solutions
    Whitepapers and eBooks
    Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
    Avaya Article: How to Feed Data into the Avaya Event Processor
    Microsoft Article: Install What You Need with Win Server ‘08
    HP eBook: Putting the Green into IT
    Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
    Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
    Avaya Article: Setting Up a SIP A/S Development Environment
    IBM Article: How Cool Is Your Data Center?
    Microsoft Article: Managing Virtual Machines with Microsoft System Center
    HP eBook: Storage Networking , Part 1
    Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
    MORE WHITEPAPERS, EBOOKS, AND ARTICLES
    Webcasts
    Intel Video: Are Multi-core Processors Here to Stay?
    On-Demand Webcast: Five Virtualization Trends to Watch
    HP Video: Page Cost Calculator
    Intel Video: APIs for Parallel Programming
    HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
    Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
    MORE WEBCASTS, PODCASTS, AND VIDEOS
    Downloads and eKits
    Sun Download: Solaris 8 Migration Assistant
    Sybase Download: SQL Anywhere Developer Edition
    Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
    Red Gate Download: SQL Compare Pro 6
    Iron Speed Designer Application Generator
    MORE DOWNLOADS, EKITS, AND FREE TRIALS
    Tutorials and Demos
    How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
    eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
    IBM Article: Collaborating in the High-Performance Workplace
    HP Demo: StorageWorks EVA4400
    Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
    Microsoft How-to Article: Get Going with Silverlight and Windows Live
    MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES