Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2011

    Clean And Build J2me Application Using Java Web

    Hi Everyone

    I've made an application and given it users. I also gave a user specific text file (size 100Kb) which contains user work record. At the time of midlet launch, application read data from text file and store in its table.

    Problem: For everytime, for every new user i need to give him a application and text file which is time consuming and cumbersome.

    Proposed Solution: I want to make a JSP page where user enter its Mobile number and download the Text file loaded Jar File. i.e. from user input mobile number i can identify his text file then clean and build my project also at the time of compilation i can load his text file data into Application.

    User --> insert mobile number on jsp page --> Identify text file from mobile number --> Clean and Build J2me Project which read data from textfile --> Jar File Created and Download.

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2011

    Re: Clean And Build J2me Application Using Java Web

    Hi jayantbt,

    It is not common practice to create different installation files for each user. Web pages, programs and mobile apps can be user customized by using the exact same code. Also saving user data on a text file is not ideal. Have you considered storing your user data on a remote server database? You could access the database from the phone via an HTTP connection, authenticate the user and display relevant to the user information. This is more efficient as you only read and retrieve from the database a very small portion of the information needed rather than parsing an entire file that could potentially throw an Out of Memory Exception, on lower end devices.

    There are several ways to implement this model but the idea is that you have the J2ME application running on the mobile device that connects to a remote server over the web. The server should have a front end to communicate with the J2ME application over HTTP and a back end for storing user data, i.e. the database. The front end could be implemented as a servlet, php script etc.

    An example with j2me and php with apache server and mysql can be found here:

Similar Threads

  1. How to really clean a buit application in Qt Creator
    By beggar200 in forum [Archived] Qt SDKs and Tools
    Replies: 3
    Last Post: 2010-11-18, 13:59
  2. i want to build a java wap application for mobile device need help
    By bijaybd in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2010-05-06, 13:09
  3. Add application property using build.xml in J2ME polish
    By tharindufit in forum Mobile Java General
    Replies: 1
    Last Post: 2009-06-04, 08:23
  4. Cannot clean (and therefore build) large projects in Carbide.c++ Express
    By jas203 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2006-10-06, 09:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts