Answer my own above question, it is impossible. Because there is no hotkey mechanism in android. Maybe need to research android source code to find solution. Have anyone any suggestion?
2010/9/20 San Zhang <[email protected]> > Thank you all for answer. > > If there is no system level API, may I control top activity from my > service? for example, AnyTopActivity.setRequestedOrientation(). > > 2010/9/20 Doug <[email protected]> > > On Sep 19, 1:47 am, HaMMeReD <[email protected]> wrote: >> > Maybe you can switch between landscape and portrait by modifying the >> > activity since it's exposed in the xml it is probably exposed in the >> > api too. >> >> Activity.setRequestedOrientation() >> >> -- >> 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]<android-developers%[email protected]> >> 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 [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

