add flush method (android)