Like i say in title my app is behaving strangely. It all worked fine until this morning... I changed some image in my app before uploading it onto market, and then i wanted to see once again whether everything is OK...Now i dont know what to do...see the image:
And here is xml:
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
开发者_C百科 android:clickable="true"
android:enabled="false"
android:layout_alignParentTop="true"
android:layout_above="@+id/seekBar1"
android:layout_weight="5"
android:apiKey="******-********************************" >
</com.google.android.maps.MapView>
Can anybody give some advice???
In my case I don't use mapView.setStreetView(true or false), but just use mapView.setSatelite (true) when i want to use Satelite view on the map, and set mapView.setSatelite.(false) when i want to use Street view... I hope that this will help somebody else... Once again thanks people for your time and help... :D
I found this bug (setSatteliteView + setStreatView) as a specific for concrete android versions. It exists on 2.2.1, but not on 2.3.5 (I have checked 2 different devices though)
This is a possible bug in Google Maps that has popped up as recently as the past few weeks.
Someone else had a similar problem here.
In that case, the error was that both
mapView.setSatellite(true);
mapView.setStreetView(true);
appeared in the code. The documentation says that this is allowed, but in practice, it seems to be causing problems. Look through your code to see if it contains both of those lines, and try commenting out one of them to see if it fixes things.
精彩评论