Hi,
An annoying little problem...
I launch ActivityViewController with code like:
which works fine - in normal circumstances.
In some circumstances the bitmap is too large to be shared to the nominated sharing app and as a result UI_activityviewcontroller completes with wrk_success = False
BUT
the ActivityViewController view doesn't go away - it sits waiting for the user to tap an alternate share app or to tap its exit (X) button.
When it fails I want to be able to dialog the user with the option of reducing the bitmap and retrying - how can I programmatically make the ActivityViewController view go "poof".
Thanks for any help...
An annoying little problem...
I launch ActivityViewController with code like:
B4X:
'Start share, see:
'https://www.b4x.com/android/forum/threads/get-details-of-the-apps-my-app-shares-files-with.128687/
UI_activityviewcontroller.Initialize("Event_UI_activityviewcontroller", Array(wrk_bmp))
'Wait for share to complete
UI_activityviewcontroller.Show(Showlist_page, Null)
Wait For Event_UI_activityviewcontroller_Complete(wrk_success As Boolean, wrk_activitytype As String)
In some circumstances the bitmap is too large to be shared to the nominated sharing app and as a result UI_activityviewcontroller completes with wrk_success = False
BUT
the ActivityViewController view doesn't go away - it sits waiting for the user to tap an alternate share app or to tap its exit (X) button.
When it fails I want to be able to dialog the user with the option of reducing the bitmap and retrying - how can I programmatically make the ActivityViewController view go "poof".
Thanks for any help...