Вопрос по android – Как программно нажать кнопку назад в андроиде?

72

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded V.J.
Error: User Rate Limit Exceeded V.J.
Error: User Rate Limit Exceeded vinothp
Error: User Rate Limit Exceeded Tarun

Ваш Ответ

6   ответов
0

5

onBackPressed

Error: User Rate Limit Exceeded vinothp
Error: User Rate Limit Exceeded
1

112

onBackPressed()Error: User Rate Limit Exceeded

 @Override
        public boolean onKeyDown(int keyCode, KeyEvent event) {
            if ((keyCode == KeyEvent.KEYCODE_BACK)) {
                onBackPressed();
            }
    }

@Override
    public void onBackPressed() {
        //this is only needed if you have specific things
        //that you want to do when the user presses the back button.
        /* your specific things...*/
        super.onBackPressed();   
    }
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded vinothp
Error: User Rate Limit Exceededandroid-developers.blogspot.co.uk/2009/12/…
Error: User Rate Limit Exceeded
37

Error: User Rate Limit ExceededonBackPressed()Error: User Rate Limit ExceededonBackPressed()Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededfinish()Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededfinish()Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded vinothp
8

Error: User Rate Limit Exceeded

Похожие вопросы