I am looking to develop an application for the G1 which will trigger an Activity when the phone is opened or closed. How can I get notification when the phone is opened to reveal the keyboard?
As an aside I also want to be able to set the screen orientation. I can do this for my Activity using setRequestedOrientation, but I want to control this system wide... ie. as if somebody has slid open the keyboard but I want to control it in my application. Possible at all?
I've been digging around the source code and can't find any leads. Would appreciate any help.
cheers