thanks for the suggestions mark but my app is way to complicated to
keep all of my logic in one activity which is why I have it separated
into separate activities with the tabs.  It was also an additional
requirement of my client to have some of the activities I made
separate like that so they can reuse them in other apps. All I really
want to intercept is the menu button, I just through an example of
Home not working because I put a Toast in onKeyDown to see what
buttons would fire it off and search was the only one.  Any idea on
how I can keep the tabs as activities and also intercept the menu
button?

On Jun 20, 6:06 am, Mark Murphy <[email protected]> wrote:
> On Sun, Jun 20, 2010 at 3:02 AM, schwiz <[email protected]> wrote:
> > Hello all I am trying to override the behavior of a TabActivity that
> > has other Activities as children.  I have made all of the children
> > activities return false in onKeyDown so that the key will propagate
> > through to the parent.  However, this is not the case.  The only key
> > that is being recognized is the search key.  Back, menu, and home are
> > not being overridden.  Please help!!!!
>
> Here is what I would do:
>
> Step #1: Get rid of the "other activities as children", replacing them
> with Views as your tabs
>
> Step #2: Ignore HOME, since you cannot intercept that in any activity,
> let alone one hosting tabs
>
> Step #3: In your one remaining activity, implement onKeyDown()
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.1
> Available!

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