aspose file tools
The moose likes Java Micro Edition and the fly likes How can I backup record stores for my midlet on phones? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "How can I backup record stores for my midlet on phones?" Watch "How can I backup record stores for my midlet on phones?" New topic
Author

How can I backup record stores for my midlet on phones?

Sam lx
Greenhorn

Joined: Nov 05, 2004
Posts: 19
Hi,

I wonder how can I backup the record stores of my midlet,
how can I take a backup of files of the record stores,
I mean on the mobile phone. For example Motorola's mobile phones.

Many thanks!
Jason Fox
Ranch Hand

Joined: Jan 22, 2004
Posts: 114
One solution I've used is to add a way for your midlet suite to read out the contents of the RMS to a listening connection. I used a CommConnection to write the data to a device listening on the serial port, but using an HttpConnection to record the data on a server would work just as well. Unfortanately, this will only back up the indiviual midlet suite's RMS records. I hope this helps.
Sam lx
Greenhorn

Joined: Nov 05, 2004
Posts: 19
Thanks a lot my friend,

I noticed that for MIDP2.0, you can access another midp suite's
record store, is it possible, and how can I do this?

Best regards!
Tomas Conway
Ranch Hand

Joined: Nov 02, 2004
Posts: 45
It is possible to access a record store in another MIDP suite, but only if permission to share the record store was specified at the time of the record store's creation.

To create a RecordStore with permission to allow access from other MIDlet suites, use the four parameter version of 'openRecordStore' and specify 'Record.AUTHMODE_ANY' for the third parameter.

E.g.




To access such a record store from another MIDlet use the three parameter version of 'openRecordStore', and use the 'MIDlet-Vendor' and 'MIDlet-Name' attributes from the MIDlet's JAD [the JAD of the MIDlet whose record stores you are trying to access] as the second and third parameters.

E.g.

Sam lx
Greenhorn

Joined: Nov 05, 2004
Posts: 19
Thanks very much, there are so many experts here,
Great.
I will have a try!
 
I agree. Here's the link: jrebel
 
subject: How can I backup record stores for my midlet on phones?
 
Similar Threads
Run a midlet at the startup.
retrieve record store from a different Midlet
Malicious Midlet?
Record Management store issue
rms size