I an trying to use system.out to print various statements in my code
to check that they are working correctly but they don't seen to be
printing for some reason. I read that the printouts are suppose to be
in the logcat but its not there either.
a2 = (Spinner) findViewById(R.id.a2);
final String[] array2 = {"Terminal (on the end)", "Ventral (on
the bottom)", "Subterminal(pointed down)", "Dorsal (pointed up)"};
ArrayAdapter<String> adapter2 = new ArrayAdapter<String>(this,
android.R.layout.simple_spinner_item, array2);
adapter2.setDropDownViewResource
(android.R.layout.simple_spinner_dropdown_item);
a2.setAdapter(adapter2);
a2.setOnItemSelectedListener(a12);
a12 = new AdapterView.OnItemSelectedListener(){
public void onItemSelected(AdapterView parent, View v, int
position, long id) {
System.out.println("something selected");
}
public void
onNothingSelected(AdapterView
parent){
}
};
This is of the parts where i'm using system.out. All I want to do is
to make sure that when something was selected. it would print print
out a statement telling me so but it doesn't seem to print. Can any1
see whats wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---