1. A method of adjusting execution state of electronic device for an electronic device, wherein the electronic device comprises a detecting unit and a processing unit, comprising: detecting a current environmental condition through the detecting unit to generate a current environmental signal and transmitting the current environmental signal to the processing unit; reading a current execution state of the electronic device through the processing unit; comparing with a state look-up table of the electronic device to allow the current environmental signal to correspond to a predetermined environmental condition in the state look-up table of the electronic device; determining whether the current execution state of the electronic device conforms to a predetermined execution state corresponding to the predetermined environmental condition in the state look-up table of the electronic device, wherein the state look-up table of the electronic device records the predetermined execution state of the electronic device or at least an electronic device around the electronic device under the predetermined environmental condition; and if not, adjusting the current execution state of the electronic device by the processing unit to allow the current execution state to be the same with the predetermined execution state.