2

Am designing an android app with webview but always when the mobile view of the website loads but i want to load the desktop version instead

1 Answer 1

1

You can try the following:

WebView.getSettings() .setUserAgentString("Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0") 

UserAgent strings for setUserAgentString method can be found here http://www.useragentstring.com/pages/useragentstring.php

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.