when nothing selected from the spinner it shows alert message in android
when nothing selected from 开发者_Go百科the spinner it shows alert message in android
First refer this article already provided on the Android site itself: http://developer.android.com/resources/tutorials/views/hello-spinner.html ,
And find the below method:
public void onNothingSelected(AdapterView parent) {
// display your alert box
}
精彩评论