Page 1 of 1

myTouch 3g slide not recongized as mobile device

Posted: Mon Oct 10, 2011 10:03 am
by jbart08
Currently there is no is-mobile-device type attribute set for this hardware. Is there a different attribute that one should target when using the WURFL strictly for mobile device detection? My current approach was "if mobile device = true, redirect to mobile url", but it seems that more and more devices are popping up up that don't have this attribute set.

Re: myTouch 3g slide not recongized as mobile device

Posted: Mon Oct 10, 2011 10:51 am
by jbart08
PS, I'm on the latest wurfl file and java implementation.

Thanks,

-j

Re: myTouch 3g slide not recongized as mobile device

Posted: Wed Oct 12, 2011 7:08 am
by jbart08
I can also include the LG Quantum, Samsung Omnia 7, and a few yet-to-be-named Android devices by my client to this list

Re: myTouch 3g slide not recongized as mobile device

Posted: Wed Oct 12, 2011 11:32 am
by kamermans
Perhaps I am misunderstanding you, but it's not possible for the is_wireless_device option to not be set. If you are looking at the data in the WURFL.XML, the devices use inheritance to obtain most of their capabilities, for example, the T-Mobile myTouch 3G Slide (tmobile_mytouch_3g_slide_ver1) get's it's capabilities from the following devices, which are its ancestors:

Code: Select all

tmobile_mytouch_3g_slide_ver1
generic_android_ver2_1
generic_android_ver2
generic_android_ver1_6
generic_android_ver1_5
generic_android
generic_mobile
generic
The generic_mobile device is where is_wireless_device is set to true.

Can you tell me a little more about your situation and how you are calling the Java API?

Re: myTouch 3g slide not recongized as mobile device

Posted: Wed Oct 12, 2011 6:07 pm
by jbart08
Sure,

Essentially my code is targetting the is_wireless_device property via the device.getCapability("is_wireless_device") method.

Below is a snippet example:

WURFLHolder wurflHolder = (WURFLHolder)filterConfig.getServletContext().getAttribute("net.sourceforge.wurfl.core.WURFLHolder");
WURFLManager wurfl = wurflHolder.getWURFLManager();
Device device = wurfl.getDeviceForRequest(request);

if (null != device) {
logger.debug("Device: " + device.getId());
if (null != device.getCapability("is_wireless_device")) {
Boolean isWirelessDevice = new Boolean(device.getCapability("is_wireless_device"));
if (isWirelessDevice) {
logger.debug("Wireless device detected.");
}
}
}

Re: myTouch 3g slide not recognized as mobile device

Posted: Thu Oct 13, 2011 1:14 am
by ermanno
This seems to be a question about Java API.
Could you post your User Agent string, so we can check it?
Thanks, Ermanno