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 19
19
import android .content .Context ;
20
20
import android .graphics .Bitmap ;
21
21
import android .graphics .Color ;
22
- import android .os .Environment ;
23
22
import android .view .View ;
24
23
import android .view .View .OnClickListener ;
25
24
import android .widget .Button ;
@@ -138,11 +137,8 @@ else if (tag.equalsIgnoreCase("Reset")) {
138
137
* save the signature to an sd card directory
139
138
*/
140
139
final void saveImage () {
141
-
142
- String root = Environment .getExternalStorageDirectory ().toString ();
143
-
144
140
// the directory where the signature will be saved
145
- File myDir = new File ( root + "/saved_signature" );
141
+ File myDir = getContext (). getExternalFilesDir ( "/saved_signature" );
146
142
147
143
// make the directory if it does not exist yet
148
144
if (!myDir .exists ()) {
You can’t perform that action at this time.
0 commit comments