PhoneGap : 1.5.0, Android : 2.3.4
I added a viewport tag into my HTML like this:
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no;">
but it's not working. I have a window with width = 320px, but it should be 480px.
When I Googled this problem, I found this:
Add these 2 line to onCreate()
:
this.appView.getSettings().setUseWideViewPort(true);
this.appView.getSettings().setLoadWithOverviewMode(true);
But after I inserted these two lines I couldn't launch into WebView anymore! Instead, I got the following exception:
ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord, Intent) line: 2496
Here is the exception screenshot
Can anyone help, please?