Your Android has more measuring tools than you think.
If rain falling on a flat surface did not flow away, the height of the accumulated water would represent the amount of rainfall ...