I think that what you're looking for is the "RhodesActivity"
RhodesActivity ra = RhodesActivity.safeGetInstance();
You can use the old barcode extension as a starting point for your extension:
That seemed to do the trick! I haven't been able to test it on an actual device yet, but the app will now build without error. Thank you very much!