Results 1 to 4 of 4

Thread: How to get user agent from windows mobile 7 series?

  1. #1
    Join Date
    Oct 2010
    Posts
    111

    How to get user agent from windows mobile 7 series?

    Hello everyone, need some help of your, I am creating an windows mobile 7 application, for this i would want to get the user agent of windows mobile7. So the question is how can i get this user agent details, is there any inbuilt class or method to get this user agent detail. How can i get the user detail in C# code format. Can some one help me to find this problem.

  2. #2
    Join Date
    Jan 2006
    Posts
    7,109
    The user agent of your windows phone 7 should be fixed and you can only discover it from your phone. You can dynamically get the user agent from your phone directory.
    The User agent code will be something like this
    " Name" | Microsoft Developer Support | Windows Phone 7
    If suppose you are finding any difficulty is locating this user agent code then you can refer to the guides regarding choice of your user agent.
    Designing Web sites for web browser| Microsoft Developer Support | Windows Phone 7.
    "Me fail English!? That unpossible!"

  3. #3
    Join Date
    Oct 2010
    Posts
    88
    Hello everyone, I am also developing an application for windows phone 7 and want the user agent code for the same. I have searched in the internet but i am not able to locate it. Since I am new to .net I having difficulty in locating the user agent code. Can some one please help me with this, Is there any sample code for approaching the user agent code.
    I have even tried web browser class but i didnt find method like SavetoString to get the user agent code. Can someone please provide me with some solution.

  4. #4
    Join Date
    May 2008
    Posts
    979
    You can get the user agent code, using the SaveToString() a per-instance method. You need to first create a new instance of it and then call the method within that instance. Another approach is to load a page into a WebBrowser control that writes out the User Agent string via JavaScript. Then use the WebBrowser SaveToString method to retrieve the User Agent string.There isnt any more solution for finding the user agent code other than this. Also, the Designing Web Sites for Phone Browsers PDF file link would help you to get the User Agent code.

Similar Threads

  1. LIC agent software for N72 or Windows Mobile?
    By Aanand in forum Windows Software
    Replies: 4
    Last Post: 06-04-2012, 08:34 AM
  2. How to change IE6 user agent
    By Wiro in forum Technology & Internet
    Replies: 3
    Last Post: 20-06-2009, 09:46 PM
  3. How to change the User Agent in Firefox
    By usasman in forum Technology & Internet
    Replies: 3
    Last Post: 23-05-2009, 08:31 PM
  4. What is User Agent Switcher in Firefox
    By Patrickboy in forum Technology & Internet
    Replies: 3
    Last Post: 19-05-2009, 01:50 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,581,300.92221 seconds with 16 queries