[android]4.0 pad screen height


//
for 4.0 pad, height calculation of extremely large screen
// todo: fixed 3.0 3.1 3.2 support.
Class clazz = null;
try {
clazz = Class.forName("android.view.Display");
Method method = clazz.getMethod("getRawHeight");
if (method != null) {
return HandlerResponseUtil.buildResult((Integer) method.invoke(display));
}
} catch (Exception e) {
// ignored !!!
}
posted on 2012-03-29 14:10  leaving  阅读(320)  评论(0编辑  收藏  举报