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 ??
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.
...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?
You cannot update a view in another Activity without shoeing it!
You need to save the data changes somewhere and update the ListView in Activity1 in Activity_Resume.