the other application may not return a message. if it does, then you can use StartActivityForResult:
https://www.b4x.com/android/forum/threads/using-startactivityforresult-with-javaobject.40374/
follow the instructions. it works very well.
an event will be raised in the first activity when the other application answers.
if the other application does not return a message, then game over.
is it supposed to return a message? many apps can be launched with an
intent, but that doesn't mean you receive something back from them.