kimshuye / gmaps-samples

Automatically exported from code.google.com/p/gmaps-samples
0 stars 0 forks source link

articles-android-webmap doesn't work; broken example #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download from SVN /trunk/articles-android-webmap
2. Import workspace into eclipse
3. Run

All though this compiles and deploys to the Emulator (tested in API mode and 
normal Android Mode) in every version of the API it crashes on the emulator; 
and on my android phone (1.5); 

The Application WebMapActivity (process com.google.android.examples.webmap) 
has stopped unexpectedly. Please try again. [Force Close]

Original issue reported on code.google.com by pcdevils on 27 Feb 2010 at 10:09

GoogleCodeExporter commented 9 years ago
Change WebMapActivity.java as:

   private Location mostRecentLocation= new Location("");

and

   private void getLocation() {....
   Location tmp = locationManager.getLastKnownLocation(provider);
       if (tmp!=null) 
       mostRecentLocation=tmp;
   }

Original comment by umut.kah...@gmail.com on 3 Jun 2010 at 8:06

Attachments: