Closed GoogleCodeExporter closed 8 years ago
I have the same problem.
OSMDRoid 3.0.7 (3.0.6 the same problem), Android 2.3.6
Original comment by juri...@gmail.com
on 3 Mar 2012 at 12:33
Note that these errors don't appear on an AVD with Android 2.3.3. But some
(few) tiles remain unloaded.
Here is the whole code:
public class NavigationActivity extends Activity {
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MapView map = (MapView) findViewById(R.id.map);
map.setTileSource(TileSourceFactory.MAPNIK);
map.setBuiltInZoomControls(true);
map.setMultiTouchControls(true);
MapController mapController = map.getController();
mapController.setZoom(16);
int lat = 48131174;
int lon = -1637256;
mapController.setCenter(new GeoPoint(lat, lon));
}
}
and the main.xml layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.osmdroid.views.MapView android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
</LinearLayout>
Original comment by www.trad...@free.fr
on 9 Mar 2012 at 9:57
[deleted comment]
[deleted comment]
This error:
Error downloading tile: /12/2027/1424
java.lang.NullPointerException
was likely fixed in issue 325.
Are you getting an actual crash or just an exception being logged into Logcat?
Original comment by kurtzm...@gmail.com
on 6 Apr 2012 at 9:40
I don't have a crash, I just have:
- exceptions in Logcat
- and tiles that remain missing (greyed) in spite of all attempts to load them:
zooming in/out, or moving the map back and forth, or exiting/restarting the
app.
When I come back to OSMDroid 3.0.5, all tiles immediately loads without any
problem (same time, same kind of Internet access, same map provider).
Note that I use the OSMDroid 3.0.7 jar published, without any patch.
Maybe something wrong or missing in my code (not very complicated - see above)?
Original comment by www.trad...@free.fr
on 7 Apr 2012 at 4:38
I had this problem too, but I change to
osmdroid-android-3.0.8-20120208.220818-1.jar
and it seems to work fine both online and offline, but why virsion 8 is not
listed in this site
Original comment by 07n...@gmail.com
on 20 Apr 2012 at 8:05
I just updated my app from Osmdroid 3.0.5 to osmdroid-android-3.0.8.jar (which
is now published here).
Initially, I got the same java.lang.NullPointerException errors.
I completely cleaned the SD card (containing the cache of tiles), and now
everything is fine.
One additional remark: upgrading my app from Osmdroid 3.0.5 to 3.0.8 was a
simple replacement of the jar: no code change needed. This was not the case to
upgrade from 3.0.5 to 3.0.7 => good job, guys!
Original comment by www.trad...@free.fr
on 25 Apr 2012 at 8:49
It sounds like this issue has been resolved, so I will close it. Glad it's
working for you now!
Original comment by kurtzm...@gmail.com
on 19 Jul 2012 at 8:27
osmdroid 4.3. I've got the same problem. Please, fix it.
Original comment by dolgopol...@gmail.com
on 27 Jul 2015 at 9:22
Original issue reported on code.google.com by
www.trad...@free.fr
on 28 Feb 2012 at 4:33