I was trying to figure out the way to calculate the Estimated remaining battery time of battery and this post did help me to do so but it isn't much accurate as the Android OS shows in: Settings > Battery option. Is there any way to pull out that approx. remaining battery timing / charging time left through Android's Internal function or Reflection?
Pic for reference: Estimated remaining battery time - Red outlined
Any help would be much appreciated!