×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jan 2010
    Posts
    52

    Data Connectivity with J2ME

    Hey guys,

    I'm developing a J2ME MIDlet for a Nokia S40 device.
    I have a PC server which is running a db engine that contains records of people (name, birthday, id number, height, weight and gender).
    The phone stores these records as Person objects in its RMS. I'm looking for a way to be able to sync the local phone database remotely from the server - I need the phone to get an update of all the records the server had when the MIDlet starts and when it closes I need the MIDlet to send all the updates that were made to the server.
    I developed a class which connects, sends and received data over TCP/IP. My MIDlet is signed and I have my server side running.
    In what way do you recommend me to to these updates in terms of communication protocols? Is there a way to serialize + compress data and then getting the byte array of the result? In that way I can just send and receive the data from the server and decompress + deserialize - unless you can think of a better way.


    Thanks!!

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Data Connectivity with J2ME

    Hello

    I need the phone to get an update of all the records the server had when the MIDlet starts and when it closes I need the MIDlet to send all the updates that were made to the server.
    At the time of the starting of the application you can hit the server and can fetch the data from the server and let the client use the same.As soon as user does some updations to the data and wanna close the app, at the same time you can send the updated contacts/data to the server and not the complete data.

    You can use the WEB Service API in order to read/write the data from/to the server.I hope this make some sense to you.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. getting data from web in j2me midlet
    By Arunesh in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-11-30, 09:03
  2. How to read data thru InfraRed using J2ME Application
    By huzefap in forum General Development Questions
    Replies: 2
    Last Post: 2009-10-13, 13:56
  3. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  4. Java J2me Connectivity via blutooth
    By riyazalone in forum Bluetooth Technology
    Replies: 5
    Last Post: 2007-03-06, 19:41
  5. ending a Data call from J2ME
    By bjdw in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-22, 15:49

Posting Permissions

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