The problem is not with the charger, since I tried with different chargers. I now noticed it always charges when I plug it in a socket, but the phone says it's not charging. Also, when I plug it to the computer, neither the computer nor the phone detect the connection.