// a request to the server. Passing null as
// the
// first argument to reverseGeocode()
// results in
// a blocking call.
final ReverseGeocodeExchange ex =
reverseGeocoder
.reverseGeocode(
null,
origin,
choice.getValue(),
Integer.parseInt(_bearingEditField
.getText()),
0);
UiApplication.getUiApplication()
.invokeLater(new Runnable() {
/**
* @see java.lang.Runnable#run()
*/
public void run() {
_resultsField
.setText("Blocking method");
}
});
// In this case we did not provide a
// callback so we need to initiate
// the processing of the reverse geocoding
// result ourselves.
if (ex.getExceptionList().size() == 0) {
requestSuccess(ex);
} else {
requestFailure(ex);
}
} catch (final ReverseGeocodeException rge) {