Honest wrote:
> The following is my code but some how it is not displaying String
> which is inside List<String>. and when i click on spinner it hangs
> somehow.

Check your stack trace for exceptions. The stack trace can be found in
adb logcat, DDMS, or the DDMS perspective in Eclipse.

> Spinner s1=new Spinner(this);
> 
> 
>               //String cityNames[]={"a","b","c"};
>               //String bankName[]=(String[])bankList.toArray();
>               //String banks[]=new String[bankList.size()];
>               ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
> android.R.layout.simple_spinner_item, bankList);

You do not appear to have defined bankList.

>               //ArrayAdapter<ArrayList<String>>= new
> ArrayAdapter<ArrayList<String>>
> (this,android.R.layout.simple_spinner_item,bankList);
>               //android.R.layout.simple_expandable_list_item_1
>               s1.setAdapter(adapter);
>               layout.addView(s1);


-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to