Print window.navigator.userAgent and look for android specific stuff, there
has to be some. Than create a simple rule and implement checkPlatform for
android.
regards,
harsh
On Wed, Mar 26, 2008 at 12:43 AM, Anil <[EMAIL PROTECTED]> wrote:
>
> In other words, can Javascript query if it is running in the Android
> browser?
> Javascript uses on Windows,
> (checkPlatform("msie") && checkPlatform("win"))
>
> Is there a similar check for Android?
> thanks,
> Anil
>
>
> On Mar 25, 12:37 pm, Anil <[EMAIL PROTECTED]> wrote:
> > Clicking a link on a web page should run Javascript that checks
> >
> > if(running on Android)
> > launch intent to run my application
> > else
> > do something else
> >
> > Does Android support this?
> >
> > thanks,
> > Anil
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---