0
votes

I have create a custom media player.In which there is a button for landscape and portrait mode. When player opens media player,its all feature works fine.But on click fullscreen button, i set media player to landscape mode. After this button click auto screen orientation is not working, only user can change orientation by clicking button(button to change landscape/portrait). Is there any method to work both auto screen orientation with button(button to change landscape/portrait)?

Thanks.

1
Why are you using a button? Just let the user rotate the device!Simon

1 Answers

0
votes

In your manifest file, you have given permisssion for potrait and landscape, So you have avoid that, instead of that do it in your activity.