I build an application that collects data about the battery. In order to collect this data I need my application to run on the background in order to be able to collect this
You need to change your activities into Service