added deleted tempfile setup

This commit is contained in:
Lorin Beer 2012-06-28 16:17:00 -07:00
parent 762854ad7a
commit 3ea72e5d21

View File

@ -96,6 +96,13 @@ public class AudioPlayer implements OnCompletionListener, OnPreparedListener, On
this.handler = handler;
this.id = id;
this.audioFile = file;
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
this.tempFile = Environment.getExternalStorageDirectory().getAbsolutePath() + "/tmprecording.mp3";
} else {
this.tempFile = "/data/data/" + handler.ctx.getActivity().getPackageName() + "/cache/tmprecording.mp3";
}
}
/**