I doubt that. I would test whether request has user-agent header defined and
make the decision according to its value...

This might be helpful:
http://www.developershome.com/wap/detection/detection.asp?page=userAgentHeader

On Wed, May 12, 2010 at 12:00 PM, Massimiliano <
[email protected]> wrote:

> I thought there is a "var" I can check to understand if I'm on a mobile or
> not, just with an "if" send the user to the right version of the site.
> (I'm not an IT, just a beginner).
>
> 2010/5/12 Jaroslav Záruba <[email protected]>
>
>> Either you can search the web for user-agent string each mobile browser
>> identifies itself with, or you can install the emulator to find out for
>> yourself...?
>>
>>
>> On Wed, May 12, 2010 at 11:44 AM, Massimiliano <
>> [email protected]> wrote:
>>
>>> Sorry, I want to check if the apps is running on a pc or a mobile to give
>>> them the right template.
>>>
>>>
>>> 2010/5/12 Jaroslav Záruba <[email protected]>
>>>
>>> Google + "Fennec emulator":
>>>> http://www.mozilla.org/projects/fennec/1.0a1/releasenotes/#start
>>>> same probably works for other mobile browser :)
>>>>
>>>> regards
>>>>  J. Záruba
>>>>
>>>> On Wed, May 12, 2010 at 11:02 AM, Massimiliano <
>>>> [email protected]> wrote:
>>>>
>>>>> Dear all,
>>>>> is there a way I can test if my apps is run on a mobile phone? I want
>>>>> that my apps is rendered with a specif template if on a mobile phone.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Massimiliano
>>>>>
>>>>> --
>>>>>
>>>>> My email: [email protected]
>>>>> My Google Wave: [email protected]
>>>>>
>>>>> --
>>>>> 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%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>
>>>>
>>>>  --
>>>> 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%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> My email: [email protected]
>>> My Google Wave: [email protected]
>>>
>>> --
>>> 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%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine?hl=en.
>>>
>>
>>  --
>> 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%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>
>
> --
>
> My email: [email protected]
> My Google Wave: [email protected]
>
> --
> 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%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
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