Skip to content

Commit f44b6c8

Browse files
committed
creating the directory if it doesnt exist
1 parent c59b6a7 commit f44b6c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/src/com/androidmontreal/tododetector/ui/MainPortal.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public void onCreate(Bundle savedInstanceState) {
8787
mOutputDir = prefs.getString(
8888
PreferenceConstants.OUTPUT_IMAGE_DIRECTORY,
8989
"/sdcard/ToDos/");
90+
91+
new File(mOutputDir).mkdirs();
92+
93+
9094
mSampleId = prefs.getString(
9195
PreferenceConstants.PREFERENCE_WATER_SAMPLE_ID, "unkown");
9296
mExperimenterCode = prefs.getString(

0 commit comments

Comments
 (0)