On Mar 4, 8:18 pm, TreKing <[email protected]> wrote:
>
> Whoops. I meant setOnItemSelectedListener(), that's the link in my original
> post and that's the anonymous class I posted in the example. Sorry for the
> confusion.

Cool, this appears to be working. Thanks a bunch!

        mDirectories.setOnItemSelectedListener(new
OnItemSelectedListener() {

            @Override
            public void onItemSelected(AdapterView<?> parent, View v,
int position, long id) {
                // Display the selection.
                Toast.makeText(VideoViewDemo.this,
mDirectories.getSelectedItem().toString(),
                        Toast.LENGTH_SHORT).show();
            }

            public void onNothingSelected(AdapterView<?> parent) {
                // do nothing
            }
        });

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to