Skip to content
Advertisement

Tag: dialogfragment

How to take text input with DialogFragment in Android?

I am trying to get a value that user enters into a Dialog, using the recommended DialogFragment class for it, the Dialog constructs and runs fine, but I cannot return the value of the EditText parameter to the parent class, without get a NullPointerException. My DialogHost class, this constructs, returns and links the parent to its buttons. This is my

Advertisement