Method for setting approach threshold value of mobile terminal and mobile terminal
暂无分享,去创建一个
The invention relates to the technical field of mobile terminals, in particular to a method for setting an approach threshold value of a mobile terminal and the mobile terminal. The method comprises the steps that when reflected light reflected by a reflection surface is received, an RGB sensor is used for detecting the spectrum of the reflected light; the color of the reflection surface is determined according to the detected spectrum; according to the color of the reflection surface and a preset approach distance, a current approach threshold value is determined, and the current approach threshold value is used as the approach threshold value of the mobile terminal. The color of the reflection surface is determined according to the spectrum of the reflected light reflected by the reflection surface, and the current approach threshold value is determined according to the color of the reflection surface and the preset approach distance, so that different approach threshold values of the mobile terminal are set according to the current reflection surface, flexibility of the setting mode of the threshold value of the mobile terminal is improved, the error rate of turning on and turning off of a mobile terminal screen is greatly lowered, and operation property of the mobile terminal is improved.