Java tutorial
//package com.java2s; //License from project: Open Source License import java.lang.reflect.Method; public class Main { public static Object invokeMethod(Method method, Object o, Object... args) { if (method == null) return null; try { return method.invoke(o, args); } catch (Throwable t) { // XposedBridge.log(t); } return null; } }