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...
Similar Threads - Help Exit button
  1. anesco
    Replies:
    7
    Views:
    230
  2. Faith Trick
    Replies:
    1
    Views:
    295
  3. Francesco10
    Replies:
    0
    Views:
    198
  4. puppykickr
    Replies:
    4
    Views:
    541
  5. Vladdelia012
    Replies:
    3
    Views:
    315
  6. Armczbt
    Replies:
    0
    Views:
    332
  7. Armczbt
    Replies:
    0
    Views:
    263
  8. Cheesecaketiny
    Replies:
    3
    Views:
    349
  9. walkwalk
    Replies:
    6
    Views:
    450
  10. melani78
    Replies:
    2
    Views:
    270

Share This Page

Loading...