I\'m very new to android and I\'m following this example.
The code says we need to do these steps to get an dialog box:
AlertDialog.Builder builder =
Update android API level 23.
Use getContext() instead of getActivity().
getContext()
getActivity()