Back to project page FxCameraApp.
The source code is released under:
MIT License
If you think the Android project FxCameraApp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.af.experiments.FxCameraApp.display; /* w w w. j ava 2s . c o m*/ import android.content.Context; import android.graphics.Point; import android.view.Display; public class DisplayHelperHoneycomb extends DisplayHelperFroyo { public DisplayHelperHoneycomb(final Context context) { super(context); } @Override public Point getRawDisplaySize() { final Display display = getDefaultDisplay(); try { return new Point( (Integer) Display.class.getMethod("getRawWidth").invoke(display), (Integer) Display.class.getMethod("getRawHeight").invoke(display) ); } catch (final Exception e) { return super.getRawDisplaySize(); } } }