Hello all,
A method which can be used for finding the battery percentage of your device is found here:
I have tried it and it works great. If you have a closer look at the code there are two values curCapacity and maxCapacity. I want to be able to use these values in other calculations, yet when I try and do this I always get the error 'undeclared'.
Any ideas as to why?