i'm using a timer wich needs context.. Now i have the following code :
mContext=context;
mEventID=eventID;
CountDownTimer cdTimer = new CountDownTimer(20000, 1000) {
public void onTick(long millisUntilFinished) {
// Do nothing onTick... Sorry
}
public void onFinish() {
int deletedRows = mContext.getContentResolver().delete()
// ..rest of code
}
};
cdTimer.start();
Is this safe to use , or may i be leaking the context here? btw. this is in a broadcastreceiver.