If you want lock screen orientation you have to set manifest file.
Thanx. But I need to do in run time. Also I want to overrite onRetainNonConfigurationInstance() method for service bind.
– Ramindu Weeraman Jun 20 at 11:22 Actually I want to lock screen orientation when specific button click fire. So I dnt want to add entry to manifest. Other thing is my above code working fine for both landscape and portrait screens.
Issue is occurs only screen in reverse landscape mode. In that mode screen is always change its orientation to default landscape mode. – Ramindu Weeraman Jun 20 at 11:38.
Try this setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_LANDSCAPE); if you want portrait setRequestedOrientation(ActivityInfo. SCREEN_ORIENTATION_PORTRAIT).
1 Yes. I knw this. But I want to lock screen when my screen in Reverse landcape mode.Do you knw there is orientation mode called REVERSE_LANDSCAPE?
– Ramindu Weeraman Jun 20 at 11:55.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.