Step #1: Move loadWords()
into onCreate()
and get rid of the thread.
Step #2: Call getReadableDatabase()
or getWriteableDatabase()
and your query from an AsyncTask
started by your activity or fragment, setting your ListAdapter
in onPostExecute()
.