No, the whole thing should look like:
*Toast.makeText(* parent.getContext(), "The planet is " + 
parent.getItemAtPosition(pos).toString(), Toast.LENGTH_LONG).show();

As ThaMe90 pointed out, Toast.makeText takes 3 parameters, not 1. The first 
parameter is a context which parent.getContext() returns. The next is a 
string, which is "The planet is " + 
parent.getItemAtPosition(pos).toString(). The third is a number which is 
supplied by Toast.LENGTH_LONG. Then there is the closing parentheses for 
Toast.makeText. 

-- 
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

Reply via email to