[GraphHopper] [graphhopper android] Error with setting up development

龚振华 simon.gong64 at gmail.com
Wed Sep 4 09:31:49 UTC 2013


Thanks, Peter.

As to your suggestion, I built it all over again and get the .apk installed
on my cellphone.

But the map loading of japan.map still doesn't work. I've debugged it to
the code and guess it's the problem of using mapsforge. (I've built the web
component of your graphhopper as well and it works fine!)

So I raise it in the maspforge-dev group at Google, see
https://groups.google.com/forum/#!topic/mapsforge-dev/03ftndqcLM0.

Thanks for your consistant help and dedication, even for my stupid
questions. Really appreciate it.  :-)

Cheers,



2013/9/4 Peter K <peathal at yahoo.de>

> 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.
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
>



-- 
Simon Gong
Enjoy Work, Enjoy Life
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20130904/68f7f8de/attachment.html>


More information about the GraphHopper mailing list