1. A method for use in an electronic device, the method comprising: displaying a window associated with a messenger application, the window including a message display region, an input region, and a camera icon; displaying one or more of a sent message and a received message in the message display region in the window associated with the messenger application; detecting a first touch input to the window associated with the messenger application, wherein the first touch input corresponds to a touch on the camera icon displayed in the window associated with the messenger application; in response to the detecting of the first touch input, displaying a preview screen of an image to be captured; detecting a second touch input associated with capturing an image while the preview screen is displayed; in response to the detecting of the second touch input, capturing the image; and transmitting the captured image to the at least one other electronic device.