Solved! my tablet stays charged while plugged up but not after unplugging

Solution
You started two threads with the same question and on the other one, you were told it must be a defective battery.

Buy a new one but be ready to spend real money - the cheap ones can self-combust.