Actually, the day before yesterday, my phone (Samsung Galaxy Note 2) did something similar. I was playing with it plugged into the charger, I had 68% charge left on the battery and the phone screen...