You most likely have a bad battery. From what you describe the OS detects the charger properly and that the charger has enough amperage to charge the battery.
open