private void saveList(ArrayList<String> list) {
String filename = "installedapplist.txt";
//Stores the object to internal storage at the filename above
FileOutputStream fos = null;
ObjectOutputStream out = null;
try {
fos = openFileOutput(filename, Context.MODE_PRIVATE);
out = new ObjectOutputStream(fos);
out.writeObject(list);
out.close();
fos.close();
Log.v("saveList", "Successful Save");
} catch (IOException ex) {
ex.printStackTrace();
}
}