Created
October 15, 2019 13:27
-
-
Save freken-droid/6967944969bbeee3dceca34a965a4b25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void saveFileToDownloads(byte[] data) { | |
File signfile = new File(Environment.getExternalStorageDirectory(), "signature.sig"); | |
if (signfile.exists()) { | |
signfile.delete(); | |
} | |
try { | |
FileOutputStream fos = new FileOutputStream(signfile.getPath()); | |
fos.write(data); | |
fos.close(); | |
} catch (java.io.IOException e) { | |
e.getMessage(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment