We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 730d984 commit 4a9246dCopy full SHA for 4a9246d
app/src/main/java/openscience/crowdsource/video/experiments/MainActivity.java
@@ -16,6 +16,7 @@
16
17
package openscience.crowdsource.video.experiments;
18
19
+import android.Manifest;
20
import android.app.AlertDialog;
21
import android.content.DialogInterface;
22
import android.content.Intent;
@@ -245,6 +246,12 @@ public void onClick(View v) {
245
246
}
247
});
248
249
+ if (Build.VERSION.SDK_INT>Build.VERSION_CODES.LOLLIPOP_MR1) {
250
+ String[] perms = { Manifest.permission.READ_EXTERNAL_STORAGE,
251
+ Manifest.permission.WRITE_EXTERNAL_STORAGE};
252
+ requestPermissions(perms, 200);
253
+ }
254
+
255
initConsole();
256
257
startStopCam = (Button) findViewById(R.id.btn_capture);
0 commit comments