Whenever I create dialogs, I use onCreateDialog() and let the Activity handle creation... http://developer.android.com/reference/android/app/Activity.html#onCreateDialog%28int,%20android.os.Bundle%29
To display the dialog use showDialog()... http://developer.android.com/reference/android/app/Activity.html#showDialog%28int%29 This lets the activity handle creating your dialog (and caches it)... Then you can show it as many times as you want without a problem. On Mon, Feb 21, 2011 at 1:11 PM, Aaron Buckner <nagm...@gmail.com> wrote: > Ok, well those helped out to a point... they helped me narrow down the line > of code that is causing the problem... > > "alert.setView(input);" > > If I comment it out the dialog opens as much as I need it to, of course > that also prevents the user from being able to enter any input in... > > which is called initiated here: > final EditText input = new EditText(this); > > and called here: > String value = input.getText().toString(); > > All of which is shown in the original code block for full context, Is there > something I have to do in order to get the view to remove itself or recycle? > > -- > 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 > -- 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