I\'m writing an app that constantly polls the device\'s sensors and every so often should write down some statistics to a file. This could be as fast as once a second or as
If the app should work in standby then AlarmManager. If not then Handler. AlarmManager will wake CPU therefore it will drain battery more, while Handler will not work on standby.