savebutton.setonclicklistenser:
if(edittext.getText().equals(""))
{
Toast.makeText(getBaseContext(),"enter data first",Toast.LENGTH_LONG);
}
else
{
//all the view insert data query stuff
//toast.maketext("data inserted");
}
but It shows result: "data inserted"
on click view button it shows all the empty slots which i added as string on tv.append("slot 1 "+slot1+"");
veiws all the slots like "slot1" string i passed in append method.
change
if(edittext.gettext().equals(""))
condition toif(edittext.getText().toString().trim().equals(""))
addtoString()
.