Android Question Content Chooser - Running waiting messages

Aviles

Member
Licensed User
Longtime User
Hello friends.

Please I need some help.
When I try to choose a picture using Content Chooser the choose_result event is (sometimes) not raised, and the log viewer display "sending message to waitin queue (OnActivityResult) running wainting messages (1)", I readed something about that the in some cases the event is raised before of activity_resume.

however, when I try to choose a second pic the event is reased correctly and the two pictures are showing well.

My question is how can I call or catch or get the waiting event? or how can I force to re-call the raised event?

Thanks.
 

Attachments

  • Example.zip
    186.1 KB · Views: 229

Erel

B4X founder
Staff member
Licensed User
Longtime User
The result will be lost if the process has been killed while it is in the background. The solution is to call Service.StartForeground before you call ContentChooser.Show.

You can use CallSub to call a method in the starter service and call Service.StartForeground there.

This will prevent the process from being killed.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…