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();
				} 
			} 
		}); 
//		auto.setOnItemClickListener(l) 
		 
	} 
  
	  
	void gotoMusicPlay() { 
 
 		Intent intent = new Intent(getActivity(),MusicActivity.class);
 		intent.putExtra("path", autoTv.getText().toString().trim());
		intent.putExtra("type", "remote");
		startActivity(intent);
	}