[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Mark Murphy
Honest wrote: I want to add String values in spinner at run time. My problem is that the value is not available in res file. Can some one tell me how can i do it ? I just want to insert one String array or simple String run time in Spinner. Step #1: Put your initial values in an

[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Honest
The following is my code but some how it is not displaying String which is inside ListString. and when i click on spinner it hangs somehow. Spinner s1=new Spinner(this); //String cityNames[]={a,b,c}; //String bankName[]=(String[])bankList.toArray();

[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Mark Murphy
Honest wrote: The following is my code but some how it is not displaying String which is inside ListString. 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