This application provides accurate detection result for the ambient environment type(indoor, semi-outdoor, outdoor). It uses 3 lightweight sensing resources on mobile phones, i.e., light sensor, cellular signal and magnetism signal, which bring little overhead for the battery.