Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Environment;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
Expand Down Expand Up @@ -138,11 +137,8 @@ else if (tag.equalsIgnoreCase("Reset")) {
* save the signature to an sd card directory
*/
final void saveImage() {

String root = Environment.getExternalStorageDirectory().toString();

// the directory where the signature will be saved
File myDir = new File(root + "/saved_signature");
File myDir = getContext().getExternalFilesDir("/saved_signature");

// make the directory if it does not exist yet
if (!myDir.exists()) {
Expand Down