android screenshot method

郦祺
2023-12-01
public void initialize(){


try {
method = Surface.class.getMethod("screenshot", int.class,
int.class);

} catch (Exception e) {
initialize2();
}

if(dm == null){


}
}


public void initialize2(){


try {
Class<?> c = Class.forName("android.view.SurfaceControl");
method = c.getMethod("screenshot", int.class,
int.class);

} catch (Exception e) {
Log.e(TAG, "exception call screenshot");
e.printStackTrace();
}

}
 类似资料:

相关阅读

相关文章

相关问答