It is a conceptual problem which you are trying to solve with
controling an activity from another activity. The Android platform
tries to simplify UI development in a way that it defined a life cycle
for activities. If you try to control an activity from another
activity you change the current implemented approach. Which would add
also much more complexity. For example when would be a main activity
allowed to close another activity?

I think you should be able to change the logic of your program without
having the need to control another activity.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Aug 24, 10:27 pm, Ethan <[email protected]> wrote:
> I think I have the same question. we use startActivity() or
> startActivityForResult() to start Activity, but the two functions
> return void, how can I get something to control(e.g close) the started
> Activity from the original Activity ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to