Skip to content
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

Multiselect file - crash #4

Open
kalkub opened this issue Jan 8, 2019 · 0 comments
Open

Multiselect file - crash #4

kalkub opened this issue Jan 8, 2019 · 0 comments

Comments

@kalkub
Copy link

kalkub commented Jan 8, 2019

Hello,

Hey, i have problem with multiselect mode, after select more like 1 file and click on open, application crash down.

Here is crash report:

java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:318) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354) at java.util.concurrent.FutureTask.setException(FutureTask.java:223) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:762) Caused by: java.io.FileNotFoundException: /data/user/0/XXX.XXXX.XXX/files/picked/current (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:146) at java.io.FileInputStream.<init>(FileInputStream.java:99) at android.content.ContentResolver.openInputStream(ContentResolver.java:706) at org.shagi.filepicker.SaveFileAsyncTask.scaleDown(SaveFileAsyncTask.kt:161) at org.shagi.filepicker.SaveFileAsyncTask.savePhoto(SaveFileAsyncTask.kt:86) at org.shagi.filepicker.SaveFileAsyncTask.saveToFile(SaveFileAsyncTask.kt:72) at org.shagi.filepicker.SaveFileAsyncTask.doInBackground(SaveFileAsyncTask.kt:46) at org.shagi.filepicker.SaveFileAsyncTask.doInBackground(SaveFileAsyncTask.kt:13) at android.os.AsyncTask$2.call(AsyncTask.java:304)

Here is implementation:

FilePickerFragment.getFragment(baseActivity.supportFragmentManager, false).apply { use(FilePickerDialog.newInstance().apply { multipleSelect = true }) setOnLoadingListener(object : FilePicker.OnLoadingListener { override fun onLoadingFailure(key: Long, throwable: Throwable) { } override fun onLoadingStart(key: Long) { } override fun onLoadingSuccess(key: Long, file: ExtFile) { Log.v("kalkub", "KEY: $key - ${file.mimeType}") } }) show() }

@kalkub kalkub changed the title Multipleselect crash Multiselect file - crash Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant