On Wed, Nov 28, 2012 at 12:40 AM, shiva pendem <[email protected]>wrote:
> public void onClick(DialogInterface dialog, int id) {
> dialog.cancel();
> System.exit(RESULT_OK);
> }
>
1 - Do not use System.exit, just finish() the Activity.
2 - Your calls to dialog.cancel() are pointless as clicking the buttons on
the dialog will dismiss it anyway.
3 - This might be a matter of style, but if your "positive" action is to
Exit (i.e., the user is saying "yes"), that should be the positive button.
Conversely "not now" is "no" is the negative button.
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en