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
When i start app, does not display a list of maps that can be download, it show a toast ask me if i am connected to internet. Second, if i try to create a route, it crash after red flag has been add to the map. the Logcat display "Call load or importOrLoad before routing"
Sorry, no idea. As this works for me on my device and in the simulator, I can only hope you spend a bit time in debugging this. Please make sure that you use 0.3 and what you can try is to implement the download differently or just try to ping the URL in a different way and see if this works or if there is an issue with your device or firewall etc.
Regarding your other issue: you should be able to use locally installed maps. Make sure you use the correct path.
Ah, maybe it is because your device is has only read access. Please see this issue #217 for a possible work around
I tested the sample app at Android 2.3 and 3 and it shows and downloads the remote data in both cases.
In Android 4.4 the remote list comes empty with the above exception (http or https).
My guess is that Downloader component does not work properly in all Android versions?
(The Samsung S2 has Android 4.1)
(We should have this conversation on the GraphHopper mailing list instead of the issues tracker)
If I understand what you're asking, you need to perform a query with different travel mode (foot) and a graph that supports it of course.
Having same issue Call load or importOrLoad before routing when testing in the Graphopper demo project. I have added files to the sdcard both map and gh folder. When i select destination on map app crashes. I was having graphhopper 0.3 version. i also tried 0.4 snapshot still the exception presists.
I've provided a workaround 'AndroidDownloader' so that the HttpClient instead of the plain HttpUrlConnection is used. But I have no idea what the real cause is. As Android has lots of problems related to certification stuff I guess it related to this or the SSL3 fallback or something. It could be important to find the cause as it might be a security problem (not that problematic for this download but for other stuff it could get important) and maybe someone else could invest a bit more time into debugging the plain 'Downloader' for Android version 4.*
If this works for at least one other dev, I'll merge the branch or merge better suggestions :)
Thanks! Understandable that they did so, but now the problem is that we were already using URLConnection before in our Downloader class and this made the problems with HTTPS. (I guess the problems are due to some certificates and apache http was using a different set or something, I really dislike this Android diversity mess and the 'platform independence' Google introduced)
Activity
karussell commentedon Sep 1, 2014
Discussion was moved from the mailing list: https://lists.openstreetmap.org/pipermail/graphhopper/2014-September/001191.html
First, we need to solve the problem that you cannot access the download website from android as reported here - looks like a similar issue to #127
karussell commentedon Sep 1, 2014
Sorry, no idea. As this works for me on my device and in the simulator, I can only hope you spend a bit time in debugging this. Please make sure that you use 0.3 and what you can try is to implement the download differently or just try to ping the URL in a different way and see if this works or if there is an issue with your device or firewall etc.
Regarding your other issue: you should be able to use locally installed maps. Make sure you use the correct path.
Ah, maybe it is because your device is has only read access. Please see this issue #217 for a possible work around
karussell commentedon Sep 2, 2014
The issue is because it did not properly load the graph and detects that when you try to route
I've tried it again after uninstalling data&app. See the apk at 0.3 on https://graphhopper.com/#community
devemux86 commentedon Sep 2, 2014
I tested the latest Android app from master and the remote download does not work too.
The exception returned in https://github.com/graphhopper/graphhopper/blob/master/android/src/com/graphhopper/android/MainActivity.java#L261 is:
karussell commentedon Sep 2, 2014
Strange. Emux, would you mind to try again HTTP, maybe the HTTPS itself makes the problem on some devices.
devemux86 commentedon Sep 3, 2014
I tested the sample app at Android 2.3 and 3 and it shows and downloads the remote data in both cases.
In Android 4.4 the remote list comes empty with the above exception (http or https).
My guess is that
Downloadercomponent does not work properly in all Android versions?(The Samsung S2 has Android 4.1)
karussell commentedon Sep 3, 2014
Hi Emux, big thanks for your investigations! That looks really ugly.
devemux86 commentedon Sep 3, 2014
Yes I see the same problem too.
I think the only needed permission is android.permission.INTERNET which
you have already.
It's worth also reading this about the recommended http client:
http://android-developers.blogspot.gr/2011/09/androids-http-clients.html
I tried with your server and the dataAsString comes filled with the
remote files.
Emux
10 remaining items
devemux86 commentedon Sep 4, 2014
(We should have this conversation on the GraphHopper mailing list instead of the issues tracker)
If I understand what you're asking, you need to perform a query with different travel mode (foot) and a graph that supports it of course.
babarmagma commentedon Sep 10, 2014
Having same issue Call load or importOrLoad before routing when testing in the Graphopper demo project. I have added files to the sdcard both map and gh folder. When i select destination on map app crashes. I was having graphhopper 0.3 version. i also tried 0.4 snapshot still the exception presists.
Any ideas?
trying to fix #251
karussell commentedon Jan 19, 2015
I've provided a workaround 'AndroidDownloader' so that the HttpClient instead of the plain HttpUrlConnection is used. But I have no idea what the real cause is. As Android has lots of problems related to certification stuff I guess it related to this or the SSL3 fallback or something. It could be important to find the cause as it might be a security problem (not that problematic for this download but for other stuff it could get important) and maybe someone else could invest a bit more time into debugging the plain 'Downloader' for Android version 4.*
If this works for at least one other dev, I'll merge the branch or merge better suggestions :)
karussell commentedon Feb 4, 2015
Ok, no feedback means all works ;) so merged it for now. Please try and report here if success or still problems
devemux86 commentedon Mar 6, 2015
I just tested it in KitKat and it works. :)
karussell commentedon Mar 6, 2015
Thanks for the feedback! And nice that it works!
devemux86 commentedon Mar 11, 2015
It's worth noting this:
http://developer.android.com/about/versions/android-5.1.html#http
karussell commentedon Mar 11, 2015
Thanks! Understandable that they did so, but now the problem is that we were already using URLConnection before in our Downloader class and this made the problems with HTTPS. (I guess the problems are due to some certificates and apache http was using a different set or something, I really dislike this Android diversity mess and the 'platform independence' Google introduced)
karussell commentedon Nov 20, 2015
See comment what probably really went wrong here.
Allow switching to miles/feet (graphhopper#251)