My Samsung Galaxy S 2 indicates it is charging but doesn't
There might be a problem with your micro-USB connector i.e the place where you connect the charger to the phone. Some times the pins present there bend out of place and so this can happen.

Take your phone for a repair.