How to get battery level with 1 % accuracy .
[UIDevice currentDevice].batteryLevel
Will give battery level with accuracy of 5%. But
If you're jailbroken, you can simply use
int percent = [(SBUIController*)[objc_getClass("SBUIController") sharedInstance] displayBatteryCapacityAsPercentage];
This method is present on iOS 4.3+, and is probably what Battery Doctor is using.