jeisfeld / augendiagnose Goto Github PK
View Code? Open in Web Editor NEWProject for Android development
License: GNU General Public License v2.0
Project for Android development
License: GNU General Public License v2.0
I need (only) the part of handling the files :
https://github.com/jeisfeld/Augendiagnose/blob/master/Augendiagnose/src/de/eisfeldj/augendiagnose/util/imagefile/FileUtil.java
And it seems useful. Please let me use this file...
Or make a repo that has the things that are ok to use.
Also, I'm curious: How did you get how to use the DocumentFile and the workarounds for Kitkat? Where did you read about it all?
getDocumentFile can return null, but you don't always check for it such as in delete:
public static boolean deleteFile(final File file) {
// First try the normal deletion.
if (file.delete()) {
return true;
}
// Try with Storage Access Framework.
if (SystemUtil.isAndroid5()) {
DocumentFile document = getDocumentFile(file, false, true);
return document.delete();
}
...
document can be null in this case. Applies to rmdir, mkdir, renameFolder, etc.
Thanks for this excellent utility. Really took some of the pain out of this conversion. 20 years of perfectly functional file management turned into a thousand lines in one update...thanks Google!
I haven't tested other specific versions of Marshmallow, or anything below that. Nougat and up works fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.