Is there any different behaviors about the WebView class on Android 2.2 and 3.1 ?
Here you go some informations I got testing the same app on two different devices, the first one with Android 2.2 and the another one 3.1
- The app's target is 2.1
- The page that I want to access is an ASP.net page
Running on 2.2
- shouldOverrideUrlLoading is called normally
- onPageStarted and onPageFinished are called more than once
- onNewPicture from webview is called once, when the page ends the loading
Running on 3.1
- shouldOverrideUrlLoading isn't called, only webView.load(url) is enough to do the same work
- onPageStarted and onPageFinished are called once
- onNewPicture from webview isnt called
My problem is. I need to show a dialog while the page is loading, and I don't know how to do that with these differences.
If I create the dialog on onPageStarted and close it on onPageFinished it will show and close more than once on 2.2, but on 3.1 it will works fine
Otherwise, if I create the dialog on shouldOverrideUrlLoading and close it on onNewPicture it will works fine on 2.2 but on 3.1 it won't even appear.