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 ww . j ava 2 s. co m import android.content.Context; import android.view.Surface; public class DisplayHelperFroyo extends DisplayHelperBase { public DisplayHelperFroyo(final Context context) { super(context); } @Override public int getDisplayAngle() { switch (getDefaultDisplay().getRotation()) { case Surface.ROTATION_0: return 0; case Surface.ROTATION_90: return 90; case Surface.ROTATION_180: return 180; case Surface.ROTATION_270: return 270; default: throw new IllegalStateException(); } } }