Results 1 to 2 of 2

Thread: Customize the mobile device list

  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Question Customize the mobile device list

    From my understanding the user-agent is detected base on the default value in LiteDeviceResolver (final string KNOWN_MOBILE_USER_AGENT_PREFIXES/KNOWN_MOBILE_USER_AGENT_KEYWORDS/KNOWN_TABLET_USER_AGENT_KEYWORDS). Any chance we can self-define another list to add-on? Just in case there are some new device on the market...

    Thanks!

  2. #2
    Join Date
    Nov 2010
    Posts
    175

    Default

    The LiteDeviceResolver is designed to be subclassed, which will allow you to append to or define these lists as you desire. getMobileUserAgentPrefixes(), getMobileUserAgentKeywords(), getTabletUserAgentKeywords(), and getNormalUserAgentKeywords() can all be overridden in a subclass, for example.
    Roy Clarkson
    Spring Mobile Projects Lead

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •