This interface exposes the following method:
This callback is called whenever the measurement process is finished. It accepts the measurement error as a parameter. If error = 0 then no error occurred, otherwise, ‘error’ is equal to a number corresponding to the error.
Note: The above interface must be implemented by the activity that manages the measurement.