Re: [android-porting] pressing home button to launch the web browser

2010-01-24 Thread Jun Sun
Big thanks for pointing to this useful debugging feature (adb logcat). I have fixed the problem. As I suspected, the context is a system service, which is not suitable to start an intent activity. And the error message actually gives a clue on the fix, which is to add FLAG_ACTIVITY_NEW_TASK flag.

[android-porting] pressing home button to launch the web browser

2010-01-22 Thread Jun Sun
My goal is to launch web browser when I press the HOME key *when* phone is already at home page. Since this is hard (for me anyway), my first shot is to modify the HOME key long-press behavior so that it will launch the web browser. Thanks to Fei Zhang, who has correctly pointed me to the

Re: [android-porting] pressing home button to launch the web browser

2010-01-22 Thread Dianne Hackborn
Well what is the stack crawl when it crashes? On Fri, Jan 22, 2010 at 3:27 PM, Jun Sun monkey.j...@gmail.com wrote: My goal is to launch web browser when I press the HOME key *when* phone is already at home page. Since this is hard (for me anyway), my first shot is to modify the HOME key

Re: [android-porting] pressing home button to launch the web browser

2010-01-22 Thread Jun Sun
How can I find out the stack? Is it dumped somewhere in the file system? One thing I have been suspecting is that the mContext of PhoneWindowManager may not be a normal app content to launch an activity, but I am sure someone else should know better ... :) Cheers. jun Dianne Hackborn