[android-developers] Re: How can I know when the home button has been pressed?

2011-06-09 Thread Andy Fung
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK) { onBackPressed(); return true; } if(keyCode == KeyEvent.KEYCODE_HOME) { onHomeKeyPre

[android-developers] Re: How do I remove the background of a image button?

2011-04-28 Thread Andy Fung
setBackground to null or on xml file Background="@null" On 4月26日, 下午5時02分, shyme wrote: > Dear : > >     I use a d circle image button. I had set the picture with no > backgrounf. But it will display a rectacle pricture with the white > color around the circle button. How can I remove the white