1. Are you ready for the Galaxy S20? Here is everything we know so far!

Help with Exit button

Discussion in 'Android Apps & Games' started by bigmos, Feb 14, 2011.

  1. bigmos

    bigmos Lurker
    Thread Starter

    Below is sample code
    It force closes on exit any ideas?

    :thinking:
    public void exitbuttion ( View view )
    {
    if (view.getId() !=R.id.button3)
    return;
    finish();

    }
    }
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...