@Ramezanpour2 : two messages at 1mn interval ???
Please have you seen this ? http://b4x.com/android/forum/threads/battery-remaining.32524/
Second question : using a service ? Have you took a look at the Beginners guide ???
We don't give away code, we try to help you to get YOUR CODE working.no dear i want a code for close the applications that running in backgruond
you haven't idea for calculate remaining tim of battery ????