Android - How to open google maps with Intent and KML?

后端 未结 4 1833
我在风中等你
我在风中等你 2021-01-01 03:33

I need to open google maps using kml file wich already exists on sdcard. (/sdcard/example.kml)

I tried:

  • Open local KML File in Google Maps on Androi

4条回答
  •  抹茶落季
    2021-01-01 03:59

    I'm not surprised that the above does not work for me (on Android v2.1) because I think that all Maps does is send the query string off to the server to deal with. The server can deal with http:// because (with usual internet caveats!) the file can be fetched from anywhere. But it cannot deal with file:// because that only means something at the originating device, which the server cannot do anything about. I do not believe that Google Maps can process a local KML file, at least that way. Google Maps on Windows Mobile 5.0 can do so, however, if it is given the local file name in the traditional DOS command line manner. Surely this must be in Android too, in an Intent-ional manner!

提交回复
热议问题