Hi All,

Is there a way to detect a mobile/handheld device?
I've tried getting the user-agent http header, using the @media attribute when using css, but the only one that seems to work ok is this:

boolean isHandheld = !(request.getHeader("x-wap-profile") == null || request.getHeader("x-wap-profile") == "");

so if this is true, then it's a handheld device, otherwise not.

This works because apparently every single mobile device that accesses the internet uses the wap protocol, so it will always have the 'wap' bit in the header (or something at least similar).
This is my problem:

If i set my http header to contain x-wap-profile (using a firefox2 extension), it always works in the author instance, but after 6 clicks on the public instance, it sees that header :(

any ideas?

cheers,
nicole

----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to