Android Question CallSubDelayed2

Andreas_D99

Member
Licensed User
Hi @ll,

I use CallSubDelayed2 to put some Data from Activity2 (active Activity) back to Activity1. But after Activity1 will be shown and Activity2 is set to back. Is it possible to let Activity2 in the foreground ??

Best Regards... :)
 

KMatle

Expert
Licensed User
Longtime User
Activities are ment to show the UI for the user. So if you call a sub in an activity it will always be started and the calling is paused.

I assume you don't really need to show something (e.g. updated data in a view) so just use a service and put the sub in it. Use process_globals variables to exchange data between modules/activities.
 
Upvote 0

Andreas_D99

Member
Licensed User
...so i make a Mistake. I want to show the Data in the Activity1, but only, when Activity2 is closed by User.
For example: Each Time, when a User select a Line in a ListView in Activity2, the Value should be add in a ListView in Activity1, without opening Activity1. How is this possible?
 
Upvote 0
Top