Android Generic User Agent (UA)

前端 未结 5 1756
你的背包
你的背包 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:54

    It depends on what framework you're using to make your requests. If you're using the org.apache classes, you can call setHeader('User-Agent', "Generic user agent here") on the HttpMessage you use to do your request.

提交回复
热议问题