On Tue, Sep 30, 2014 at 5:21 AM, pedr0 <[email protected]> wrote:
> Any ideas ?
>
>
> AlertDialog.Builder builder = new AlertDialog.Builder(context);
>
>
> AlertDialog dialog = builder.create();
> DialogInterface.OnClickListener ok = new
> DialogInterface.OnClickListener()
> {
> @Override
> public void onClick(DialogInterface dialog, int which)
> {
> finish();
> }
> };
> dialog.setButton(Dialog.BUTTON_POSITIVE, "Ok", positiveBtnListener);
>
The fact that that you create a variable called "ok" but then pass
"positiveBtnListener" to the dialog, could be a factor...
-------------------------------------------------------------------------------------------------
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
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.