First convert your EditText->AutoCompleteTextView.
add also store shared preferences data into string array list.
then after used below code like …
String[] countries = getResources().getStringArray(R.array.list_of_countries_name);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,countries);
mAutoCompleteTextView.setAdapter(adapter);
mAutoCompleteTextView.setThreshold(1);
solved how show recently entered text in edit text after entering as suggestion later on using shared preferences?