http://b.android.com On Jun 23, 11:27 am, Gary Kato <[email protected]> wrote: > http://developer.android.com/resources/tutorials/views/hello-spinner.... > There is an extra right parenthesis. "parent.getContext())" should be > "parent.getContext()". > > public class MyOnItemSelectedListener implements OnItemSelectedListener { > > public void onItemSelected(AdapterView<?> parent, > View view, int pos, long id) { > Toast.makeText(parent.getContext()), "The planet is " + > parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show(); > } > > public void onNothingSelected(AdapterView parent) { > // Do nothing. > } > > > > }- Hide quoted text - > > - Show quoted text -
-- 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

