android-developers
[Arriba] [Todas las Listas]

[no subject]

To: android-developers@xxxxxxxxxxxxxxxx
Subject:
From: pedr0 <pulsarpietro@xxxxxxxxx>
Date: Tue, 30 Sep 2014 03:21:46 -0700 (PDT)
Delivery-date: Tue, 30 Sep 2014 06:22:37 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=YtnuGMAO39n5k+5Yzvu2vENXiPXgt8r2w0IkWLB00+4=; b=sCq80W2TayYfKug4VnIKGTc5Zca+1YxRFH/opDJdBy8y58EzwqSiBIXhxKbSkRGVhg IxqdcKe3OtxEZAFZ/U0AQQitubLGxclKaHWgjcCTsusZE26V8ffOUQ19pg17iQx6f7Rf ehYlIo14HdijDVivyzAJoUL02v/IYbCnKN41rDOIELNyW9/0zdQCrXPwZanUwgSd/Ny3 T6g6wXS9rKOkVQP5GsD57Grjqa1ZPmQmkyAFt+4u8jMPGfeYMfT4AglmIALGw0Tequ6M Bk/tsYqU6tynUtyTwZImXbgRBxDzGFeGQvR8vrHh3sm5IS/xX0fkqUedrL++/hjLm6up bzUQ==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=YtnuGMAO39n5k+5Yzvu2vENXiPXgt8r2w0IkWLB00+4=; b=jm0FdO+UbFBAQPChw2VQ4xbzqVr34xN1fUazATaFC/2XmbeVFFfDRhAzQQ05kjraSR 1OMDUYRC9HF4+TsWj7tuDO2HsSIKG2gSGxhKqv1YQdJRMoMXayZsO52Ng4gPfHbD43Se WNYXBoCfLBjW4vKaMLG8N2DXLSCotTUOZNSA10la9VhK44ZtNrumK0G48Bjlp66EMS3f sJyZ1zvVgi2aOBbYtIJ+8OnN48RJDs7l581UvEC9ISthsswFTNTaKE8iQzDd+w5jy2q6 amksds1mrGemh2BaBXyIvwAUi6SN6blRx03+RzrQ7UciW4GhSUlvcWgxigo+bs7y0FBY xs6g==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/android-developer>
List-help: <http://groups.google.com/support/>, <mailto:android-developers+help@googlegroups.com>
List-id: <android-developers.googlegroups.com>
List-post: <http://groups.google.com/group/android-developers/post>, <mailto:android-developers@googlegroups.com>
List-subscribe: <http://groups.google.com/group/android-developers/subscribe>, <mailto:android-developers+subscribe@googlegroups.com>
List-unsubscribe: <mailto:googlegroups-manage+364598216046+unsubscribe@googlegroups.com>, <http://groups.google.com/group/android-developers/subscribe>
Mailing-list: list android-developers@xxxxxxxxxxxxxxxx; contact android-developers+owners@xxxxxxxxxxxxxxxx
Reply-to: android-developers@xxxxxxxxxxxxxxxx
Sender: android-developers@xxxxxxxxxxxxxxxx
Hi all,

I am developing an activity which generate an AlertDialog and attach to it 
an onClickListener which calls the finish() method, I am experiencing a 
strange issue which 
result is a kind of  stalemate: pressing the *Ok* button finish() gets 
called and I can see the onDestroy() being called by the system using 
Log.cat().

The activity is the only one in the stack therefore the system quits from 
the app but when I start it again I can still see the AlertDialog (!) then 
if I  click 
in the *Ok* button again I will exit.

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); 


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
android-developers+unsubscribe@xxxxxxxxxxxxxxxx
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 android-developers+unsubscribe@xxxxxxxxxxxxxxxx.
For more options, visit https://groups.google.com/d/optout.
<Anterior por Tema] Tema Actual [Siguiente por Tema>