Reputation: 425
I am creating dictionary and I need to display the data from the database in the ListView. Hope someone can help me. Here is the code:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ls = (ListView) findViewById(R.id.mainlist);
ls.setVisibility(View.VISIBLE);
Upvotes: 0
Views: 110
Reputation: 1059
You will need a custom ArrayAdapter and a method that returns all the values that you need from the database, probably a subclass of the SQLiteOpenHelper class. Read about them in detail and eventually you'll know the answer.
Upvotes: 1