by Silent_Noise » Thu Aug 06, 2009 2:40 am
Hi, everybody.
Hmmm...
My code is:
public void alert(){
new AlertDialog.Builder(reg.this)
.setMessage("Please, insert all needed information")
.setNeutralButton("Cancel",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton)
{
}
})
.show();
}
OnClickListener btnOnClick = new OnClickListener() {
public void onClick(View v) {
log=txt_log.getText();
pass=txt_pass.getText();
if ((log!=null)&(pass!=null)){
showDate();
return;
}
else{
alert();
return;
}
}
};
It doesn't work. Where is my mistake?