Skip to content

Android Demo Apk #127

Closed
Closed

Description

@sebasgrgl

I'm running the demo apk on my device. I hev created in my desktop the graphhopper folder with berlin.ghz insde, when I run the apk, the first spinner shows berlin and when I click ok jumps a toast saying: "file does not exists: /storage/sdcard0/graphhopper/maps/berlin-gh/berlin.map"
But when i search in a file explorer the file is in that location. I don´t know what to do.

Activity

  1. orangeman commented on Dec 3, 2013

    @orangeman

    hm you say you put "berlin.ghz" in the folder but "berlin.map" exists but can not be found?

  2. sebasgrgl commented on Dec 3, 2013

    @sebasgrgl
    Author

    Thanks for your answer.
    To clarify...
    I'm following https://github.com/graphhopper/graphhopper/wiki/Android tutorial
    I followed this steps:

    • Download the raw openstreetmap file - you'll need that only for the next step to create the routing data
      Here I downloaded berlin.osm.bz2 and uncompressed it
    • Execute ./graphhopper.sh import . This creates the routing data
      Here I used berlin.osm
    • Download a map e.g. berlin.map
    • Copy berlin.map into the created berlin-gh folder
    • Optional Compression Step: Bundle a graphhopper zip file via cd berlin-gh;zip -r berlin.ghz *
    • Now copy the berlin-gh folder from step 4 (or the .ghz file from step 5) to android /sdcard/graphhopper/maps - e.g. use SSHDroid: scp -P 2222 berlin.ghz root@$URL:/sdcard/graphhopper/maps/

    I´ve tried with the folder and with the .ghz and none of them worked.

  3. karussell commented on Dec 3, 2013

    @karussell
    Member

    Does it work if you download the map from us? (via 'Remote' at start screen)

  4. orangeman commented on Dec 3, 2013

    @orangeman

    Thx for clarifying my confusion!

  5. sebasgrgl commented on Dec 3, 2013

    @sebasgrgl
    Author

    At start screen it shows a toast saying "to get downloadable areas restar connected to internet. Problem while fetching remote area list: http://graphhopper.com/public/maps/0.2/". I've tried connected to 3G and WiFi but always shows this message.

  6. karussell commented on Dec 4, 2013

    @karussell
    Member

    Regarding remote download: Can you access the URL in your Android browser?

    Regarding local: make sure you have this directory layout with 7 files (properties, nodes, edges, the map, locationIndex, geometry and names):

    [sdcard]/graphhopper/maps/AREA-gh/AREA.map
    [sdcard]/graphhopper/maps/AREA-gh/properties
    [sdcard]/graphhopper/maps/AREA-gh/nodes
    ....
    
  7. nirabpudasaini commented on Dec 4, 2013

    @nirabpudasaini

    I had similar problems. So instead of copying the myfile.ghz file i copied
    the whole mygraphhopper-gh and it worked. I guess the code has issues with
    dealing with the .ghz file. Don't know what is the issue with the remote
    downloading of files.

    On Wed, Dec 4, 2013 at 2:14 PM, Peter [email protected] wrote:

    Regarding remote download: Can you access the URL in your Android browser?

    Regarding local: make sure you have this directory layout with 7 files
    (properties, nodes, edges, the map, locationIndex, geometry and names):

    [sdcard]/graphhopper/maps/AREA-gh/AREA.map
    [sdcard]/graphhopper/maps/AREA-gh/properties
    [sdcard]/graphhopper/maps/AREA-gh/nodes
    ....

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/127#issuecomment-29787257
    .

  8. gislogin commented on Dec 4, 2013

    @gislogin

    Also if I use a older android device without a sdcard how should me put the local map file. I. Just have a Xoom Motorola just with internal storage device.

  9. karussell commented on Dec 4, 2013

    @karussell
    Member

    @gislogin You can package it into the app itself, grab it from our servers or your own (local) server.

  10. sebasgrgl commented on Dec 4, 2013

    @sebasgrgl
    Author

    Karussel, About remote download, yes, I can acces the URL by the android browser.

    About Local, In the folder I have the seven files you said: nodes, properties, berlin.map, edges, geometry, locationIndex and names

  11. sebasgrgl commented on Dec 4, 2013

    @sebasgrgl
    Author

    Ok people,

    About local it was my mistake because I'm working with raw file from Colombia and when you use the script to import the osm data, it creates a folder named "colombia-latest.osm-gh". The app couldn't read the colombia.map file because of the .osm before -gh. So I renamed the folder and it worked well.

    However at start the application is still not fetching the .ghz files from the server

  12. karussell commented on Dec 4, 2013

    @karussell
    Member

    What are the logs saying (not the toast)?

  13. karussell commented on Jan 8, 2014

    @karussell
    Member

    What is the status here?

  14. karussell commented on Feb 17, 2014

    @karussell
    Member

    Ah, it could be that KitKat requires us to do:

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    

    no ... we already require this. And implicetly this would give us read access as stated in the docs:
    http://developer.android.com/guide/topics/data/data-storage.html

    So this does not explain 'open failed: EACCES (Permission denied)' somewhere in the logs.

  15. added this to the 0.3 milestone on Feb 17, 2014
  16. 15 remaining items

  17. karussell commented on Mar 28, 2014

    @karussell
    Member

    Will fix and upload a new version shortly. Really strange why this did not fail earlier with normal Java and older Android versions.

  18. added a commit that references this issue on Mar 28, 2014
  19. karussell commented on Mar 31, 2014

    @karussell
    Member

    This should be finally fixed. Please try with the new uploaded maps.

  20. carlosharlens commented on Apr 1, 2014

    @carlosharlens

    Hi,

    Karussell why sometimes graphhopper get across blocks instead turning on corners properly?
    is it map points related?... lack of info points? in order to trace route? just asking.

    best regards

  21. karussell commented on Apr 2, 2014

    @karussell
    Member

    Please use mailing list and include an example screenshot or link

  22. rjcool commented on Jun 20, 2014

    @rjcool

    capture cvxf

  23. karussell commented on Jun 20, 2014

    @karussell
    Member

    Pasting an error message is not helpful

  24. rjcool commented on Jun 20, 2014

    @rjcool

    but the link you gave is not working so i just notified you.

    On Fri, Jun 20, 2014 at 1:21 PM, Peter [email protected] wrote:

    Pasting an error message is not helpful

    —
    Reply to this email directly or view it on GitHub
    #127 (comment)
    .

    Thanks & Regards,
    -Rajal Shah [email protected]
    VIII Semester
    U V Patel College of Engineering,Mehsana

  25. karussell commented on Jun 20, 2014

    @karussell
    Member

    Just try the released version

  26. added a commit that references this issue on Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions