Android Generic User Agent (UA)

前端 未结 5 1765
你的背包
你的背包 2020-12-31 12:27

I am building an Android app to display content feed from a server. The server is a mobile website (like http://m.google.com) which tracks the traffic from various mobile cl

5条回答
  •  长情又很酷
    2020-12-31 12:49

    Since you control your Android client, why don't you create a generic header string, and set it in header every time your app makes a server call? That way you can ensure the string is unique, and can also add any other useful info to be sent to server. You should be able to use webView.loadUrl() to set extra headers.

提交回复
热议问题