I'm a user HERE sdk Lite edition for android, mainly using the autosuggest search place feature. My application is already running and functioning properly. To this day problems arise so that they don't work. After I checked it turns out that in the SuggestCallback class section it return PARSING_ERROR. Please help
here is SuggestCallback class:
private final SuggestCallback autosuggestCallback = new SuggestCallback() {
@Override
public void onSuggestCompleted(@Nullable SearchError searchError, @Nullable List<Suggestion> list) {
if (searchError != null) {
//Log.d(LOG_TAG, "Autosuggest Error: " + searchError.name());
Toast.makeText(HereMapsActivity.this, "" + searchError.name(), Toast.LENGTH_SHORT).show();
return;
}
for (Suggestion autosuggestResult : list) {
String addressText = "Not a place.";
Place place = autosuggestResult.getPlace();
if (place != null) {
addressText = place.getAddress().addressText;
datatmp.add(new DataListLocation(
addressText,
place.getCoordinates().latitude,
place.getCoordinates().longitude
));
}else{
datatmp = new ArrayList<>();
}
adapterListLocation = new AdapterListLocation(HereMapsActivity.this, datatmp);
lstview.setAdapter(adapterListLocation);
}
progressDialog.dismiss();
}
};