turtlebody / android-media-picker Goto Github PK
View Code? Open in Web Editor NEWA simple and easy to use Media Picker android library. Choose any image, video or audio from your device
License: MIT License
A simple and easy to use Media Picker android library. Choose any image, video or audio from your device
License: MIT License
java.lang.IllegalStateException: it.getString(columnIndexFolderName) must not be null
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at com.greentoad.turtlebody.mediapicker.core.FileManager.fetchVideoFolders(FileManager.kt:107)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at com.greentoad.turtlebody.mediapicker.ui.component.folder.image_video.ImageVideoFolderFragment$fetchImageVideoFolders$bucketFetch$1.call(ImageVideoFolderFragment.kt:78)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at com.greentoad.turtlebody.mediapicker.ui.component.folder.image_video.ImageVideoFolderFragment$fetchImageVideoFolders$bucketFetch$1.call(ImageVideoFolderFragment.kt:26)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.Single.subscribe(Single.java:3603)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
2021-07-19 23:44:28.200 27537-27537/com.service.shadecube W/System.err: at java.lang.Thread.run(Thread.java:923)
I cloned this project and add in android studio.
But the output was:
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/
How can i solve this.
Hello admin.
App crash when choose video from folder download.
I fixed it. You can review link below.
https://github.com/coltoscosmin/FileUtils/blob/master/FileUtils.java
if (isDownloadsDocument(uri)) {
final String id = DocumentsContract.getDocumentId(uri);
if (id != null && id.startsWith("raw:")) {
return id.substring(4);
}
String[] contentUriPrefixesToTry = new String[]{
"content://downloads/public_downloads",
"content://downloads/my_downloads"
};
for (String contentUriPrefix : contentUriPrefixesToTry) {
Uri contentUri = ContentUris.withAppendedId(Uri.parse(contentUriPrefix), Long.valueOf(id));
try {
String path = getDataColumn(context, contentUri, null, null);
if (path != null) {
return path;
}
} catch (Exception e) {}
}
// path could not be retrieved using ContentResolver, therefore copy file to accessible cache using streams
String fileName = getFileName(context, uri);
File cacheDir = getDocumentCacheDir(context);
File file = generateFileName(fileName, cacheDir);
String destinationPath = null;
if (file != null) {
destinationPath = file.getAbsolutePath();
saveFileFromUri(context, uri, destinationPath);
}
return destinationPath;
}
You can only use this in fragment class, besides you dint consider people with flutter activity.
Attribute provider#androidx.core.content.FileProvider@authorities value=(my_package_name) from AndroidManifest.xml:41:13-60 is also present at AndroidManifest.xml:22:13-86 value=(my_package_name.greentoad.turtlebody.mediaprovider). Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml:39:9-47:20 to override. app main manifest (this file), line 40
Is it possible to get data: Intent array too?
I can't get the file from the provided Uri. I want the file to upload to the server
I have a problem with a superclass used in the library. Check my log
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath: class com.greentoad.turtlebody.mediapicker.MediaPicker.MediaPickerImpl, unresolved supertypes: org.jetbrains.anko.AnkoLogger class com.greentoad.turtlebody.mediapicker.MediaPicker.PickerFragment, unresolved supertypes: org.jetbrains.anko.AnkoLogger > Task :app:buildInfoGeneratorDebug | ย |
---|
Cannot access 'org.jetbrains.anko.AnkoLogger' which is a supertype of 'com.greentoad.turtlebody.mediapicker
MediaPicker.MediaPickerImpl'. Check your module classpath for missing or conflicting dependencies
on setConfig , setFileMissingListener , onResult , subscribe ...
how can we get all list of images & video in same .user can select both images & video
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.