[GraphHopper] [graphhopper android] Error with setting up development
Peter K
peathal at yahoo.de
Tue Sep 3 15:54:38 UTC 2013
Hi!
> 1. ./graphhopper.sh eclipse
There is no eclipse action :) ... only ./graphhopper.sh android
> 2. get my cellphone connected and run the application on the device
> 3. download japan.map
> from http://download.mapsforge.org/maps/asia/japan.map
> 4. copy the japan.map into a folder japan-gh and move the folder to
> /sdcard/graphhopper/maps/
>
> Then I run graphhopper on my cellphone. An error came out. Please see
> the attached screenshot of my cellphone.
You need to find out the exact error from the android logs
> It seems that the app on the cellphone couldn't load japan.map. Does
> it have some relationship with the "Limitation" you mentioned
> in https://github.com/graphhopper/graphhopper/wiki/Android#limitations?
> I'm not very clear about the workaround: But you can simply create the
> graphhopper folder on your desktop and copy them to the Android storage.
You already did this workaround in step 4.
> Could you please give me more details about it, in terms of what is
> graphhopper folder used for and what does it contian?
On Android you need the same files and an additional map like you have
done. But make sure that you configure the GraphHopper object in the
same way what you've generated on the desktop. Eg. if you use
chShortcuts you need to call graphhopper.setCHShortcuts(true, true)
Regards,
Peter.
More information about the GraphHopper
mailing list