I'll do it like this............... Spinner s1 = (Spinner) findViewById(R.id.spinner1); ArrayAdapter<CharSequence> adapter = new ArrayAdapter(getApplicationContext(),android.R.layout.simple_spinner_dropdown_item,filenameList); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); s1.setAdapter(adapter);
where fileNamesList is an arraylist of file names u want to display.............. On Wed, Jan 21, 2009 at 6:25 PM, Naina K <[email protected]> wrote: > > Hi, > > This is Naina. I am trying to write an application where I need to > list down all file names and using Spinner, i want to select the > required file. Could you please let me know about this. > > Thanks, > > Naina > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

