Untitled


SUBMITTED BY: Guest

DATE: Aug. 29, 2013, 7:11 p.m.

FORMAT: Text only

SIZE: 1.4 kB

HITS: 20481

  1. longClickAlert.setNegativeButton("Rename", new DialogInterface.OnClickListener() {
  2. @Override
  3. public void onClick(DialogInterface dialog, int which) {
  4. renameAlert.setMessage("New name:");
  5. renameAlert.setView(input);
  6. renameAlert.setPositiveButton("Enter", new DialogInterface.OnClickListener() {
  7. @Override
  8. public void onClick(DialogInterface dialog, int which) {
  9. renameLine(externalStoragePath + "/Android/data/com.whizzappseasyvoicenotepad/recorded files.txt", recordedFilesArray.get(toDelete), input.getText().toString());
  10. currentFilePath = externalStoragePath + File.separator + "/Android/data/com.whizzappseasyvoicenotepad/" + recordedFilesArray.get(toDelete) + ".mp3";
  11. renameFile(input.getText().toString());
  12. recordedFilesArray.set(toDelete, input.getText().toString());
  13. listAdapter.notifyDataSetChanged();
  14. dialog.dismiss();
  15. }
  16. });
  17. renameAlert.show();
  18. dialog.dismiss();
  19. }
  20. });

comments powered by Disqus