-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment.DIRECTORY_DOWNLOADS #2
Comments
function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello Developer,
I found an issue: the returned path of this line code shouldn't be true.
File file = new File(Environment.DIRECTORY_DOWNLOADS + "/allsafe_updater.apk");
should return this path
/Download/allsafe_updater.apk
and the download directory does not exist and can't even be created.
It should be written this way:
File file = new File("/sdcard/" + Environment.DIRECTORY_DOWNLOADS + "/allsafe_updater.apk");
Tested ..
The text was updated successfully, but these errors were encountered: