Smile [Q] How to calculate my android battery capacity?

Hi guys,

As an Android programmer I have developed my own Android battery life app but I would like to know if is it possible to find with some way my battery capacity (programmatically)

I will appreciate for any kind of help

Thanks
Andreas