codenameone - How can I request a desktop site from a Codename One Browser Component?


Keywords:codenameone 


Question: 

I'm designing an app which has an embedded page on a form, using a BrowserComponent. Unfortunately the maintainer of the website recently created a very unfriendly "mobile friendly" version of the page and the user experience is much better with the desktop site.

Is there some way to get the BrowserComponent to request the desktop site?


1 Answer: 

You need to change the user agent to match the one of a desktop browser see Codename One - BrowserComponent: custom user-agent