On Wed, Jan 25, 2012 at 1:41 AM, david wang <[email protected]> wrote: > I need to start a target activity at runtime, and disable some > buttons (such as "BACK" and "HOME" button) for it, these button are > enabled by default in the implementation of the target activity.
You cannot disable the HOME button. > Since the target activity is configurable, I don't know which > activity it is until runtime. And a requirement is that I can't change > the source code of all the potential target activities. > > The only way I can think of is changing the method behaviour of the > target activity when I know which target it is, such as onKeyDown() > and onAttachedToWindow(). Anybody knows how to do this change at > runtime? That is not possible. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in DC: http://marakana.com/training/android/ -- 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

