|JoelParker ||03-06-2009 03:33 PM |
Persisting a vector over device resets
I am new to the J2ME concept of presistable objects. I am trying to persist a vector of strings over device power cycles but am not sure the best way to go about it. I have read that you can implement the persistable interface or use a class that already does this. For instance, BigVector looks like it might meet my needs. However, how do you commit and retrieve the vector to and from the persistant store it looked like it had a normal constructor not a getInstance method. I am really confused, could some one help me out, I am sure this is pretty easy, once you know what you are doing. Again I just want to persist a vector of strings, whats the best way to do this ?
|JoelParker ||03-08-2009 02:54 PM |
Thanks for the pointer. As a follow on, I am writing a system module so where is a good place to commit ?
|hrbuckley ||03-11-2009 06:52 AM |
I usually commit when ever any data stored there has changed, and I'm about to return control to the event queue.
|All times are GMT -5. The time now is 02:44 PM. || |
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.