Electronic device and method for inputting data into data entry field in electronic device
An electronic device includes: a communication module; a display; a memory, at least one processor operatively connected to the communication module, the display, and the memory; and wherein the memory stores instructions configured to, when executed, cause the at least one processor to: display an application screen of an application on the display, identify a data input field on the application screen, identify a data type corresponding to the data input field, display at least one external electronic device capable of providing data corresponding to the identified data type, receive the data corresponding to the identified data type from the at least one external electronic device, and enter the received data into the data input field.
1 . An electronic device comprising:
communication circuitry;
a display;
memory storing instructions; and
at least one processor operatively connected to the communication circuitry, the display, and the memory,
wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
display an application screen of an application on the display,
identify a data input field on the application screen,
identify a data type corresponding to the identified data input field using at least one of information about the application or screen recognition information about the application screen,
identify one or more external electronic devices by scanning using short-range communication through the communication circuitry,
transmit a message requesting a confirmation of capability of providing data corresponding to the identified data type to the one or more external electronic devices using the short-range communication through the communication circuitry,
receive a response to the message requesting the confirmation of capability of providing the data corresponding to the identified data type from at least one external electronic device,
display, on the application screen through the display, information corresponding to at least one external electronic device capable of providing the data corresponding to the identified data type,
receive the data corresponding to the identified data type from the at least one external electronic device, and
enter the received data into the data input field,
wherein the identified data type corresponds to the identified data input field on the application screen of the electronic device.
2 . The electronic device of claim 1 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
display a neighbor search icon on the display,
based on an input for the neighbor search icon, search for the one or more external electronic devices by using short-range communication through the communication circuitry, and
identify whether the one or more external electronic devices are capable of providing the data corresponding to the identified data type as a result of the search.
3 . The electronic device of claim 2 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
based on the data input field that is activated or selected, display a key input window for entering data into the data input field, together with the neighbor search icon, on the display.
4 . The electronic device of claim 3 , wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
display the received data in an input area of the key input window, and
enter the received data displayed in the input area into the data input field.
5 . The electronic device of claim 1 , further comprising a gyro sensor,
wherein the communication circuitry comprises ultra-wide band (UWB) communication circuitry, and
wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to:
obtain information about a magnetic north direction being an absolute azimuth through the gyro sensor,
obtain direction information about the at least one external electronic device through the UWB communication circuitry, and
identify an external electronic device in a specified direction with respect to the electronic device based on a difference between the information about the magnetic north direction and the direction information about the at least one external electronic device.
6 . The electronic device of claim 5 , further comprising a camera, wherein the instructions, when executed by the at least one processor individually or collectively, cause the electronic device to identify the external electronic device in an image captured using the camera among the at least one external electronic device based on the difference between the information about the magnetic north direction and the direction information about the at least one external electronic device and the image.
7 . The electronic device of claim 1 , wherein information about the application comprises at least one of an application type, a data input field type of the application, or a data input field hint of the application.
8 . The electronic device of claim 1 ,
wherein the screen recognition information is obtained by performing screen recognition on the application screen.
9 . The electronic device of claim 8 , wherein the screen recognition comprises text recognition, and
wherein the screen recognition information comprises at least one of a screen title on the application screen or a data input field title on the application screen.
10 . The electronic device of claim 1 , wherein the data type corresponding to the data input field comprises at least one of an email account, an email address, an application account, an application identifier (ID), a social network service (SNS) account, a SNS ID, a phone number, or an account number.
11 . The electronic device of claim 1 , wherein the information corresponding to the at least one external electronic device includes user profile information corresponding to each of the at least one external electronic device.
12 . A method of entering data into a data input field in an electronic device, the method comprising:
displaying an application screen of an application on a display;
identifying the data input field on the application screen;
identifying a data type corresponding to the identified data input field using at least one of information about the application or screen recognition information about the application screen;
identifying one or more external electronic devices by scanning using short-range communication through the communication circuitry;
transmitting a message requesting a confirmation of capability of providing data corresponding to the identified data type to the one or more external electronic devices using the short-range communication through the communication circuitry;
receiving a response to the message requesting the confirmation of capability of providing the data corresponding to the identified data type from at least one external electronic device;
displaying, on the application screen through the display, information corresponding to the at least one external electronic device capable of providing the data corresponding to the identified data type;
receiving the data corresponding to the identified data type from the at least one external electronic device through communication circuitry; and
entering the received data into the data input field,
wherein the identified data type corresponds to the identified data input field on the application screen of the electronic device.
13 . The method of claim 12 , further comprising:
displaying a neighbor search icon on the display;
based on an input for the neighbor search icon, searching for the one or more external electronic devices through the communication circuitry; and
identifying whether the one or more external electronic devices are capable of providing the data corresponding to the identified data type as a result of the search.
14 . The method of claim 12 , further comprising:
obtaining information about a magnetic north direction being an absolute azimuth through a gyro sensor,
obtaining direction information about the at least one external electronic device through the UWB communication circuitry, and
identifying an external electronic device in a specified direction with respect to the electronic device based on a difference between the information about the magnetic north direction and the direction information about the at least one external electronic device.
15 . The method of claim 14 , further comprising:
identifying the external electronic device in an image captured using a camera among the at least one external electronic device based on the difference between the information about the magnetic north direction and the direction information about the at least one external electronic device and the image.
16 . The method of claim 12 ,
wherein the screen recognition information is obtained by performing screen recognition on the application screen.
17 . A non-volatile storage medium storing instructions configured to, when executed by at least one processor of an electronic device, cause the at least one processor to perform:
displaying an application screen of an application on a display;
identifying a data input field on the application screen;
identifying a data type corresponding to the data input field using at least one of information about the application or screen recognition information about the application screen;
identifying one or more external electronic devices by scanning using short-range communication through the communication circuitry;
transmitting a message requesting a confirmation of capability of providing data corresponding to the identified data type to the one or more external electronic devices using the short-range communication through the communication circuitry;
receiving a response to the message requesting the confirmation of capability of providing the data corresponding to the identified data type from at least one external electronic device;
displaying, on the application screen through the display, information corresponding to the at least one external electronic device capable of providing the data corresponding to the identified data type;
receiving the data corresponding to the identified data type from the at least one external electronic device through communication circuitry; and
entering the received data into the data input field,
wherein the identified data type corresponds to the identified data input field on the application screen of the electronic device.