Comments (22)
The issue has been fixed in version 1.3.1. Please check it out.
from filepicker.
hey I am still seeing this issue in 1.3.1 it is a samsung galaxy j7 running android 6.0.1.
No name is being displayed
from filepicker.
Did you try clean rebuild?
from filepicker.
yes I tried I am due to show my app tomorrow can you give a fix??
from filepicker.
here is the config
intent.putExtra(
FilePickerActivity.CONFIGS, Configurations.Builder()
.setCheckPermission(true)
.setShowImages(false)
.setShowFiles(true)
.setShowVideos(false)
.setShowAudios(false)
.setSuffixes("pdf")
.enableImageCapture(false)
.setMaxSelection(1)
.setSkipZeroSizeFiles(true)
.build()
from filepicker.
can you reproduce the issue ??
from filepicker.
No, I couldn't reproduce the issue.
Can you log the result of files selected in onActivityResult
method, something like this
ArrayList<MediaFile> files = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES);
for(MediaFile f: files){
Log.d(TAG, "Name " + f.getName());
Log.d(TAG, "Path " + f.getPath());
Log.d(TAG, "Uri " + f.getUri());
}
from filepicker.
I am sorry that was my colleague's phone and I can use it only tomorrow but I remember that the name and path was coming correctly as I displayed the name on a textview and I used the path to upload it to a server. The only issue was that the names were not showing and could not see what file I was choosing
from filepicker.
Are you overriding any theme, may be it was issue with the theming.
from filepicker.
Nope I have a another device with resurrection remix 5.7.1 based on marshmallow and it is working properly there. Can it be an issue with Samsung devices?
from filepicker.
No, I couldn't reproduce the issue.
Can you log the result of files selected in
onActivityResult
method, something like thisArrayList<MediaFile> files = data.getParcelableArrayListExtra(FilePickerActivity.MEDIA_FILES); for(MediaFile f: files){ Log.d(TAG, "Name " + f.getName()); Log.d(TAG, "Path " + f.getPath()); Log.d(TAG, "Uri " + f.getUri()); }
My HTC 816 running resurrection remix 5.7.1 based on android 6.0.1 : Working properly
path /storage/emulated/0/Download/sample.pdf
name sample.pdf
uri content://media/external/file/37327
Samsung galaxy j7 with android 6.0.1: The file names in the UI are blank like the screenshots posted above
path /storage/emulated/0/annual_report_2009.pdf
name annual_report_2009.pdf
uri content://media/external/file/51946
Sorry for the late reply
from filepicker.
Thanks you,
So the file name is read properly, the issue seems to be in displaying them.
from filepicker.
Can you try out the following apk, select one of the pdf file and share the log using the menu.
https://drive.google.com/open?id=1UCxODyt4QC9xQejNNS0grpaVEKgJx3L-
from filepicker.
Thanks you,
So the file name is read properly, the issue seems to be in displaying them.
yes
from filepicker.
Can you try out the following apk, select one of the pdf file and share the log using the menu.
https://drive.google.com/open?id=1UCxODyt4QC9xQejNNS0grpaVEKgJx3L-
here it is
logcat.txt
from filepicker.
Thank you. The issue is with the MEDIA_TYPE not read properly.
Will fix it soon.
from filepicker.
ok . thank you for responding so well
from filepicker.
Welcome,
Can you check the following version works
com.github.jaiselrahman:FilePicker:issue_45-SNAPSHOT
from filepicker.
yes its working!! Thank you so much
Welcome,
Can you check the following version workscom.github.jaiselrahman:FilePicker:issue_45-SNAPSHOT
Yes, it is working now!! Thank you so much
from filepicker.
Version 1.3.2 released with the fix.
Thanks for your cooperation.
from filepicker.
welcome. Thank you for responding so quickly
from filepicker.
Not working for document upload(pdf) , path giving null
Log is Given Below
--------- beginning of system
06-02 19:47:54.369 18260 18260 E OplusCustomizeRestrictionManager: sInstance is null, start a new sInstance
--------- beginning of main
06-02 19:47:59.680 18260 18260 D FilePicker: Name : PatientReport1.pdf
06-02 19:47:59.680 18260 18260 D FilePicker: Path : null
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType : 0
06-02 19:47:59.680 18260 18260 D FilePicker: Mime : application/pdf
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType After double check : 0
06-02 19:47:59.680 18260 18260 D FilePicker: MediaType in mediastore : 0
from filepicker.
Related Issues (20)
- ArrayIndexOutOfBoundsException length=0; index=0 error on android 10 HOT 2
- setCheckPermission to true did not prompt dialog to getting permison HOT 5
- 没法加载存储卡上的文件
- HTML Files are not showing
- Change theme / style HOT 1
- Library causes ANR: Broadcast of Intent { act=android.intent.action.SCREEN_OFF flg=0x50200010 (has extras) }
- SQLiteException Exception
- Can not capture image or video in android 11 HOT 1
- [Bug] toast with "Permission not granted" is shown with pick images from gallery on device with android 10 HOT 3
- Unable to select document from one drive
- Os 11 issue HOT 2
- Not all file is showing for a custom extention HOT 1
- ANR because Class Configuration not found when unmarshalling
- Images not showing and folder showing black and image thumbnail blank
- ANR when opening FilePickerActivity with a large Data set HOT 2
- Unresolved reference
- This project may have stopped maintenance, you can look at my project: automatic application for storage permission, support Android 4.4 ~ 12, support Android/data directory access, support SD card https://github.com/molihuan/mlhfileselectorlib/blob/master/README_EN.md
- Android 13 storage permission issue HOT 3
- pick videos which has only 30 seconds duration
- public class "PickFile" not resolved for the version com.github.jaiselrahman:FilePicker:1.3.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filepicker.