File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
android/src/main/java/com/rssignaturecapture Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1919import android .content .Context ;
2020import android .graphics .Bitmap ;
2121import android .graphics .Color ;
22- import android .os .Environment ;
2322import android .view .View ;
2423import android .view .View .OnClickListener ;
2524import android .widget .Button ;
@@ -138,11 +137,8 @@ else if (tag.equalsIgnoreCase("Reset")) {
138137 * save the signature to an sd card directory
139138 */
140139 final void saveImage () {
141-
142- String root = Environment .getExternalStorageDirectory ().toString ();
143-
144140 // the directory where the signature will be saved
145- File myDir = new File ( root + "/saved_signature" );
141+ File myDir = getContext (). getExternalFilesDir ( "/saved_signature" );
146142
147143 // make the directory if it does not exist yet
148144 if (!myDir .exists ()) {
You can’t perform that action at this time.
0 commit comments