The activity that is no longer visible could have been destroyed by the OS. However, since your top-activity is (partially) translucent, this probably won't happen.
If you really need to communicate back to the activity in the background, there are various methods: 1. Use a static variable that holds the currently active 'background' activity. Whenever you start your new 'foreground' activity, set this static inside your 'background' activity and use it in your 'foreground' activity by calling one or more of its method. 2. Above won't work if your activities run in seperate process. If this is the case, then you could use a background Service to deal with the communication between the two activities. But, be very careful with either of these approaches. Check or be absolutely sure that this 'background' activity still exists... On Feb 7, 11:50 pm, sheng wang <banxia...@gmail.com> wrote: > Hi GuoBin, > > I understand what u mean below. I think that's the standard way the android > deal with the event. Event goes through a current path within the activity. > No event will go out of the current activity. > > As a surround way, is there any method that can let the current activity > find out who is behind him? so he might communicate with the one behind > it? > > Anyway, think you for taking your time to think the question. > > Shawn. > > 2010/2/8 Guobin <zzg...@gmail.com> > > > > > > 1. Whether the event can be send down to any thing behind the current > > > activity. > > No, you can't. > > On the Android platform, you define an Activity's UI using a hierarchy > > of View and ViewGroup nodes. > > Home & your activity are different activity, they have their own view > > hierarchy. > > Key events are always delivered to the View currently in focus. They > > are dispatched starting from the top of the View hierarchy, and then > > down, until they reach the appropriate destination. > > But not the view of other activity. > >http://developer.android.com/guide/topics/ui/ui-events.html > > > Guobin > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en