mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
added deleted tempfile setup
This commit is contained in:
parent
762854ad7a
commit
3ea72e5d21
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user