In theory I added a counter that counts your steps for a minimum of 10 minutes and adds it to the database in the Contentprovider.