Tried to use bundle, but for some reason returns null
In the onCreate method of the first fragment of fmonday (which should receive data) wrote:
string1 = getArguments().getString("latitude"); From the AlertDFragment dialog I transfer the data:
Bundle bundle = new Bundle(); bundle.putString("latitude", string1); fmonday newfrag = new fmonday(); newfrag.setArguments(bundle); That is, when onDismiss(); must pass one string variable.
What's wrong? Or are there other outputs?