handler = new Handler(new Handler.Callback() {
@Override
public boolean handleMessage(Message msg) {
if (msg.what == TRIGGER_AUTO_COMPLETE) {
if (!TextUtils.isEmpty(autoCompleteTextView.getText())) {
makeApiCall(autoCompleteTextView.getText().toString());
}
}
return false;
}
});
I am trying to use this piece of code ,in a project with target sdk 30.As i can see the constructor is deprecated ,and i do not know how to "convert" it.