You don't have to implement the listener on the activity to use it.
You can just make a new OnItemSelectedListener and then use
spinnerControl.setOnItemSelectedListener(listener) to achieve the same
thing.  Of course first you'll have to grab a reference to the spinner
with findViewById.

On Apr 8, 8:31 am, skera <szrnka.pe...@gmail.com> wrote:
> Problem solved :)
> The other class I extended the Activity class and implemented the
> AdapterView.OnItemSelectedListener which is necessary for a Spinner.
> I've deleted the implements part of the code, and now I can switch
> between the activites. But in activity2 the spinner selector doesn't
> work.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to