MapActivity only showing blue screen [SOLVED]

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

MapActivity only showing blue screen [SOLVED]

Postby radioblaster » Fri Jul 31, 2009 5:36 pm

My map displayed fine last night but whenever I run my program today I simply get a blue screen with "Google" in the bottom left corner.
Log cat gives:
Code: Select all
07-31 12:24:19.659: ERROR/ActivityThread(732): Failed to find provider info for com.google.settings
07-31 12:24:20.879: INFO/MapActivity(732): Handling network change notification:CONNECTED
07-31 12:24:20.889: ERROR/MapActivity(732): Couldn't get connection factory client
07-31 12:24:21.489: DEBUG/dalvikvm(732): GC freed 3555 objects / 205032 bytes in 97ms
07-31 12:24:23.028: WARN/ActivityManager(581): Launch timeout has expired, giving up wake lock!


I have manfiest set up with the permissions and uses-library:
Code: Select all
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />

Code: Select all
<uses-library android:name="com.google.android.maps" />


I have my apikey set in the layout xml file.

My code right now is stripped down about as bare as it can get:
Code: Select all
@Override
   public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      
      // load the user interface
      setContentView(R.layout.trails_list_map);
      
      // connect to widgets and views on the UI
      initMap();
   }

@Override
   protected boolean isRouteDisplayed() {
      return false;
   }
   
   private void initMap() {
      mMapView = (MapView) findViewById(R.id.mapview);
      ZoomControls zc = (ZoomControls) mMapView.getZoomControls();
      LinearLayout zoomLayout = (LinearLayout) findViewById(R.id.zoomview);
      zoomLayout.addView(zc);
      mMapView.displayZoomControls(true);
      mMapView.setEnabled(true);
   }


I swear this worked last night so I have no idea why it won't work today. I have another app that uses a map view and the same api key and it is working fine so I'm certain it's not an api key issue.

Any ideas?
Last edited by radioblaster on Fri Jul 31, 2009 7:02 pm, edited 1 time in total.
radioblaster
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Jul 16, 2009 4:29 pm

Top

Postby radioblaster » Fri Jul 31, 2009 7:02 pm

Bah, what a waste of 4 hours. Turns out the problem was the emulator. I deleted and re-created my emulator and now the map is working correctly again.
radioblaster
Junior Developer
Junior Developer
 
Posts: 12
Joined: Thu Jul 16, 2009 4:29 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 4 guests