I am converting my Android application to use fragments. I used to have activity, which is now a fragment. Therefore, this code can no longer be used:
showDialog(CONFIRM_ID);
@Override
public Dialog onCreateDialog(int id) {
}
Inside the object, FragmentI need to display a confirmation dialog box, which, after confirmation, returns me an object to update the status.
eg.
- Inner fragment X.
- Show confirmation dialog.
- If yes updates the UI for X.
How can i do this? Please provide a working code example.
source
share