If your SAMSUNG I9150 Galaxy Mega 5.8 is stuck or frozen, You can perform a soft reset operation. Check out how to force restart Android 4.3 Jelly Bean. As a result your SAMSUNG I9150 Galaxy Mega 5.8 should reboot and start running again.
Remove and replace the battery.
Now press the Power button, and wait until the phone turns on.