How to get current GPS location and show it on map by GPS service and map widget

This sample code describes how to start the location manager and get the device’s GPS position info.