Since the intent returns to
Activity_Resume you can set flags before you start the intent...
... and dispatch them after the intent is finished
In the Select-case structure you can now react specifically to the action that was performed, e.g. Toastmessage(..Val1 & " sent") .