This is my sprite class and i want to call the method on tapping the sprite and there should also b a time delay. The onGenerate() method is in activity class
public boolean onAreaTouched(TouchEvent pSceneTouchEvent,
float pTouchAreaLocalX, float pTouchAreaLocalY) {
if(pSceneTouchEvent.getAction()==TouchEvent.ACTION_DOWN){
this.clearEntityModifiers();
this.setVisible(false);
this.clearUpdateHandlers();
this.reset();
myActivity.onGenerate();
}