Updated MainActivity.java and activity_main.xml with autocomplete code