<div dir="ltr"><div style>Right now i am trying to load the .map file and load the graph files (-gh files). i have </div><div style> </div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">graphhopper-0.1-SNAPSHOT-</span><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">android.jar</span><br>
</div><div style><span style="font-family:arial,sans-serif;font-size:12.727272033691406px">slf4j-android-1.6.1-RC1.jar</span></div><div style><font face="arial, sans-serif">mapsforge-map-0.3.0-jar-with-dependencies.jar </font><br>
</div><div style><div><font face="arial, sans-serif">mapsforge-map-0.3.1-jar-with-dependencies.jar</font></div><div><font face="arial, sans-serif"><br></font></div><div style><font face="arial, sans-serif">under  Android Dependencies</font><br>
</div><div style><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font></div></div><div style>When i tried to load the pakistan-gh file using prepareGraph() i got error</div><div><br>
</div><div> An error happend while creating graph:Cannot load the graph - it wasn't create via com.graphhopper.storage.LevelGraphStorage! /mnt/sdcard/graphhopper/maps/pakistan-gh/</div><div><br></div><div><br></div><div style>
And When i tried to load berlin-gh files i got</div><div style><br></div><div><div> An error happend while creating graph:Invalid storage at:/mnt/sdcard/graphhopper/maps/berlin-gh</div></div><div><br></div><div style>And berlin.map and pakistan.map loads fine.</div>
<div style><br></div><div style>prepareGraph() is the same function available in demo project source code. </div><div style><br></div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 3, 2013 at 11:26 AM, Peter K <span dir="ltr"><<a href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div class="im">
    <div><br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Thank you for your reply. I have already tried demo
        app (<a href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q=" style="color:purple;white-space:nowrap;font-family:arial,sans-serif;font-size:13px" target="_blank">GraphHopper-0.1.apk</a>)
        with berlin-gh and it works fine for me. I am using eclipse on
        windows 8. I want to integrate graphhopper's demo project code
        into my own android app. My app currently gives offline routing
        according to local transportation (Buses) available in city. i
        am using mapsforge api. Now I want to integrate functionality of
        graphhopper demo project in to my app such that I give start and
        end coordinates to it and it give shortest route between them. 
        <div>
          <br>
        </div>
        <div>I have created pakistan-gh files using pakistan-latest.osm
          files by using run.sh command. Then i tried to run it with <a href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q=" style="color:purple;font-size:13px;white-space:nowrap;font-family:arial,sans-serif" target="_blank">GraphHopper-0.1.apk</a> but
          it gives error that "error while creating graph : could not
          load graph at storage /path/to/mapfolder". But i loads
          pakistan.map sucess fully.</div>
      </div>
    </blockquote>
    <br></div>
    The routing files are of a newer version not compatible with  <a href="https://code.google.com/p/graphhopper/downloads/detail?name=GraphHopper-0.1.apk&can=2&q=" style="color:purple;font-size:13px;white-space:nowrap;font-family:arial,sans-serif" target="_blank">GraphHopper-0.1.apk</a><div class="im">
<br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Now i am trying to run the demo project code with
          berlin-gh files  on eclipse with windows 8 because pakistan-gh
          is not working properly on demo app. 1st if code works with
          berlin-gh then i will switch to my own pakistan-gh files.  And
          the errors i got is explained in previous mails.</div>
      </div>
    </blockquote>
    <br></div>
    You need to correct the android dependencies. What do you currently
    have loaded in Eclipse? graphhopper-android, mapsforge and
    slf4j-android?<span class="HOEnZb"><font color="#888888"><br>
    <br>
    Peter.<br>
  </font></span></div>

<br>_______________________________________________<br>
GraphHopper mailing list<br>
<a href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a><br>
<a href="http://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">http://lists.openstreetmap.org/listinfo/graphhopper</a><br>
<br></blockquote></div><br></div>