Can I save application data to a file during run time (via the midlet)?
There are at least two ways to store MIDlet's data to persistent storage.
The first one is to use RMS, the second one is to utilize JSR-75 (PDA optional packages).
Choosing the most suitable API depends on the goal you plan to achieve.
If you are looking for a mechanism to just keep data away from loosing between MIDlet's runs please use RMS.
RMS is a part of MIDP, therefore it presents on all platforms.
If you need to store data in particular format, you have to use JSR-75.
In this case please keep in mind what this is a optional JSR and it can absent on particular platform.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.