I think your problem is (was) caused by the fact that you use -1 as the index for the initially chosen item. Try using 0.. your last index.
On Thursday, 12 May 2011 13:11:35 UTC+3, ABS wrote: > > Hi > I am working on android app. but i stuck at one point when i > tried to add SingleChoiceItems to alert dialog the alert message gets > disapear.,i dont know why this happens here is my code snippet. > > > > //builder.setMessage(alertMessage).setCancelable(false); > > builder.setSingleChoiceItems(alertChoices , -1, > new > DialogInterface.OnClickListener() { > @Override > public void > onClick(DialogInterface dialog, int which) { > // TODO Auto-generated > method stub > > } > }); > > builder.setPositiveButton("Continue", > new > DialogInterface.OnClickListener() { > public void onClick(DialogInterface > dialog, > int id) { > dialogRunning = false; > dialog.cancel(); > } > }); > I want to add both message and singlechoiceitems to alert > dialog > > > > thanks in advance > > Regards -- 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@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en