I have this java code:
@override
public void onClick(View view){
if (view= btAdd)
{
db.execSQL("INSERT INTO student VALUES (+etstantID.getText()++etstantaxe.getText()+
+etStatProg.getText())" ahosdlessage ("Success", "Record added.");
clearText();
}
}
I implemeted OnClickLister and automatically generated the onlick method, I should've 4 buttons with different function, but when I try to call the onclick method using the constructor: Constructor constructorName = new Contructor(); When I try to: constructorName.onclick(); Im getting an error cuz I need to pass something on the onclick method but I don't know what and how, I declared every button the java using FindViewByID I need every button to have a unique function