[g1-hackers] Offline Maps
jnylen+g1 at gmail.com
Fri Jan 23 12:38:30 UTC 2009
I don't know about the second part (how you would spoof the DNS of the maps
server) but you have to be root to see /cache. Also, I think that folder is
not used by applications like you would expect. The browser's cache, for
example, is at /data/data/com.android.browser/cache. There is probably a
similar location for the maps cache.
And once you get in there, you chould probably just chown root:root * and
chmod o-w * so that the maps application would be unable to delete the tiles
you want to keep. I'm not sure how that would work if you want to keep them
on the SD card though.
On Fri, Jan 23, 2009 at 3:24 AM, Sid Hussmann <s.hussmann at gmail.com> wrote:
> I would like to get the native android maps application work without
> an internet connection.
> Even though Maps caches some of the data, the cache will be deleted
> after a while.
> I can think of two approaches to enable offline maps:
> Approach 1:
> Prevent the cache from being deleted. This will require to make an
> symbolic link from the SD-card to /cache.
> I tried to look at the files in /cache, however trying to cd into it
> gave me an error:
> cd: can't cd to cache
> Approach 2:
> With TangoGPS for instance you can use maps from google and even download
> I assume the android Maps application gets its map tiles with HTTP-GET
> requests, just like TangoGPS.
> This would allow us to write a simple server with i-jetty, which will
> handle the HTTP-GET requests and return the map tiles
> Then redirect the url http://mt1.google.com/mt?&x=%d&y=%d&zoom=%d to
> Any ideas?
> G1-Hackers mailing list
> G1-Hackers at telesphoreo.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the G1-Hackers