Code example for AutoCompleteTextView

Methods: showDropDown

0
		auto.setOnFocusChangeListener(new OnFocusChangeListener() {
			@Override 
			public void onFocusChange(View v, boolean hasFocus) {
				AutoCompleteTextView view = (AutoCompleteTextView) v;
				if (hasFocus) {
					view.showDropDown();
				} 
			} 
		}); 
 
	} 
 
	void playMusic() { 
		Intent intent = new Intent(getActivity(), VideoActivity.class);
		intent.putExtra("path", autoTv.getText().toString().trim());
		intent.putExtra("type", "remote");
		startActivity(intent);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java