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!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | mobile_tools_detection.module.patch | 894 bytes | araja |
Comments
Comment #1
pbeakley commentedAlternately, 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!
Comment #2
achokshi12 commentedAndroid tablets are going to overtake iPads, trust me.
http://www.androidtabletuniverse.com
Comment #3
ryan osītis commentedThis would be an excellent feature to add.
Comment #4
jasonglisson commentedAgreed. I'd like to see this feature as well. (Typing this from an Asus Transformer Android tablet)
Comment #5
janwalhof commentedYes, please add this feature.
Regards,
Jan Walhof
Comment #6
xen commentedI'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.
Comment #7
devin carlson commentedThis is a duplicate of #1509808: Administrative UI for managing device groups.
Comment #8
araja commentedYou can apply this patch to add Android Tablet device group to the existing list of device groups.
Comment #9
wmad commented#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.