Look at the main notepad tutorial.
http://code.google.com/android/intro/tutorial-ex1.html
So it's FROM the DB columns TO the visual TextView.
- Juan
On Oct 25, 7:17 am, Frew <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Let me explain what I am trying to do before I explain my problem.
> I'd like to have a dropdown menu (Spinner) that has a different "inner
> value" than that which is displayed. I am trying to load data stored
> in an SQLite database. Alright, enough of that.
>
> So I figured that a SimpleCursorAdapter would be the way to do this,
> but I can't for the life of me figure out where to go from there.
> Here is a snippet of my current code:
>
> String[] from = new String[] { Constants.NAME, Constants._ID };
> // I know this is wrong, but this is what I am most confused about
> int[] to = new int[] { R.id.search_location };
> SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
> R.id.search_location, c, from, to );
> adapter.setDropDownViewResource(android.R.layout.simple_spinner_item);
> spinner.setAdapter(adapter);
>
> So anyway, do I need to make a custom layout just so that I can do
> what I want, or is there an easier way to do this? Any help at all
> would be appreciated.
>
> Thanks!
> -fREW
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---