Android API sample: Generic calls and MethodResult implementation