I have an activity MyActivity that extends from MapActivity. In the .xml file containing the layout I can only include the MapView
try:
Activity parentActivity = this.getParent(); if (parentActivity != null) { View landmarkEditNameView = (EditText) parentActivity.findViewById(R.id. landmark_name_dialog_edit); }