For Android. Writes events and its time by one button pressing.