I am new to Android development using eclipse, although not new to software development in general.
I would like to use a Java Map to hold string key-value pairs and read and write this map to an editable text file in the application’s default directory. I have been searching all over, found pieces, but have trouble putting it all together.
I think there are basically 2 parts to this task:
1) Create a string, string Map with key-value pairs in my program – okay this is pretty easy.
2) Read and write the Map to an editable text file in the Android application’s default directory. This should be easy, but I have not found a solution anywhere. I would think there would be a map.readAsText function and map.writeAsText function somewhere. I think this is basically what I need.
Can someone help me out – point me in the right direction?
Thank you very much.
The Java
Propertiesclass is a serializable Map with a simple, human-editor-friendly format (see the Java Tutorial: Properties. For example: