Android mobile user agent?

前端 未结 4 1922
萌比男神i
萌比男神i 2021-01-01 18:16

I\'m currently making an android application for a forum, basically it just loads the website in a webview and that works fine and all, but I\'m trying to add an option to v

4条回答
  •  既然无缘
    2021-01-01 18:53

    Use webview.getSettings().setUserAgent(int); in the int parameter ,0 is a mobile browser while 1 is desktop browser

提交回复
热议问题