Monday, 15 March 2010

java me - J2ME - Read directly from RecordStores or store records in a Vector as they're added and retrieve them from that vector later -



java me - J2ME - Read directly from RecordStores or store records in a Vector as they're added and retrieve them from that vector later -

how work info contained in recordstore:

do "query" straight recordstore when have perform operations on records (searching, sorting,etc) or do "cache" records in vector or array query vector or array later, instead of recordstore?

personally, next sec approach until yesterday when got a nasty exception, reminding me memory luxury should careful when developing j2me apps :s taking memory in consideration, i'm not sure keeping arrays such idea. in case, hear opinions guys.after all, you've got more experience.

thanks time.

that depends on number of records , size of each record.

if have had oome vector approach, seek work single register @ time.

if construction record can fast searches on it. string searches slower.

keep in mind that, although rms has no fixed max size, advisable phone call recordstore.getsizeavailable give thought of how much info can store in given device.

here have tutorial on rms: http://www.ibm.com/developerworks/library/j-j2me3/

vector java-me rms

No comments:

Post a Comment