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 <dahua007...@gmail.com> > 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 <beafd...@gmail.com> > > On Sep 19, 1:47 am, HaMMeReD <adamhamm...@gmail.com> 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 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