I'm making an app that should show a webView when device is landscapeLeft oriented. The webVoew will shown a chart. The default orientation of the app is "portrait".
I started using orientation event to detect landscape left orientation to display webView landscaped-oriented. However, it does not work. The webView width never changes and the webView content is "portrait".
I read in another website (stackoverflow.com) I could use accelerometer to detect when device is landscaped oriented, but I'm facing two issues:
1. I'm not sure how to detect when device is landscaped oriented (using accelerometer)
2. I'm not sure accomplishing point 1, the webView content will be landscaped oriented instead of portrayed.
Any thought or suggestion