Android Question Photo Selector Problem

abhishek007p

Active Member
Licensed User
Longtime User
My app requires a photo to be selected for image manipulation. For which I am using this code below.
B4X:
Try
   Dim cc As ContentChooser
   cc.Initialize("cc")
   cc.Show("image/*","Choose image")       
Catch
   ToastMessageShow(LastException.Message, False)
End Try

But a lot of users are reporting that when they click on the button, nothing happens and they are returned back to the main activity. My team member says its because of low memory on devices but I have seen the devices with even 2-3gb ram reporting the same error.

I never had his error on my device. and my team member says the error doesnt trap using try catch.

anyone else also had the same?

Regards,
abhishek
 
Last edited:

ilan

Expert
Licensed User
Longtime User
My app requires a photo to be selected for image manipulation. For which I am using this code below.
B4X:
Try
    Dim cc As ContentChooser
    cc.Initialize("cc")
Catch
    ToastMessageShow(LastException.Message, False)
End Try

But a lot of users are reporting that when they click on the button, nothing happens and they are returned back to the main activity. My team member says its because of low memory on devices but I have seen the devices with even 2-3gb ram reporting the same error.

I never had his error on my device. and my team member says the error doesnt trap using try catch.

anyone else also had the same?

Regards,
abhishek

the code above alone only intialize the ContentChooser.
dont you call then:

B4X:
cc.show("image/*", "Choose image")
 
Upvote 0
Top