Code example for AutoCompleteTextView

Methods: setAdaptershowDropDown

0
			Log.d("AC-Helper", "onPostExecute");
			addressProgressBar.setVisibility(View.INVISIBLE);
			if(!isCancelled() && sugg != null && !sugg.isEmpty())
			{ 
		    	ArrayAdapter<String> adapter = new ArrayAdapter<String>(context, android.R.layout.simple_list_item_1, sugg);
		    	location_text.setAdapter(adapter);
		    	location_text.showDropDown();				
			} 
	    } 
	     
	} 
	 
	private class TrySaveInBackground extends AsyncTask<Context, Void, String> {
 
		@Override 
		protected String doInBackground(Context... context)  {
			String exceptionError = null;
			   try  
			   { 
				   if(isInEditMode) {
Stop searching for code, let great code find you!  Add Codota to your java IDE