Skip to content

Commit c398488

Browse files
committed
example: Fix cannot create temp file
1 parent 0b63a17 commit c398488

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

example/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="net.ypresto.androidtranscoder.example" >
44

5+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
6+
57
<application
68
android:allowBackup="true"
79
android:icon="@drawable/ic_launcher"

example/src/main/java/net/ypresto/androidtranscoder/example/TranscoderActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {
4848
try {
4949
file = File.createTempFile("transcode_test", ".mp4", getExternalFilesDir(null));
5050
} catch (IOException e) {
51+
Log.e(TAG, "Failed to create temporary file.", e);
5152
Toast.makeText(this, "Failed to create temporary file.", Toast.LENGTH_LONG).show();
5253
return;
5354
}

0 commit comments

Comments
 (0)