Код: Выделить всё
public static void setDisplaySurface(IBinder displayToken, Surface surface) {
try {
CLASS.getMethod("setDisplaySurface", IBinder.class, Surface.class).invoke(null, displayToken, surface);
} catch (Exception e) {
throw new AssertionError(e);
}
}
< /code>
Но он сообщает об исключении: < /p>
AndroidRuntime: java.lang.AssertionError: java.lang.reflect.InvocationTargetException
Подробнее здесь: https://stackoverflow.com/questions/794 ... n-not-work