Handle back key in android while loading a page in web view

view story

http://stackoverflow.com – i have a problem with this overriding method on key press. the problem is i got this error? i don't know where I need to put this method in my activity. This is my whole code: public class UgWeb extends Activity { ListView list_ugweb; WebView web; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.ugweb); list_ugweb = (ListView)findViewById(R.id.list_ugweb); @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent. (HowTos)