问题描述
就像我在标题中所说的那样,我的应用程序表现得很奇怪.一切都很好,直到今天早上...我在将应用程序上传到市场之前更改了一些图像,然后我想再次查看一切是否还好...现在我不知道该怎么办...看看图片:
这是xml:
<com.google.android.maps.MapView android:id="@+id/mapview" android:layout_width="fill_parent" android:layout_height="wrap_content" 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>
任何人都可以提供一些建议吗?
推荐答案
在我的情况下,我不使用mapview.setstreetview(true或false),而是使用mapview.setsatelite(true),当我想在地图上使用satelite视图,然后set mapview.setsatelite. false)当我想使用街道视图时... 我希望这会帮助别人... 再次感谢您的时间和帮助...:D
其他推荐答案
我发现此错误(SetSatteLiteView + SetStreatView)是具体的Android版本的特定于. 它存在于2.2.1,但不存在于2.3.5(我已经检查了2个不同的设备)
其他推荐答案
这是Google地图中可能出现的一个可能的错误.
在这种情况下,错误是两个
mapView.setSatellite(true); mapView.setStreetView(true);
出现在代码中.该文件说,这是允许的,但实际上,这似乎引起了问题.浏览您的代码以查看是否包含这两个行,然后尝试评论其中一个,以查看是否修复了问题.
问题描述
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" 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.