No content provider

yttrium

Active Member
Licensed User
Longtime User
When I use the ContentChooser to pick an image, if the user hits the back button when in their selected app, or taps away when picking, they get the following error message:
B4X:
An error has occurred in sub: main_cc_result (java line: 361)
java.io.FileNotfoundException: No content provider:
Continue?

If they hit "yes", then nothing happens, and this is what should happen. If they hit "no", then the app terminates. If they try to leave the application with this error up, the entire process crashes ("Unfortunately, the process com.whatever.whatever has stopped").

I already tried a Try...Catch...End Try statement to get around this but it doesn't work. What else could I do?
 

thedesolatesoul

Expert
Licensed User
Longtime User
When I use the ContentChooser to pick an image, if the user hits the back button when in their selected app, or taps away when picking, they get the following error message:
B4X:
An error has occurred in sub: main_cc_result (java line: 361)
java.io.FileNotfoundException: No content provider:
Continue?

If they hit "yes", then nothing happens, and this is what should happen. If they hit "no", then the app terminates. If they try to leave the application with this error up, the entire process crashes ("Unfortunately, the process com.whatever.whatever has stopped").

I already tried a Try...Catch...End Try statement to get around this but it doesn't work. What else could I do?

Did you try checking the 'Success' flag?
Basic4android - Phone
 
Upvote 0

yttrium

Active Member
Licensed User
Longtime User
Upvote 0
Top