Hello! Will a future edition of Mobile Tools provide support for theme switching for an Android Tablet device group? Right now all we can access is "Android," generically. Thanks!

CommentFileSizeAuthor
#8 mobile_tools_detection.module.patch894 bytesaraja

Comments

pbeakley’s picture

Alternately, I'd love some help detecting "tablet" via some hack of Browscap. Can someone point me the right direction on that one? It already detects iPad, but I believe "is_tablet" is a characteristic I could extract. Is this something better suited to working through WURFL for?

Thank you!

achokshi12’s picture

Android tablets are going to overtake iPads, trust me.

http://www.androidtabletuniverse.com

ryan osītis’s picture

This would be an excellent feature to add.

jasonglisson’s picture

Agreed. I'd like to see this feature as well. (Typing this from an Asus Transformer Android tablet)

janwalhof’s picture

Version: 6.x-2.2 » 6.x-2.3

Yes, please add this feature.

Regards,
Jan Walhof

xen’s picture

I'll add some technical information here...

Currently the tablet detection is rather lacking in general. Also, while the code seems to have the concept of device type, it doesn't seem to be used anywhere, and it only defines 'desktop' and 'mobile'.

The suggested way to check for tables is:

If the UA contains "Tablet", it's a tablet (also catches some Windows based tablets).
If the UA contains "Android", check if it also contains "Mobile". If it does, it's a phone, if it doesn't, it's a tablet.

It's not 100% foolproof, as a few older Android tablets might be mis-categorized as phones, but it's the best bet currently.

devin carlson’s picture

Status: Active » Closed (duplicate)
araja’s picture

Status: Closed (duplicate) » Patch (to be ported)
StatusFileSize
new894 bytes

You can apply this patch to add Android Tablet device group to the existing list of device groups.

wmad’s picture

#8 worked for me. I made a slight modification to it to rename the group "Android" to "Android Phones". Besides that, it's a very clean update.