You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
karussell edited this page Sep 4, 2012
·
54 revisions
It is simple to make GraphHopper working on Android. Move to the android branch and do mvn assembly:single on the command line.
Use the jar file produced under the target folder (with dependencies!) and copy it into the libs folder of your android application, hit refresh in Eclipse (or use netbeans). As starting point you could use this example.
Warning: For now OSMReader does not work on Android due to the javax.xml dependencies. But you can simply create the graphhopper files on your desktop and copy them to the Android storage. in the logs you should see something like: MemoryGraphSafe - found graph /mnt/sdcard/maps/graph-monaco with nodes:3037, edges:3221, edges segments:2, edges segmentSize:16384, created-at:Tue Sep 04 14:54:35 MESZ 2012
Warning: the current Graph implementation loads the full graph into RAM so there is a limit of around 100m^2 (1mio nodes) in order to use less than 32MB RAM. To use bigger road networks you have to implement a disc base Graph and a memory bound a* algoritm. Let me know if you need this!