Have you logged the strUserAgent to observe the value?

when you say "wrapper" it lends itself to wondering if the device inserts 
its own bit of info...

Other than that, I can only say the WebView is and has always been flaky, 
so nothing surprises me.

On Tuesday, March 4, 2014 10:38:15 AM UTC-5, Richard Norbron wrote:
>
> Hope you guys can offer me some advice.
>
> I'm using a WebView component in a wrapper application. It has been 
> observed that when hitting a certain URL multiple hits are made to the same 
> page in quick succession but passing different user agents.
>
> For example: - LOAD URL TO WEBVIEW
>
>    - 
>    
>    RECEIVE PAGE HIT REQUEST WITH *Dalvik/1.6.0 (Linux; U; Android 4.1.2; 
>    GT-S6310N Build/JZO54K) 2014-02-26 10:35:57.523*
>    - 
>    
>    RECEIVE PAGE HIT REQUEST WITH *Mozilla/5.0 (Linux; U; Android 4.1.2; 
>    en-gb; GT-S6310N Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) 
>    Version/4.0 Mobile Safari/534.30 2014-02-26 10:35:57.603*
>    
> It should be noted that I am calling setUserAgentString on WebSettings to 
> supply the user agent string.
>
> final WebSettings mWebSettings = mWebView.getSettings();
> final String strUserAgent = mWebSettings.getUserAgentString();
> if (strUserAgent != null) {
>     mWebSettings.setUserAgentString(strUserAgent);}
>
> Is there a rational explanation for why this would only hit the page once 
> most of the time, but occasionally hit it twice with different user agents 
> as in the example provided?
>
> Thanks for any insight you guys can provide.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to