berlog / androzic

Automatically exported from code.google.com/p/androzic
0 stars 0 forks source link

Network Connection Error on Galaxy Nexus #199

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Installed Androzic on my new (shiny!) Galaxy Nexus, asks for confirmation to 
download the world map.  If I say Yes, then I see the "Network connection 
error" message with a Quit button.

If I say No, then it says No maps found.  I haven't tried copying in some 
offline maps as yet, but will give that a shot.

Wifi was running and I was able to access the internet via other running 
applications at the time.

Android Version: 4.0.1
Model Number: Galaxy Nexus

Original issue reported on code.google.com by craig.fo...@gmail.com on 23 Dec 2011 at 12:00

GoogleCodeExporter commented 8 years ago
I have exactly the same issue. 

Original comment by pjpbro...@gmail.com on 23 Dec 2011 at 5:09

GoogleCodeExporter commented 8 years ago
similar issue.
HTC One X, Android 4.0.3

Difference - If I say No, all is ok. But after relaunching, the application 
asks for confirmation to download the world map again.
wifi and 3G are on.

Original comment by lan...@gmail.com on 19 Jun 2012 at 4:08

GoogleCodeExporter commented 8 years ago
The bug is Androzic trying to do a HTTP POST to

   http://androzic.googlecode.com/files/world.ozfx3

which fails gives a 404 error, e.g. when you go through a proxy, the proxies 
log shows (squid access log):

  1340447837.348    251 192.168.1.66 TCP_MISS/404 1519 POST http://androzic.googlecode.com/files/world.ozfx3 - DIRECT/173.194.69.82 text/html

Solution: Download http://androzic.googlecode.com/files/world.ozfx3 and save it 
to Androzic's map directory (on my phone, it's /mnt/sdcard/androzic/maps/). It 
will no longer complain on startup.

Original comment by cnvo...@gmail.com on 23 Jun 2012 at 10:53

GoogleCodeExporter commented 8 years ago
Note that Splash.java, line 358 ( http://goo.gl/x5yoo ) clearly uses GET to 
fetch the map, I don't know why my phone (Samsung Galaxy S2, running 
Cyanogen-Mod 9 Nightly 20120309 which is Android 4.0.3) does HTTP POST:

    URL u = new URL("http://androzic.googlecode.com/files/world.ozfx3");
    HttpURLConnection c = (HttpURLConnection) u.openConnection();
    c.setRequestMethod("GET");  /* <---- !!!!!!!!!!!!!! */
    c.setDoOutput(true);
    c.connect();

Original comment by cnvo...@gmail.com on 23 Jun 2012 at 11:00