On Sun, Jul 1, 2012 at 6:43 PM, Ina Gupta <[email protected]> wrote:
> my problem is >> in a screen i have two spinners..in ist spinner i have a
> list of movies wen we selct a movie from that spinner..2nd spinner wil
> contails list of theaters related to that selcted movie only.... i m new to
> android juzz tryng at static level..
>
All right, so how much have you done yet? Have you populated the first
spinner, and used its onItemSelectedListener?
If yes, then you can easily proceed using database. But, as you told, you
want to do it at static level (without using database), so use your own
logic like associating the theatres with the movie:
For eg: String[] movie_1 = new String[]
{"theatre_1","theatre_2","theatre_3"};
String[] movie_2 = new String[]
{"theatre_4","theatre_5","theatre_6"};
and then according to the selected movie, populate the second spinner with
the array values.
So, do you got, what I mean?
--
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