Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

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

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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 [email protected] on 3 Jun 2010 at 8:06

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant