A method (400, 500) for improving image quality of an image captured by an electronic device in accordance with an indoor/outdoor status of the electronic device, the electronic device including a first sensor and a second sensor different from the first sensor, the method comprising: receiving, at the electronic device, sun vector data associated with a position of the sun in the sky; and in response to a first sensor reading received from the first sensor meeting a first threshold and a second sensor reading received from the second sensor meeting a second threshold, automatically adjusting, at the electronic device, one or more camera functions of the electronic device to an outdoor setting, characterized in that the method (400, 500) comprises: determining (410, 504) whether a received signal strength indicator, RSSI, reading of a global positioning system, GPS, sensor exceeds a first threshold and additionally the sun vector data corresponds to a LUX reading of a light sensor, and if this determining (410, 504) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (410, 504) is negative: determining (420, 504) whether the RSSI reading of the GPS sensor exceeds the first threshold and additionally a WiFi RSSI reading is less than a second threshold, and if this determining (420, 405) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (410, 504) is negative: determining (430, 504) whether the WiFi RSSI reading is less than the second threshold and additionally the sun vector data corresponds to the LUX reading, and if this determining (430, 504) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (430, 504) is negative: adjusting the camera functions to an indoor setting. receiving, at the electronic device, sun vector data associated with a position of the sun in the sky; and in response to a first sensor reading received from the first sensor meeting a first threshold and a second sensor reading received from the second sensor meeting a second threshold, automatically adjusting, at the electronic device, one or more camera functions of the electronic device to an outdoor setting, characterized in that the method (400, 500) comprises: determining (410, 504) whether a received signal strength indicator, RSSI, reading of a global positioning system, GPS, sensor exceeds a first threshold and additionally the sun vector data corresponds to a LUX reading of a light sensor, and if this determining (410, 504) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (410, 504) is negative: determining (420, 504) whether the RSSI reading of the GPS sensor exceeds the first threshold and additionally a WiFi RSSI reading is less than a second threshold, and if this determining (420, 405) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (410, 504) is negative: determining (430, 504) whether the WiFi RSSI reading is less than the second threshold and additionally the sun vector data corresponds to the LUX reading, and if this determining (430, 504) is positive, adjusting (450, 508) the camera functions to the outdoor setting, whereas, if this determining (430, 504) is negative: adjusting the camera functions to an indoor setting.