webview.getSettings().setUserAgentString("user-agent-string");
from http://stackoverflow.com/a/5590105