i'm sorry, but what you're saying makes no sense to me. if you comment out the "offending code"
- presumably, the part that generates the Activity.ScreenCaptureCallback not found error - the remaining
code could not possibly compile since it refers (twice) to a variable that has been commented out (and,
therefore, cannot be found). without the callback, nothing works.
in any case, your example compiles and runs for me. see attached. i've also attached an image of
what happens if you comment out the code which causes the compile error.