[GraphHopper] Android error loading graph

Maxime Guyon gmaxi17 at gmail.com
Fri Aug 22 11:03:40 UTC 2014


Hello,

I tested the last master branch for use the new function which normally
allow readonly file system:

 GraphHopper tmpHopp = new GraphHopper().forMobile();

* tmpHopp.setAllowWrites(false);* *//This function*

 tmpHopp.setCHShortcuts("fastest");
 tmpHopp.load(pathToGraphFolder);

But I have always the same problem. As you maybe know, since Android 4, the
external storage (extSD) doesn't allow writing something on it without user
interaction. This I think was done in order to keep clean storage when
application is uninstalled...

So if the graph is stored in extSD I get always this error:


​
Even if I use the setAllowWrites(false).
Any idea?

Regards,

Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140822/411d1ca1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2014-08-22-12-42-24.png
Type: image/png
Size: 86800 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140822/411d1ca1/attachment.png>


More information about the GraphHopper mailing list