1. Possibly there are ways to find the activity behind the current
one.
Precondition: All activity are fullscreen.
If your activity is the root activity, then Home is in behind.
Otherwise find the previous activity in the task stack.
2. You could send the touch event to other activity, but it's useless
I think.
The Android Window Mananger can only handle UI events for one view
hirarchy at one time.
May you send the event to the other activity, but no one can handle
it.

BRs
Guobin

On Feb 8, 12: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
>
>

-- 
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

Reply via email to