My Galaxy Tab 2 10.1 powers off each time I disconnect the power/sync cable or when I connect it to a AC power source. It just shuts off without warning.
closed as not a real question by ce4, Al Everett, Izzy, Flow♦, roxan Sep 8 '12 at 2:44
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
Without further details, I believe you've got an issue with the port where you connect the cable that causes the device to shutdown.
Some short-circuit happens and the device gets turned off.
My recommendation, take it to repair with or without warranty. Don't let this continue much longer or the device eventually will get irreparably damaged.
Ps: Assuming you've tried another cable and power jack...