Is Intent Completed?

canalrun

Well-Known Member
Licensed User
Longtime User
Hello,
I have a scrollview populated with labels. Each label represents a txt file in a directory. If the person Long_Clicks on one of the labels (filenames), I open the file in the default editor using an Intent (Action_Edit).

I believe this is not modal – my subroutine continues on and exits after issuing the intent.

Is there a way to know when the person exits the editor opened from the Intent? I would like to refresh my list of files and some other information that could change as a result of editing.

Thanks,
Barry.
 

canalrun

Well-Known Member
Licensed User
Longtime User
You will have to do it in Activity_Resume, since when the user exits the editing app and returns back to your app, that is when you will know.

Thanks. Yikes!

I never thought of that! It makes sense.

When the editor opens because of my Intent, does my app go through Activity_Pause followed by Activity_Resume (when the editor closes)?

Barry.
 
Upvote 0
Top