For permanent storage, store your data in sdCard. however, keep in mind that, even this data can be manually deleted by the user by accessing sd card. You may want to look at Storage options in android. Here you will find how to read and write in sdcard. Also, you will need to enter following permission in you manifest file:
android.permission.WRITE_EXTERNAL_STORAGE
For writing in sd-card, you may want to check this question or try:
public void onClick(View v) {
// write on SD card file data in the text box
try {
File myFile = new File("/sdcard/MyPackageName/permanent.txt");
myFile.createNewFile();
FileOutputStream fOut = new FileOutputStream(myFile);
OutputStreamWriter myOutWriter = new OutputStreamWriter(fOut);
myOutWriter.append(write_text.getText());
myOutWriter.close();
fOut.close();
Toast.makeText(getBaseContext(),
"Done writing SD 'mysdfile.txt'",
Toast.LENGTH_SHORT).show();
} catch (Exception e) {
Toast.makeText(getBaseContext(), e.getMessage(),
Toast.LENGTH_SHORT).show();
}
}// onClick
}); // btnWriteSDFile