The phone is mounted on a scale with a hole at the edge. The app counts the number of oscillations and time period and hence calculates g. Enter the number of oscillations you want, the length and then press start and make the setup oscillate. It will give you the g value after the oscillations.