¿Cuál es el mejor enfoque para almacenar la configuración en j2me?

I want to store the setting of my j2me application. When application starts, the setting will be loaded. Two ways I found are

  1. Tienda de discos
  2. Read and write in text files

What I think is,

Risk using Record Store if user delete RMS data then I will loose the settings. Text file can be stored in jar so user can't delete them.

Which is best approach from above two considering performance and above risk or is there better approach than above two?

[Appending]

Regarding RMS files

Suppose user access the mobile storage from computer then RMS files are visible. And regarding text files, if i store the txt file in apps resources, then it will be a part if jar file and user wont be able to access it. when application is uninstalled that file will also get deleted as it is part of jar. Considering this as well what will be best approach

preguntado el 24 de agosto de 12 a las 05:08

1 Respuestas

RMS is definitely the best solution.

No hay no way for a user to delete an app's RMS data unless you provide one.

Also, if the user uninstalls your app, the data will be deleted at the same time: this is a good thing.

Using text files is a bad idea because the user can access it and delete it at any time, and you have no way of deleting it when the user uninstalls.

Respondido 24 ago 12, 08:08

Thank you, but suppose user access the mobile storage from computer then RMS files are visible. And regarding text files, if i store the txt file in apps resources, then it will be a part if jar file and user wont be able to access it. when application is uninstalled that file will also get deleted as it is part of jar. Considering this as well what will be best approach - KB5

As I said earlier, you can't write to files in the jar. If it's so important that the user can't delete it then store it on the server. - funkybro

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.