File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
app/src/main/java/openscience/crowdsource/video/experiments Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,14 @@ private RecognitionScenario getSelectedRecognitionScenario() {
222222
223223 @ Override
224224 protected void onCreate (Bundle savedInstanceState ) {
225+ if (Build .VERSION .SDK_INT >Build .VERSION_CODES .LOLLIPOP_MR1 ) {
226+ String [] perms = { Manifest .permission .READ_EXTERNAL_STORAGE ,
227+ Manifest .permission .WRITE_EXTERNAL_STORAGE };
228+ requestPermissions (perms , 200 );
229+ }
230+
225231 super .onCreate (savedInstanceState );
232+
226233 Thread .setDefaultUncaughtExceptionHandler (new ExceptionHandler (this ));
227234 setContentView (R .layout .activity_main );
228235 setTaskBarColored (this );
@@ -246,12 +253,6 @@ public void onClick(View v) {
246253 }
247254 });
248255
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-
255256 initConsole ();
256257
257258 startStopCam = (Button ) findViewById (R .id .btn_capture );
You can’t perform that action at this time.
0 commit comments