I have a code that will prompt user to send a message by selecting the desired application, how can I detect if the user actually have chose from the options or instead pressed Back?
I tried to check if the intent returned something, but is running asyncronous so cannot be tracked.
Also I have tried to run the intent with startActivityForResult
, what I noticed in onActivityResult that resultCode is always 0(RESULT_CANCELED
) even if user selected, or not from the chooser.