onResume()Androidアクティビティのメソッドに以下のコードを追加しました。
username.addTextChangedListener(this);
usernames_adapter = new ArrayAdapter<String>(this,
android.R.layout.simple_dropdown_item_1line,
users.getUserList());
username.setAdapter(usernames_adapter);
usernames_adapter.setNotifyOnChange(true);
SQLスクリプトを使用してデータベースにデータを挿入しています。に挿入されたデータを表示する必要がありますusername(usernameはAutoCompleteTextView)挿入直後です。 . を使用しましたが、機能usernames_adapter.setNotifyOnChange(true);していません。Force Stopに挿入されたデータを表示するには、アプリケーションを使用する必要がありAutoCompleteTextViewます。
どうすればこれを解決できますか?