开发者

Google Maps not Displaying on Droid, but does on Emulator

Ok, so I have my personal google apk that I built from the eclipse I am using. I know it works because on one of my apps the map displays without issue. So the problem I am having is th开发者_JAVA百科is.

When I run my app on the emulator with the debug key, it works no problem. When I run it on my phone with my key, nothing but the squares. I know it finds my location because my marker shows up and when tapped it tells me the proper location, just doesn't show the map. The key is valid (compared to the working app's key to make sure identical) and here is my coding

XML

JAVA

mc = mapView.getController();
lat = loc.getLatitude();
lon = loc.getLongitude();
p = new GeoPoint( (int)(lat*1E6), (int)(lon * 1E6));
mc.animateTo(p);
mc.setZoom(20); 

@Override
public void onResume()
{
lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000,50, locationListener);
super.onResume();
}

Any thoughts?


Is your device connected to the internet? i think the maps are downloaded from the internet, while the coordinates are received by the gps sensor

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜