Hi,

I have to two spinner views in my App. What I want is this.  The data
in second spinner view depends item selected in the first spinner
view. Here is the code. sUpdate is the first spinner view. I use
showAlter to to inform me that callback function
setOnItemSelectedListener is called as I change item selected.
However, as I changed item slected in the first spinner view, nothing
happened. Please help me out.

Thanks,
Senshan


 sUpdate.setOnItemSelectedListener(onItemSelectedListener);
            onItemSelectedListener = new AdapterView.OnItemSelectedListener()
{
                public void onItemSelected(AdapterView parent, View v, int
position, long id) {
                        showAlert(null,position,v.toString(),"OK",false);
                }

                public void onNothingSelected(AdapterView parent){
                        showAlert(null,1,parent.toString(),"OK",false);
                }
            };

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to