I have four.java class files:
FragmentActivity
that contains a View Pager.
BlankFragment
, testing purpose only.CameraFragment
.CameraPreview
.
My question is, how do I get display rotation from myFragmentActivity
intoCameraPreview
class?
Example: This doesn’t work....
int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();