When samsung galaxy S4 is frozen ( phone hanged) you can perform this

hard reset method to bring the phone to normal stage. Remember all the data

will be lost after performing this hard reset method. look at the  the screen shots

below and proceed as per that. The phone will come to normal stage after this

Hard setting method.

 

samsung galaxy s4 hard reset