I'm make a EditText and the value i got from Firebase, it is possible if edittext is not null then enter key pressed automatically
private void init(){
    Log.d(TAG, "init: initializing");
    if (mSearchText != null){
       what must i write here?
    }
    mSearchText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
        @Override
        public boolean onEditorAction(TextView textView, int actionId, KeyEvent keyEvent) {
            if(actionId == EditorInfo.IME_ACTION_SEARCH
                    || actionId == EditorInfo.IME_ACTION_DONE
                    || keyEvent.getAction() == KeyEvent.ACTION_DOWN
                    || keyEvent.getAction() == KeyEvent.KEYCODE_ENTER){
                //execute our method for searching
                geoLocate();
            }
            return false;
        }
    });
 
     
     
    