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