In my usecase, i am showing a TextView which when clicked pops up a Calendar. When the date is selected the calender view is closed and the TextView is populated with the selected date.
After a few experiments - i used a DialogFragment
which pops up and closes as the date is selected. So far it is looking good.
The challenge is that i need to update the TextView in the parent activity with the date selected.
Based on my knowledge using LocalBroadcastManager
is one of the method, but is there something simpler? e.g. Activity getting the value directly from the DialogFragment or something on lines of startActivityWithResult?
Please suggest