Closed ruckus closed 9 years ago
Can replicate this in the simulator on a 4.4 device. With my sample size = 2 it appears to be any 4.4 device.
I downloaded the sample app from the Play Store and it works on my LG device which fails to work when integrated into my Activity - Activity#onError
called every time.
I took ImageChooserActivity
from the sample app and dropped it into my app as-is and yields the same issue - FileNotFoundException
.
I tried using 1.4.02
and same issue.
At this point I'm at a loss as to why the sample app works but when integrated into my app it does not. ImageChooserActivity
with no changes also fails. So its hard for me to see if I'm doing something wrong in my app.
That's strange. Do you have permission to WRITE_EXTERNAL_STORAGE for your application?
I do, along with READ_EXTERNAL_STORAGE
:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
FileNotFoundException: /storage/emulated/0/bimagechooser/1429031333305.jpg:
When initializing the class, do you specify a different folder name by any chance?
I've tried all variations. I first started with:
new ImageChooserManager(this, ChooserType.REQUEST_PICK_PICTURE);
I then tried
new ImageChooserManager(this, ChooserType.REQUEST_PICK_PICTURE, "myapp");
I see the ImageChooserActivity
uses:
imageChooserManager = new ImageChooserManager(this,
ChooserType.REQUEST_PICK_PICTURE, "myfolder", true);
I took the sources of com.kbeanie.imagechooser
and dropped them into my app, removed the gradle declaration for the library and the app works.
So essentially master
as of this moment is working.
Ok. I have been refactoring a bit on the dev branch, may be I broke something there.
Hope this is not an issue anymore. Please re-open in case you still have issues with this.
Library version: 1.4.3
Works great running on Galaxy Nexus 4.3
On a LG device running 4.4 when I choose an image from my local camera roll my
Activity#onError
is being called with reason:java.io.FileNotFoundException: /storage/emulated/0/bimagechooser/1429031333305.jpg: open failed: ENOENT (No such file or directory)
In my case I dont care about creating thumbnails, I've tried both:
and
Same issue.
Full logcat messages: