This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Back-up and sync of a Recordstore  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Back-up and sync of a Recordstore  " Watch "Back-up and sync of a Recordstore  " New topic
Author

Back-up and sync of a Recordstore

Delmiro Costa
Greenhorn

Joined: Jul 24, 2005
Posts: 8
Hello, all.
I have a Midlet running on a cellphone using RMS (the cellphone is a motorola V180) and I need to solve two problems:
1. How can I take a back-up of the information entered in the MIDP running on the cellphone ?
2. There is way of transfer (using USB for eg) that info to my desktop in a legible format, using J2ME?

Thanks to all in advance.
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hi,
I think what you can do is, write a MIDlet which reads the data from the RecordStore and write it to a file in the computer or to an HTML page using the javax.microedition.io package classes. Hope this is a good tip. Regards..


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Delmiro Costa
Greenhorn

Joined: Jul 24, 2005
Posts: 8
Ok, suppose that I write that midlet, but I have the other problem of how to transfer that file to my PC ? Do you have any example of how to do this from my Midlet ?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Well, I wouldn't say that the file is created on the Cell Phone. Basically, you would take the Text into a String and pass it to a Servlet, or through a Socket Connection.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Delmiro Costa
Greenhorn

Joined: Jul 24, 2005
Posts: 8
Ok, I get the idea, but do you have some eg code about it, about any of the 2 ways?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Back-up and sync of a Recordstore