Can you send coordinates to your web page? (something like
"mypage.html?longitude=12.34&latitude=3.234). Then you could just open
the web page through the appropriate link, obtaining the coordinates
from the location provider:

LocationManager locationManager = (LocationManager)
getSystemService(Context.LOCATION_SERVICE);
Location location =
locationManager.getLastKnownLocation(locationProvider.getName());

Also, the following sample application from "Apps-for-Android" may be
interesting for you:

"WebViewDemo: how Java and JavaScript can call each other inside a
WebView."
http://code.google.com/p/apps-for-android/
http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Samples/WebViewDemo

Happy Sunday coding :-)

Peli

On Oct 12, 8:52 pm, "ken cheung" <[EMAIL PROTECTED]> wrote:
> Hi Peli, you are working on a Sunday ? well, I guess Peli, Shane and I have
> no social life.
>
> The code you gave me worked very well, and thank you so much for the link 
> :http://www.openintents.org/en/intentstable
>
> Just a quick question if I may.
>
> Obviously if I use Android's own map api then android handset should easily
> detect it's own location in relation to  the map.
>
> However as I am planning for the user to go directly from the internet
> shortcut to my website and from there, there will be a google map with
> location markers, would it be difficult for android to relate to the
> embedded google map on my site ?
>
> Thanks very much Peli and Shane, for replying to this noob "techfixer"
>
> On Sun, Oct 12, 2008 at 1:27 AM, Peli <[EMAIL PROTECTED]> wrote:
>
> > Oh, that's even simpler :-)
>
> > In code, it would be
> > tv.setAutoLinkMask(Linkify.ALL);
>
> > Peli
>
> > On Oct 12, 2:03 am, "Shane Isbell" <[EMAIL PROTECTED]> wrote:
> > > On Sat, Oct 11, 2008 at 9:08 AM, Techfixer <[EMAIL PROTECTED]
> > >wrote:
>
> > > > I would like to make an online application that android can access via
> > > > an internet shortcut.
>
> > > android:autoLink="all"
>
> > > Shane
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to