Thanks for the suggestions Will and TreKing. I haven't tried the DialogInterface onClick handler yet. I thought OnItemLongClickListener might be a work around, but the following onItemLongClick handler never gets called.
Spinner s2 = (Spinner) findViewById(R.id.spinner_order); ArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource( this, R.array.tangled_list_orders, android.R.layout.simple_spinner_item); adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); s2.setAdapter(adapter2); s2.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { public boolean onItemLongClick(AdapterView<?> adapterView, View view, int position, long id) { Toast.makeText(TList.this, "spinner2 long clicked position " + position, Toast.LENGTH_SHORT).show(); return false; } }); On Apr 19, 4:10 pm, "~ TreKing" <treking...@gmail.com> wrote: > On Sun, Apr 18, 2010 at 8:45 PM, greg <sep...@eduneer.com> wrote: > > Any tips on how to detect the selection of an already selected item in a > > spinner? > > You can't. > > Optionally you could: > > 1 - Provide a separate "Update" button that the user presses to re-sort the > list after they've checked what they wanted > 2 - Set the selection in the drop down to a default (0) that prompts the > user for a selection after they've checked at least one item. Then after > they're done with the selection, they can rechoose the option to sort by > selection. > > ------------------------------------------------------------------------------------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://sites.google.com/site/rezmobileapps/treking > > -- > 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 > athttp://groups.google.com/group/android-developers?hl=en -- 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