AutoCompleteTextView is yet another basic controls in Android. The main purpose is to provide a suggestion list while you type on the textbox (as in the image below). This time instead of listing a regular ArrayList, I will show how to populate the list from a offline database table through SQLite.
Starts by creating a new project, create a BASIC PROJECT. –> the tutorial is here http://blog.kerul.net/2016/12/creating-new-android-studio-project.html .
The interface layout as in content_main.xml .
The database helper class as in MyDB.java
And the MainActivity.java is below. Bear in mind that the description of what the coding do are available in the comment.