document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. private void saveList(ArrayList<String> list) {
  2.     String filename = "installedapplist.txt";
  3.         //Stores the object to internal storage at the filename above
  4.  
  5.         FileOutputStream fos = null;
  6.     ObjectOutputStream out = null;
  7.     try {
  8.         fos = openFileOutput(filename, Context.MODE_PRIVATE);
  9.         out = new ObjectOutputStream(fos);
  10.         out.writeObject(list);
  11.         out.close();
  12.         fos.close();
  13.        
  14.         Log.v("saveList", "Successful Save");
  15.     } catch (IOException ex) {
  16.         ex.printStackTrace();
  17.     }
  18. }
');