I tried using the NominatimPOIProvider as described in the Tutorial_2 on http://code.google.com/p/osmbonuspack/wiki/Tutorial_2 using that code:
GeoPoint startPoint = new GeoPoint(52.501397,9.620427);
NominatimPOIProvider poiProvider = new NominatimPOIProvider();
ArrayList<POI> pois = poiProvider.getPOICloseTo(startPoint, "cinema", 50, 0.1);
But I constantly get the error NominatimPOIProvider: request failed.
. Does anybody know how to fix or avoid that? Is there an alternative?
Oh, it is because newer SDK do not allow network communication in the main thread - as it is mentioned in the first chapter of the tutorial itself. So to run through the tutorial, you need to set the sdk version to something below Honeycomb, e.g.
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />
Now it works as expected.