i have written the code for geocoding..but unfortunately it does not work ie nothing is displayed on screen...i am attaching the code...can someone please tell me what is the fault in the code..thanks
public class geocoder extends Activity {
// private TextView output;
private LocationManager mgr;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mgr = (LocationManager) getSystemService(LOCATION_SERVICE);
Geocoder geocoder = new Geocoder(this, Locale.US);
// output = (TextView) findViewById(R.id.output);
String staddress = "Georgia Tech, Atlanta, GA";
// List<Address> loc = null;
try{
List<Address> loc = geocoder.getFromLocationName(staddress, 5);
}
catch(IOException e) {
Log.e("IOException", e.getMessage());
}
// output = (TextView) findViewById(R.id.output);
}
}