I want to store simple configuration info with a android app.
I simply want to use FileWriter to do something like this:


boolean write_setup_data(String size,String loc_name, String
auto_login,String id){

    String fn;
    fn=new String("/my_setup");
    setup_err=false;



    FileWriter strm;
    try{
        strm=new FileWriter(fn);    // keep on trying to open files

        strm.write("\""+size+"\"\n"+
                        "\""+loc_name+"\"\n"+
                        "\""+auto_login+"\"\n"+
                        "\""+id+"\"\n");

        strm.close();
         }catch(IOException io){
                setup_error=new String("File "+fn+ " could not be
opened: "+io.getMessage());
                setup_err=true;
                }
        return setup_err;
}

But I get a read only filesystem error.  How does one write something
simple to the Android file system ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to