Search code examples
androidhtmltizen

Is it possible to change user agent in Crosswalk Android/Tizen-Apps?


I am developing an android/tizen app using crosswalk project. Now i need to change the user agent to view page in desktop version. Is it possible to change user agent and how? Thank you!


Solution

  • Use this snippet:

    XWalkView mXWalkView;
    mXWalkView.getSettings().setUserAgentString("Your User Agent");