If you're just trying to determine if it's mobile and nothing else --
grepping the HTTP_USER_AGENT for "Mobile" and "Blackberry" will catch
most smart phones (iPhones, Androids, Blackberrys).  Grepping for
about 10 patterns of manufacture names should get you to 99%.  See
http://en.wikipedia.org/wiki/List_of_user_agents_for_mobile_phones

Granted not the most bullet proof and permanent solution -- but
definitely fast, light, and easy.

On Aug 23, 5:54 pm, prgmratlarge <[email protected]> wrote:
> Of course I can see the user agent. The problem is figuring out
> whether it's mobile. I tried, for example, using something like
> browscap but it uses way too many resources for what it does. So I was
> wondering if there was a better/simpler way to do it
>
> On Aug 23, 3:10 pm, "Ikai L (Google)" <[email protected]> wrote:
>
>
>
> > Can you use the user-agent?
>
> > On Sat, Aug 21, 2010 at 11:12 PM, prgmratlarge <[email protected]>wrote:
>
> > > Need a quick and easy way to detect mobile phones from my app, that
> > > won't add too much performance overhead. Any suggestions?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google App Engine" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<google-appengine%2Bunsubscrib
> > >  [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blog:http://googleappengine.blogspot.com
> > Twitter:http://twitter.com/app_engine
> > Reddit:http://www.reddit.com/r/appengine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to