recover device user agent?

This may be a bad question but would like advice in the right direction.

Suppose an application has a built-in browser field. In request HTTP for the browser, the application must add user profile, x-wap-profile agent, accept, accept-charset, etc. in the header. If we want the app to work on different phones, we would like to dynamically detect the user agent of the device profile, x-wap-profile, accept, etc. of the capabilities or properties.  Can use them for the browser field.

Is there a way to retrieve user profile, x-wap-profile of a device agent?

Thank you

Try this one:

String version = "";
        ApplicationDescriptor[] ad = ApplicationManager.getApplicationManager()
                .getVisibleApplications();
        for (int i = 0; i < ad.length; i++) {
            if (ad[i].getModuleName().trim().equalsIgnoreCase(
                    "net_rim_bb_ribbon_app")) {
                version = ad[i].getVersion();
                break;
            }
        }

        return "Blackberry" + DeviceInfo.getDeviceName() + "/" + version
                + " Profile/" + System.getProperty("microedition.profiles")
                + " Configuration/"
                + System.getProperty("microedition.configuration")
                + " VendorID/" + Branding.getVendorId();

Tags: BlackBerry Developers

Similar Questions

  • Safari allows me to imitate other devices when entering a user agent string, i.e. it can 'looks like' an ipad or android phone. Firefox does this - look like another device using strings of appliance user agents?

    Can I use a chain of any device user agent in Safari to get safari emulate this device. This is a very useful feature. My safari can act as an ipod, ipad, windows mobile phone android (of any type) etc. Ideal for testing mobile applications.

    Firefox to do this. I want to run firefox on my phone. I want FF on my mac to WATCH AS target a phone on the site.

    A good addons is https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/

  • Application Basics - name: Firefox Version: 31,0 User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; RV:31.0) Gecko/20100101 Firefox/31.0 Crash R

    The application databases

    Name: Firefox
    Version: 31.0
    User Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; RV:31.0) Gecko/20100101 Firefox/31.0

    Reports of incidents for the last 3 days

    All Crash reports

    Extensions

    Name: ArcadeParlor
    Version: 1.0
    Enabled: false
    ID: {F32E7E42-9AFA-47CA-A0C4-D07EE651D404}

    Name: McAfee Security Scan more
    Version: 1.0
    Enabled: false
    ID: {e4f94d1e-2f53-401e-8885-681602c0ddd8}

    Name: McAfee SiteAdvisor
    Version: 3.7.1
    Enabled: false
    ID: {4ED1F68A-5463-4931-9384-8FFF5ED91D92}

    Name: Microsoft .NET Framework Assistant
    Version: 0.0.0
    Enabled: false
    ID: {20a82645-c095-46ed-80e3-08825760534b}

    Name: Unfriend Checker
    Version: 1.0
    Enabled: false
    ID: [email protected]

    Graphics

    Description of the adapter: Intel (r) G33/G31 Express Chipset Family
    Drivers: igdumd64
    RAM card: unknown
    Device ID: 0x29c2
    DirectWrite Enabled: false (7.0.6002.23200)
    Driver date: 26/02/2009
    Driver version: 7.15.10.1666
    GPU #2 Active: false
    GPU accelerated Windows: 0/1 Basic
    Vendor ID: 0 x 8086
    WebGL Renderer: Google Inc. - ANGLE (Intel (r) G33/G31 Express Chipset Family Direct3D9Ex vs_0_0 ps_2_0)
    windowLayerManagerRemote: false
    AzureCanvasBackend: skiing
    AzureContentBackend: Cairo
    AzureFallbackCanvasBackend: Cairo
    AzureSkiaAccelerated: 0

    Important change preferences

    Browser.cache.frecency_experiment: 4
    browser.places.smartBookmarksVersion: 7
    browser.sessionstore.upgradeBackup.latestBuildID: 20140716183446
    Browser.Startup.homepage_override.buildid: 20140716183446
    Browser.Startup.homepage_override.mstone: 31.0
    extensions.lastAppVersion: 31.0
    network.cookie.prefsMigrated: true
    places. History.expiration.transient_current_max_pages: 104858
    plugin.disable_full_page_plugin_for_types: application/pdf
    privacy.sanitize.migrateFx3Prefs: true

    JavaScript

    Incremental GC: true

    Accessibility

    Enabled: false
    Prevent accessibility: 0

    Versions of the library

    NSPR
    The expected minimum version: 4.10.6
    Version: 4.10.6

    NSS
    The expected minimum version: 3.16.2 based ECC
    Version: 3.16.2 based ECC

    NSSSMIME
    The expected minimum version: 3.16.2 based ECC
    Version: 3.16.2 based ECC

    NSSSSL
    The expected minimum version: 3.16.2 based ECC
    Version: 3.16.2 based ECC

    NSSUTIL
    The expected minimum version: 3.16.2
    Version: 3.16.2

    Experimental features

    We are sorry to hear that Firefox crashes. To better help you, please follow the steps below to provide us with crash IDs to help us learn more about your accident.

    1. Enter Subject: hangs in the Firefox address bar and press ENTER. A list of submitted Crash reports will appear, similar to the one shown below.
    2. Copy the 5 most recent report ID begins with bp - and then back to your forum question but that stick in the box of "Post a response. (Please do not take a screenshot of your plant, just copy and paste the ID image below is just an example of what your Firefox screen should look like)

    Thank you very much for your help!

    More information and additional troubleshooting steps are in the article Firefox plant - troubleshoot and prevent assistance fixing crashes .

    ________________________________________________________________________________

    Start Firefox in Safe Mode to fix the problem and to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

  • FireSight/User Agent Error: [2201] - login information from IP to IP report failed after TIME [a call to SSPI failed, see inner exception.]

    We have a system of FireSight with a version 5.4.0.5 Virtual Data Center and several ASA devices. We have set some user Agents for the session and closing of session servers MS AD user logon information and met 2 problems:

    (1) all servers user agent (Windows server 2008R2/64/SP1 and Windows server 2012R2) report error 2201. They can pull the AD server logon information correctly and export the correct user card, can communicate with the virtual data center, but just cannot send data to it. Meanwhile, a user on the Windows 2008 STD/SP2 Server Agent works perfectly. Have you tried 3 other servers, 2 versions of the User Agent, en - us locale and 2 versions of .net. Nothing has changed.

    (2) we prefer to have only 1 User Agent but 1 User Agent supports 5 servers DC Max. We set up a central AD server to register the security logs of all servers of ads with success to his 'Reported events' event log file and set the User Agent to extract data from this central AD server. User Agent shoots the opening session, but only events folder "Windows Logs - security", never "reported events." The User Agent is designed from "Windows Logs - Security" read-only?

    [2201] - report of the login information of the USER-AGENT-SERVER to 10.xx.xx.xx failed after the 14/07/2016 09:08:55. [A call to the SSPI failed, see inner exception.].

    This problem is known.

    Please uninstall the update from Microsoft

    KB3161606 and KB3161608

    After inspection, the question seems to be a specific change to the default Cipher Suites:

    https://support.Microsoft.com/en-us/KB/3161639

    There is created for this bug.

    https://BST.cloudapps.Cisco.com/bugsearch/bug/CSCva32331

    Rate if helps.

    Yogesh

  • Contradictory information about BB10 user agent.

    If you read this post, you'd think "BB10" user agent to detect BB10. However, after testing this point on simulators BB10 of 10.0.10.672 to 10.1.0.1483 I found that this is not the case, but "BlackBerry10" instead, I have also deployed on a device bb10 and he had the same user agent. This post is obsolete?

    It turns out that I was the substitution of my userAgent with an attribute of the rim: userAgent in my file config.xml, pretty well, shot myself in the foot

  • (Captivate 7) In multiscreen.html JavaScript user agent

    The 'vanilla' of multiscreen.html version (which decides if the device requires html5) shows user agents:

    ["blackberry", "android", "iphone", "ipad", "symbian", "smartphone", "ios", "windows this webos","" "]

    The real user agent string for, say, my Nokia Lumia 820 is:

    Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 820)

    Also if I add «...» "," ARM "," NOKIA "," Lumia "... "then who serve the html5 version a Lumia?

    Doesn't seem to work.

    Does anyone know how to hack multiscreen.html to ensure that the version correct (html5) is served to a Lumia?  I am really very disappointed that this has not been added by Adobe Captivate 7 that the Lumias have a very capable browser and have been around for more than a year.

    You must add them to this table in lowercase:

    var lDevicesUserAgents = ["blackberry", "android", "iphone", "ipad", "symbian", "smartphone", "ios", "windows this webos","" "];

    When it is in fact of the poll the device it returns the string to lowercase for the camparison.

  • User Agent

    I was wondering when I upgraded to 43.0 FF if 32 or 64 bits.

    Someone explained in this thread: -.

    https://support.Mozilla.org/en-us/questions/1099295

    to check in the 'user agent' but not what the user agent or how to access it.

    If someone can explain?

    Additional: Ahh! I see that it is visible in my 'more system details' next to this post! But it is observable locally?

    Then another question. I noticed that www.jpl.nasa.gov (Nasa site) will not display pictures since I upgraded to FF43.0. I have not blocked all sources of images and they appear perfectly before I updated...

    Looks like it was a problem with cookies.

    I have my cookies to the permissions set to "ask every time" and I reject cookies at most of the sites. Once I have re-enabled cookies for sites of nasa, they worked very well once more.

    Seems strange, because they are all rendered perfectly before FF43 with cookies disabled for them...

  • Installing TB31.3.0 on a W8.1 workstation; I want to delete the messages on the user agent of TB, but prevent deletion on the server. Where is the switch? When to install

    Hello!

    I have already installed a TB user agent on my workstation 'primary': I can create, read, and DELETE messages ON the workstation and the server.
    I want now to install a user of TB on a "secondary" workstation agent, where I can create, read and DELETE messages on the workstation. But I don't want the secondary workstation to delete messages on the server. (In short: I want that the function "delete" ONLY allowed to my primary workstation).
    Is this possible? Where is the switch ON / OFF? (For example, this feature is available on the agent on my WindowsPhone).
    When I install it?

    Thanks for your support!
    Rgds
    Flamboyant

    Using Thunderbird on your second workstation - the only option would be to create a Pop email account
    so before you download anything, you must configure the account settings to "leave a copy on the server.

    Tools > account settings > account for Pop mail server settings.
    or
    Menu icon > Options > account settings > server settings

    • Letter: look for the e-news at startup
    • Letter: arrival of new messages every xx minutes
    • Select: automatically download new messages
    • Letter: Leave messages on the server '
    • Click OK

    E-mail POP accounts can only download the mail from the Inbox server.
    This will allow you to remove off the coast of the secondary workstation and leave it on the server.
    However, Pop cannot see or download other folders on the server: IMAP only can see other folders these are read remotely. But in IMAP because records are a same as server, removing in TB will remove also off server.

  • Change the default Safari user agent string

    When you use Safari, I can change the user agent string value if I visit a single website with the menu expand, but how can I change the default of it so that all Web sites get the same value I put above

    It is possible. Here is an example: https://jamfnation.jamfsoftware.com/discussion.html?id=15642

  • User Agent string has wrong version of Windows NT

    I'm on Windows 8.1 and if I go to http://useragentstring.com/ it detects Windows NT 6.2 instead of 6.3. Please see my screenshot here: http://imgur.com/7CbJzop

    This causes a problem. When I visit some pages on Microsoft as http://windows.microsoft.com/en-us/windows/tutorial Microsoft detects that I have Windows 8 on my computer and I get a message to upgrade to Windows 8.1. This is false because I am already on Windows 8.1. Please see the screenshot here: http://i.imgur.com/jH4UW76.jpg

    I uninstalled and reinstalled Firefox and the problem persists.

    How can I fix the User Agent string so that it reflects the correct version of Windows.

    Thanks cor - el, but I discovered that the problem is caused by a program called Sandboxie.

    Let me explain. If I start Firefox unsandboxed and go to about: support the NT correct version is displayed (i.e. NT 6.3). However, if I run the same browser sandbox it shows the NT 6.2.

    I started a topic on the Sandboxie forum about this.

    Nevertheless, I would like to thank everyone who took the time to reply on this thread.

    Thank you!!

  • Caused problems Yahoo email user agent

    I downloaded User Agent Switcher. I went to the iPhone and visited Yahoo email. Now, I can't send back in the format of origin even after the User Agent switch back to default. Using Firefox on Mac OSX 10.8.5 29.0.1. I had a similar problem with youtube and delete my cookies to youtube that has fixed the problem, but this did not work for yahoo.

    Many issues of the site can be caused by corrupted cookies or cache. To try to solve these problems, the first step is to clear cookies and cache.
    Note: This will be you temporarily disconnect all sites, you're connected to.
    To clear the cache and cookies to do the following:

    1. Click the menu button

      Click on the history button, and then click clear recent history...

    2. Under "Time range to clear", select "all".
    3. Now, click the arrow next to details to toggle the active details list.
    4. In the list of details, see the Cache and Cookies and uncheck everything.
    5. Now click the clear now button.

    More information can be found in article to clear your cache, history, and other personal information in Firefox .

    This solve your problems? Please report to us!

  • Firefox for Android User Agent TROUBLE

    I use Firefox on my S4 Galaxy that has a screen size of 1080 x 1920 and Firefox is that it is a tablet. I'm running a custom 320 DPI. The question is that T-Mobile I am when I'm not. Please, I beg you, do an option to select the User Agent, the USER wishes to. This will allow me once again to use your web browser for Android. Thank you.

    He compiled myself and fixed it.

  • Upgrade to the latest version of Firefox, but the user agent remained at 3.6.

    Mint Isadora 64-bit. Finally, I upgraded to the latest stable version 3.6 in the Launchpad repo. I can't install any addons now because addons.mozilla.com said I use 3.6. Troubleshooting information, it seems that my user agent still said 3.6. Subject: firefox said I use 6.0.1. How can I fix the user agent?

    https://support.Mozilla.com/en-us/KB/websites+or+add-ons+incorrectly+report+incompatible+browser

  • user-agent 'U' not in FF6 security - why?

    I looked at the user agent to Firefox 6 and found that the U for the high level of security is not there and more. Why? It is no longer necessary? His absence is likely to cause problems with secure sites?

    This has been done since Firefox 4.0.

    That 'U' has really meant a lot since 1996, when the U.S. Government lifted the export controls on software that uses encryption. Under the old rules only versions US used the 'U' 128-bit, which in my view, that the 'U' represented - USA. Export version was limited to 64-bit, IIRC.

    Regarding the problems, I've seen a few comments here on the problems of support like that, and when I checked these websites I found old code "UA sniffing" used. Code that was looking for IE4 and NS3 and 4, more than 10 years. Time for these Web sites get into the 3rd Decade of the 21st century.

  • Possible error with module GWT.xml file. The value of time compilation agent user (ie6) does not match the value of user.agent (ie8) run time

    Hi there... How can I sort this problem as this message looks back constantly on google Account... ERROR POSSIBLE WITH GWT. The value of time compilation agent MODULE XML FILE user (ie6) does not match the value of user.agent (ie8) run time

    Hello nEve Adam,.

    Thanks for the return of the response.  Below, I've added some links Google support on this issue.  I hope this helps.

    ERROR: Problem Possible with your *. GWT.XML file module. The value of compile time user.agent (opera) does not match

    http://www.Google.com/support/forum/p/blogger/thread?TID=2d6d9bd1326a07c4&hl=en

    In addition,

    Message from Web page

    http://social.technet.Microsoft.com/forums/en-us/ieitprocurrentver/thread/53194559-306a-4ffc-a614-4bac817f178d

Maybe you are looking for