Q. I want to use the MapView control. Where do I get a Google API key?
A. Start at the Google API add-ons website, which lists all the steps you need to follow to register for the key: http://code.google.com/android/add-ons/google-apis/mapkey.html. As part of this process, you need to set up a Google account if you do not have one already.
Q. How do I design an application that needs more robust location information, such as an update when the location changes?
A. There are a number of ways to design LBS applications. For starters, the
LocationManager object allows you to register an activity for periodic updates of location information, including the ability to launch an intent when a specific location event occurs. Make sure you move all LBS tasks off the main UI thread, as they are time-intensive; use a worker thread, the AsyncTask class, or a background process instead. Also, only listen for location events when you must, to avoid performance issues on the device.
Was this article helpful?