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
java.io.FileNotFoundException #80
Comments
Does the file really exist?And do you really have permission to write file in that directory? Normally the log file should be in sdcard if sdcard exists |
It seems This exception doesn't cause crash, it's just printed in logcat, but when I run my app next time, I can't see it again. I just want to verify that does the log writing logic is correct :) And I haven't request for permission manually, so do I need request it by myself? |
@Piasy this problem is produced when the external storage is not available or not writable. For example, the external storage is unmounted and it is really exist in some devices.
There is another permission problem, the external storage is not writeable default except the app-specifical directory due to the dynamic permission mechanism since Android 6.0.
App-specifical directory usually locates in external storage /Android/data/{pacakage_name}, you can use A reference implementation for choice 2
|
Wow, cool, thanks @zjupure |
@initialjie @zjupure thanks, I adopt that the path should be provided entirely by user, the library itself should not do any magic to it. |
The text was updated successfully, but these errors were encountered: