1

Android AlertDialog with custom view: get input data

view story
linux-howto

http://stackoverflow.com – I have an application with an AlertDialog that shows a single EditText. I followed the Android developers guide to do it, but I can't find how to get the data entered by the user. The custom layout only has an EditText: <EditText android:id="@+id/license_value" android:inputType="text" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="@string/license" /> I'm using a DialogFragment to create the dialog. To get the data back when the user clicks the ok button I'm using an interface. public class EditLicenseDialogFragment extends (HowTos)