MainActivity updated
Rectified my STUPID mistake of instantiating the patchDetector object before the camera view comes up :P