Hi,
I'm currently trying out the google's various android examples at http://developer.android.com/guide/tutorials/views/hello-spinner.html
BUT I can't seem to get this part to work even though the code is exactly the same as the one provided in the website.
Spinner s = (Spinner) findViewById(R.id.spinner);
Eclipse keeps saying "Cannot cast from View to Spinner"
Anyone of you guys kno how to resolve this?
Thanks.
EDIT: Thanks guys! I made a noob mistake, my class was also called Spinner hence my Spinner declaration was actually declaring my class instead of the spinner widget, silly me, thanks again!