GUIStatics cannot be resolved to a variable

view story

http://stackoverflow.com – I'm trying to get the user location name from the following code. I'm receiving error as GUIStatics cannot be resolved to a variable. How to correect it. Also can anyone tell is this code the correct method to achieve the location name or not. package com.example.location; import java.util.List; import java.util.Locale; import android.location.Address; import android.location.Criteria; import android.location.Geocoder; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.location.LocationProvider; import android. (HowTos)