[android-developers] Re: Populating a Spinner from SQLite

2008-10-19 Thread humanoid
Thanks GUS! I actually figured it out myself. Now my next problem is how to set the spinner to show the position based on the _id when I go back to a page. On Oct 18, 4:38 pm, GUS [EMAIL PROTECTED] wrote: Well, I have an application that does that, but its for version m5. The code was

[android-developers] Re: Populating a Spinner from SQLite

2008-10-19 Thread GUS
As far as I remember you can use the method setSelection(int position). On 19 out, 10:11, humanoid [EMAIL PROTECTED] wrote: Thanks GUS! I actually figured it out myself. Now my next problem is how to set the spinner to show the position based on the _id when I go back to a page. On

[android-developers] Re: Populating a Spinner from SQLite

2008-10-18 Thread GUS
Well, I have an application that does that, but its for version m5. The code was something like this: // SPINNER s1 = (Spinner) findViewById(R.id.spinner1); ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource(