[GraphHopper] Android error loading graph

Peter graphhopper at gmx.de
Fri Aug 22 11:07:08 UTC 2014


This is still not implemented. setAllowWrites(false) will just avoid
creating the lock file. See:
https://github.com/graphhopper/graphhopper/issues/217

which is easy to fix but not a priority for me (now)

Regards,
Peter.

On 22.08.2014 13:03, Maxime Guyon wrote:
> 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
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140822/3d177481/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 86800 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140822/3d177481/attachment.png>


More information about the GraphHopper mailing list