vendredi 3 avril 2015

Get String[] from SQLite for Multispinner

I would like to get a String Array from my database of all contacts (TABLE_CONTACTS) to display them in a MultiSelectionSpinner.


Is there a way to change this code easy for my purpose?



String[] array = { "one", "two", "three" };
spinner = (MultiSelectionSpinner) findViewById(R.id.mySpinner1);
spinner.setItems(array);


The MultiSelectionSpinner is working with the three numbers, but I fall into despair while trying to get the contacts from my database.


I hope you can help me.


Aucun commentaire:

Enregistrer un commentaire