I have code like this
package collfw;
public class A {
int Eid;
Context c1;
public void setEid(int id) {
if (id < 0) {
Eid = 0;
} else {
Eid = id;
}
}
public int getEid() {
return Eid;
}
public contentvalues adddata()
{
contentvalues cv=new contentvalues()
cv.put(ID,getEid());
return cv;
}
public void retrivedata() {
cursor c = db.rawquery("select * from employee");
**Toast.maketext(c1, getEID, toast.Long_SHORT).show();**
}
}
Here toast is giving me the error and logcat shows println can't be null and if in place of c1 if I use "context" then it is not accepting, Can anyone please explain me what is context and how can I use it here.