It was a typo, I actually pass the right parameter.

Il domenica 5 ottobre 2014, TreKing <[email protected]> ha scritto:

>
> On Tue, Sep 30, 2014 at 5:21 AM, pedr0 <[email protected]
> <javascript:_e(%7B%7D,'cvml','[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]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> To unsubscribe from this group, send email to
> [email protected]
> <javascript:_e(%7B%7D,'cvml','android-developers%[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 a topic in the
> Google Groups "Android Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/android-developers/WZLZ-bxTR6w/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected]
> <javascript:_e(%7B%7D,'cvml','android-developers%[email protected]');>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.

Reply via email to