<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">That is some Android uglyness I cannot
      remember. It is to find out a proper name for the download root,
      but this method is not available in older versions and newer
      version should use it. Maybe Emux or your favourite search engine
      knows more details ;)<br>
      <br>
      > then what does this "<span
        style="color:rgb(51,51,51);font-family:'Helvetica
        Neue',Helvetica,'Segoe
UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px">Call
        load or importOrLoad before routing" error relates to?</span><br>
      <br>
      This message occurs if you route but the graph wasn't loaded. The
      issue 251 is about some strange downloader problems which results
      in a missing graph resulting in this message.<br>
      <br>
      Regards,<br>
      Peter.<br>
      <br>
      <br>
      On 10.09.2014 13:23, Muhammad Babar wrote:<br>
    </div>
    <blockquote
cite="mid:CAGAOpn6_425DoNKLak3cty5XwqGoZwHwkXAqX7av-kV3-3RymQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Peter one thing i can't understand is
        <div><br>
        </div>
        <div>
          <div> boolean greaterOrEqKitkat = Build.VERSION.SDK_INT >=
            19;</div>
          <div>        if (greaterOrEqKitkat)</div>
          <div>        {</div>
          <div>            if
(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))</div>
          <div>            {</div>
          <div>                logUser("GraphHopper is not usable
            without an external storage!");</div>
          <div>                return;</div>
          <div>            }</div>
          <div>            </div>
          <div>            mapsFolder = new
File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),</div>
          <div>                    "/graphhopper/maps/");</div>
          <div>        }</div>
        </div>
        <div><br>
        </div>
        <div>
          <div> mapsFolder = new
File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),</div>
          <div>                    "/graphhopper/maps/"); </div>
        </div>
        <div><br>
        </div>
        <div>Why this for kitkat or greater? why not this mapsFolder =
          new File(Environment.getExternalStorageDirectory(),
          "/graphhopper/maps/");</div>
        <div><br>
        </div>
        <div>Environment.DIRECTORY_DOWNLOADS does this mean for kitkat
          or higher the map files and routing data should be in Download
          directory? Can you please explain why you are doing this?<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Sep 10, 2014 at 2:57 PM,
          Muhammad Babar <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:babar.magma@gmail.com" target="_blank">babar.magma@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Thanks petter for informing. then what does
              this "<span
                style="color:rgb(51,51,51);font-family:'Helvetica
                Neue',Helvetica,'Segoe
UI',Arial,freesans,sans-serif;font-size:14px;line-height:22.3999996185303px">Call
                load or importOrLoad before routing" error relates to?</span></div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Wed, Sep 10, 2014 at 12:58
                    PM, Peter <span dir="ltr"><<a
                        moz-do-not-send="true"
                        href="mailto:graphhopper@gmx.de" target="_blank">graphhopper@gmx.de</a>></span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF">
                        <div>Hey Muhammad,<br>
                          <br>
                          thanks for your interests in GraphHopper!
                          Still I would like you that you do some
                          research before posting to the mailing list,
                          especially if you find several problems. In
                          that case you can collect them into just one a
                          bit longer mail (As I would like to avoid that
                          lots of people get lots of mails). Secondly
                          your question should be GraphHopper related
                          (the question regarding zoom level is
                          mapsforge I think).<br>
                          <br>
                          Now to your other questions:<br>
                          <br>
                          <div dir="ltr"><span><span
                                style="font-family:arial,sans-serif;font-size:13px">></span><span
style="font-family:arial,sans-serif;font-size:13px"> It's recommended to
                                create graphs and then read them with
                                the same GraphHopper version, as there
                                may be differences in the graph
                                structure as the library evolves.</span><br>
                              <br>
                            </span> Yes<span><br>
                              <br>
                              <div>
                                <div><span
                                    style="font-family:arial,sans-serif;font-size:13px"><br>
                                  </span></div>
                                <div><span
                                    style="font-family:arial,sans-serif;font-size:13px">>

                                    Does it mean that i have to use the
                                    SNAPHOT.0.4 that is automatically
                                    created in ../core/target when
                                    routing data(Graph) is being made? <br>
                                    > using the command </span><span>./graphhopper.sh

                                    import <your-osm-file>?</span></div>
                              </div>
                            </span></div>
                          <br>
                          It just means, if you create your graph with
                          0.3 you'll have to use 0.3 in your Android
                          app. E.g. do <br>
                          <br>
                          git checkout 0.3<br>
                          <br>
                          Then you will see 0.3 in target and the
                          created graph is compatible with your Android
                          jars.<br>
                          <br>
                          <br>
                          > Check this <a moz-do-not-send="true"
                            href="https://github.com/graphhopper/graphhopper/issues/251"
                            target="_blank">https://github.com/graphhopper/graphhopper/issues/251</a><br>
                          <div><span>> I have found the bug in code<br>
                              <br>
                            </span><a moz-do-not-send="true"
href="https://github.com/graphhopper/graphhopper/issues/251#issuecomment-55078568"
                              target="_blank"> Your problem</a> is not
                            really a bug and not related to #251,
                            because when we download the zgh files the
                            created folders have a different naming
                            schema. So when you copy to Android you'll
                            have to make sure that you properly name the
                            folder.<br>
                          </div>
                          <br>
                          Regards,<br>
                          Peter.
                          <div>
                            <div><br>
                              <br>
                              On 10.09.2014 09:48, Muhammad Babar wrote:<br>
                            </div>
                          </div>
                        </div>
                        <div>
                          <div>
                            <blockquote type="cite">
                              <div dir="ltr">Why mapView.getMapZoomControls().setZoomLevelMin((byte)

                                10); takes byte its Java not C? it
                                should be taking integer?
                                <div><br>
                                </div>
                                <div>I pass it 0 and app crashes?</div>
                              </div>
                              <div class="gmail_extra"><br>
                                <div class="gmail_quote">On Wed, Sep 10,
                                  2014 at 12:39 PM, Muhammad Babar <span
                                    dir="ltr"><<a
                                      moz-do-not-send="true"
                                      href="mailto:babar.magma@gmail.com"
                                      target="_blank">babar.magma@gmail.com</a>></span>
                                  wrote:<br>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div dir="ltr"><span
                                        style="font-family:arial,sans-serif;font-size:13px">@Emux</span>
                                      <div><span><span
                                            style="font-family:arial,sans-serif;font-size:13px">It's

                                            recommended to create graphs
                                            and then read them with the
                                            same GraphHopper version, as
                                            there may be differences in
                                            the graph structure as the
                                            library evolves.</span><br>
                                          <div><span
                                              style="font-family:arial,sans-serif;font-size:13px"><br>
                                            </span></div>
                                        </span>
                                        <div><span
                                            style="font-family:arial,sans-serif;font-size:13px">Does

                                            it mean that i have to use
                                            the SNAPHOT.0.4 that is
                                            automatically created in
                                            ../core/target when routing
                                            data(Graph) is being made?
                                            using the command </span><span>./graphhopper.sh

                                            import
                                            <your-osm-file>?</span></div>
                                      </div>
                                    </div>
                                    <div class="gmail_extra"><br>
                                      <div class="gmail_quote">
                                        <div>
                                          <div>On Wed, Sep 10, 2014 at
                                            12:14 PM, Emux <span
                                              dir="ltr"><<a
                                                moz-do-not-send="true"
                                                href="mailto:devemux86@gmail.com"
                                                target="_blank">devemux86@gmail.com</a>></span>
                                            wrote:<br>
                                          </div>
                                        </div>
                                        <blockquote class="gmail_quote"
                                          style="margin:0 0 0
                                          .8ex;border-left:1px #ccc
                                          solid;padding-left:1ex">
                                          <div>
                                            <div>
                                              <div bgcolor="#FFFFFF"
                                                text="#000000">
                                                <div>GraphHopper 0.3 is
                                                  the latest release
                                                  version.<br>
                                                  0.4-SNAPSHOT is just a
                                                  tag of the master
                                                  branch where the
                                                  current development
                                                  takes place.<br>
                                                  <br>
                                                  It's recommended to
                                                  create graphs and then
                                                  read them with the
                                                  same GraphHopper
                                                  version, as there may
                                                  be differences in the
                                                  graph structure as the
                                                  library evolves.<br>
                                                  <br>
                                                </div>
                                                <span>
                                                  <div>-- <br>
                                                    <font
                                                      color="#000000">Emux</font><br>
                                                    <a
                                                      moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Cruiser" target="_blank">Cruiser</a>
                                                    - <a
                                                      moz-do-not-send="true"
href="http://wiki.openstreetmap.org/wiki/Atlas_%28navigation_application%29"
                                                      target="_blank">Atlas</a></div>
                                                </span></div>
                                              <br>
                                            </div>
                                          </div>
                                          <span>_______________________________________________<br>
                                            GraphHopper mailing list<br>
                                            <a moz-do-not-send="true"
                                              href="mailto:GraphHopper@openstreetmap.org"
                                              target="_blank">GraphHopper@openstreetmap.org</a><br>
                                            <a moz-do-not-send="true"
                                              href="https://lists.openstreetmap.org/listinfo/graphhopper"
                                              target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
                                            <br>
                                          </span></blockquote>
                                      </div>
                                      <br>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                              <pre>_______________________________________________
GraphHopper mailing list
<a moz-do-not-send="true" href="mailto:GraphHopper@openstreetmap.org" target="_blank">GraphHopper@openstreetmap.org</a>
<a moz-do-not-send="true" href="https://lists.openstreetmap.org/listinfo/graphhopper" target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      GraphHopper mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:GraphHopper@openstreetmap.org"
                        target="_blank">GraphHopper@openstreetmap.org</a><br>
                      <a moz-do-not-send="true"
                        href="https://lists.openstreetmap.org/listinfo/graphhopper"
                        target="_blank">https://lists.openstreetmap.org/listinfo/graphhopper</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
GraphHopper mailing list
<a class="moz-txt-link-abbreviated" href="mailto:GraphHopper@openstreetmap.org">GraphHopper@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openstreetmap.org/listinfo/graphhopper">https://lists.openstreetmap.org/listinfo/graphhopper</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>