This is for Windows Phone. I\'m using windowsphone8.1 update 1. you know that the web interface works like that of android and iOS. How do I get the same interface in my wp8
Windows Phone 8.1 Update 1 does not introduce any new public APIs for developers.
If you're working with the WebView (aka the WebBrowser) control in a Windows Phone 8.1 XAML project and you want to specify a different user-agent for the entire session, use...
[DllImport("urlmon.dll", CharSet = CharSet.Ansi)]
private static extern int UrlMkSetSessionOption(int dwOption, string pBuffer, int dwBufferLength, int dwReserved);
const int URLMON_OPTION_USERAGENT = 0x10000001;
public void ChangeUserAgent(string Agent)
{
UrlMkSetSessionOption(URLMON_OPTION_USERAGENT, Agent, Agent.Length, 0);
}
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
ChangeUserAgent("My Custom User-Agent");
wb.Navigate(new Uri("http://basquang.wordpress.com/2014/04/26/wp8-1-changing-windows-phone-8-1-webview-default-user-agent-in-all-outbound-http-requests/", UriKind.Absolute));
}
Source: basquang on clouds blog