I'm calculating acceleration value from my app. If acceleration z axis more than certain limit i'm calculating count. But this everything happen once i open the app. But when close the app, then move the device z axis i need to calculate and increase the count. So, how can i trigger my app without open?