Persistent storage:
MIDlets often need to store and retrieve information. We have seen in one of the examples above how data can be held in the resources folder and then accessed by the running MIDlet. However, sometimes the J2ME equivalent of local file space in J2SE is needed.
The MIDP specification provides for such storage space although how this is actually implemented is device dependent and is unlikely to be disk based. MIDP provides a package called the Record Management System. This contains a class called the RecordStore, which is a collection of persistent records. So device memory constraints allowing - a MIDlet is able to store information that is accessible to the MIDlet not only while it is running but also across invocations. The MIDlet is able to access the record store when it is next run. Earlier we mentioned that a MIDlet may be packaged with other MIDlets to form a suite. If one MIDlet in a suite creates a record store, then all of the MIDlets in that suite have access to the record store. However, MIDlets not part of that suite will not be able to access the record store. This is one of the few security features present within MIDP.
The RecordStore class has a number of static methods for managing a record store. These include methods for adding, deleting, retrieving and modifying records. There is also a listener, which is able to notify the system about changes to a record store.
A record is a byte array and so can hold a set of arbitrary data. The amount of memory available to a MIDlet is very much device dependent and can range from a few kilobytes to several megabytes.
Java Assignment Help - Java Homework Help
Struggling with java programming language? Are you not finding solution for your Persistent storage homework and assignments? Live Persistent storage experts are working for students by solving their doubts & questions during their course studies and training program. We at Expertsmind.com offer Persistent storage homework help, java assignment help and Persistent storage projects help anytime from anywhere for 24x7 hours. Computer science programming assignments help making life easy for students.
Why Expertsmind for assignment help
- Higher degree holder and experienced experts network
- Punctuality and responsibility of work
- Quality solution with 100% plagiarism free answers
- Time on Delivery
- Privacy of information and details
- Excellence in solving java programming language queries in excels and word format.
- Best tutoring assistance 24x7 hours