Group Group Group Group Group Group Group Group Group

Chapter 18: PhotoOptionDialogFragment 3 Errors

#1

The book code, as is, produces 3 compiler errors (hence app cannot run).

(this.context) twice
return AlertDialog.Builder(activity)
images below. Please advise the new correct code to proceed. Thanks.

#2

The following code changes work, but I am not sure about using !! Grateful for confirmation or advice on proper syntax.

#3

@tblank Can you please help with this when you get a chance? Thank you - much appreciated! :]