I\'m having trouble getting an AlertDialog to pass text back to the activity that calls it. It seems the issue is that it fails to find the proper EditText when calling fin
Your inflating a layout and you have this builder.setView(modifyView);
So to initialize edittext replace
final EditText editText = (EditText)getActivity().findViewById(R.id.modificationText);
by
final EditText editText = (EditText) modifyViewfindViewById(R.id.modificationText);
findViewById looks for a view with id provided in the current inflated layout. You don't need getActivity instead use theinflated view object to initialize your EditText.
public final Activity getActivity ()
Added in API level 11
Return the Activity this fragment is currently associated with.