CN111090529A - Method for sharing information and electronic equipment - Google Patents

Method for sharing information and electronic equipment Download PDF

Info

Publication number
CN111090529A
CN111090529A CN201911185752.9A CN201911185752A CN111090529A CN 111090529 A CN111090529 A CN 111090529A CN 201911185752 A CN201911185752 A CN 201911185752A CN 111090529 A CN111090529 A CN 111090529A
Authority
CN
China
Prior art keywords
input
electronic device
target
control
target content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911185752.9A
Other languages
Chinese (zh)
Other versions
CN111090529B (en
Inventor
张乾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911185752.9A priority Critical patent/CN111090529B/en
Publication of CN111090529A publication Critical patent/CN111090529A/en
Application granted granted Critical
Publication of CN111090529B publication Critical patent/CN111090529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the invention provides an information sharing method and electronic equipment, which are applied to the technical field of communication and are used for solving the problems of complicated sharing operation and long time consumption by means of a third-party application program during information sharing. The method comprises the following steps: the first electronic device receives a first input; responding to the first input, and receiving target content sent by a server by first electronic equipment; when a target input frame is displayed on the first interface of the first electronic device, if the operation focus is on the target input frame, the second electronic device displays the target content in the target input frame, or if the operation focus is not on the target input frame, the second electronic device copies the target content to a clipboard; the target content is the content transmitted to the server by the first electronic device, and the first electronic device and the second electronic device both log in the same account.

Description

Method for sharing information and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for sharing information and electronic equipment.
Background
With the development of electronic device technology, users use electronic devices more and more frequently, and users usually have a plurality of electronic devices, and content sharing is often required among the plurality of electronic devices.
In the related art, when content is shared among a plurality of electronic devices, content to be shared needs to be copied, and then the copied content to be shared is transmitted to an opposite-end electronic device through a third-party application (e.g., social software). For example, the user has both a mobile phone and a tablet computer, and when the user plays a game on the tablet computer, the user needs to log in on the tablet computer by using the verification code in the mobile phone, and at this time, the user sends the copied verification code to the tablet computer through third-party application software in the mobile phone.
However, the method of sharing information by using a third-party application is not only cumbersome, but also time-consuming.
Disclosure of Invention
The embodiment of the invention provides an information sharing method and electronic equipment, and aims to solve the problems of complex sharing operation and long time consumption by means of a third-party application program when information is shared.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a method for sharing information, which is applied to a first electronic device, and the method includes: the first electronic device receives a first input; responding to the first input, and receiving target content sent by a server by first electronic equipment; when a target input frame is displayed on the first interface of the first electronic device, if the operation focus is on the target input frame, the second electronic device displays the target content in the target input frame, or if the operation focus is not on the target input frame, the second electronic device copies the target content to a clipboard; the target content is the content transmitted to the server by the first electronic device, and the first electronic device and the second electronic device both log in the same account.
In a second aspect, an embodiment of the present invention provides a method for sharing information, which is applied to a second electronic device, and the method includes: the first electronic equipment receives a third input, wherein the third input is an input for selecting target content in the second interface; responding to the third input, and displaying a second control on the second interface by the second electronic equipment; the second electronic equipment receives a fourth input aiming at the second control; and responding to the fourth input, transmitting the target content to the server, wherein the content stored in the server can be accessed by a second electronic device, and the first electronic device and the second electronic device both log in the same account.
In a third aspect, an embodiment of the present invention further provides a first electronic device, where the first electronic device includes a display module, a copy module, a first receiving module, and a second receiving module, where: the first receiving module is configured to receive a first input; the second receiving module is configured to receive, in response to the first input received by the first receiving module, target content delivered by a server; the display module is configured to, when a target input box is displayed in a first interface of the first electronic device, display the target content in the target input box if an operation focus is on the target input box; or, the copy module is configured to copy the target content to a clipboard if the operation focus is not in the target input box; the target content is the content transmitted to the server by the first electronic device, and the first electronic device both log in the same account.
In a fourth aspect, an embodiment of the present invention further provides a first electronic device, where the first electronic device includes a receiving module, a display module, and a transmission module, where: the receiving module is configured to receive a third input, where the third input is an input for selecting a target content in the first interface; the display module is configured to respond to the third input received by the receiving module and display a second control on the first interface; the receiving module is further configured to receive a fourth input for the second control; the transmission module is configured to transmit the target content to a server in response to the fourth input received by the receiving module, where the content stored in the server is accessible to a second electronic device, and the first electronic device and the second electronic device both log in to the same account.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for sharing information according to the first aspect.
In a sixth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the method for sharing information according to the first aspect.
In the embodiment of the present invention, since both the first electronic device and the second electronic device log in the same account, when the first electronic device displays a target input box in a first interface of the first electronic device after receiving a target content sent by the server, the first electronic device may perform different operations on the target content by determining whether an operation focus is currently in the target input box, for example, if the operation focus is in the target input box, the target content is displayed in the target input box, or if the operation focus is not in the target input box, the target content is copied to the clipboard. Therefore, the second electronic equipment can quickly, conveniently and accurately complete information sharing between the first electronic equipment and the second electronic equipment through the server without passing through a third-party application program.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for sharing information according to an embodiment of the present invention;
fig. 3 is a second flowchart illustrating a method for sharing information according to an embodiment of the present invention;
fig. 4 is a schematic view of an interface applied by a method for sharing information according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of an interface applied by a method for sharing information according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, for the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same items or similar items with substantially the same functions or actions, and those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order. For example, the first input and the second input are for distinguishing different inputs, rather than for describing a particular order of inputs.
An execution subject of the method for sharing information provided in the embodiment of the present invention may be an electronic device, or may also be a functional module and/or a functional entity capable of implementing the method for sharing information in the electronic device, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily describe the method for sharing information provided by the embodiment of the present invention.
Taking an electronic device (including the first electronic device and/or the second electronic device described below) as an example of a terminal device, the terminal device in the embodiment of the present invention may be a mobile terminal device, or may be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the method for sharing information according to the embodiment of the present invention, taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for sharing information provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for sharing information may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the method for sharing information provided by the embodiment of the invention by running the software program in the android operating system.
The method for sharing information according to the embodiment of the present invention is described below with reference to a flowchart of the method for sharing information shown in fig. 2, where fig. 2 is a flowchart of the method for sharing information according to the embodiment of the present invention, and is applied to a second electronic device, and includes steps 201 to 203:
step 201: the first electronic device receives a first input.
For example, the first input may be: the click input of the user on the current interface, or the voice instruction input by the user, or the specific gesture input by the user may be determined according to the actual use requirement, and the embodiment of the present invention is not limited.
For example, the click input in the present application may be a single click input, a double click input, or any number of click inputs; the click input may be a long-press input or a short-press input. The specific gesture in the application may be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
Step 202: and responding to the first input, and the first electronic equipment receives the target content sent by the server.
Step 203: when a target input frame is displayed on the first interface of the first electronic device, if the operation focus is on the target input frame, the first electronic device displays the target content in the target input frame, or if the operation focus is not on the target input frame, the first electronic device copies the target content to a clipboard.
In an embodiment of the present invention, the target content is content transmitted to the server by the second electronic device, and the first electronic device and the second electronic device both log in the same account.
Illustratively, the target input box is a content input area, and the user can input the target content in the target input box.
For example, the target input box is a position on the first interface where content can be input, and the shape of the target input box may be any possible shape such as a circle, a rectangle, a triangle, a diamond, a circle, or a polygon, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited.
Optionally, before step 201, step a is included:
step A: and under the condition that the target input box is displayed in the first interface of the first electronic equipment, the first electronic equipment displays a first control.
Illustratively, the first input is a user input to the first control.
For example, the first input is a click input of a user clicking a first control.
Illustratively, the first electronic device displays a first control on the first interface.
In an example, the first interface is an interface currently displayed by the first electronic device; alternatively, the first interface may be an interface that is not displayed when the first electronic device runs in the background, for example, when the first electronic device displays a game interface of the game APP and runs the shopping APP in the background, if the server receives a login verification code (i.e., the target content) of the shopping APP uploaded by the first electronic device, the first electronic device jumps from the game interface to the login interface of the shopping APP, and displays the first control on the login interface of the shopping APP.
For example, the shape of the first control may be any possible shape, such as a circle, a rectangle, a triangle, a diamond, a ring, or a polygon, which may be determined according to actual usage requirements, and the embodiment of the present invention is not limited.
For example, the size of the first control may be a default size, or may be flexibly adjusted according to the operation of the user. Further, the first control does not block the content (i.e., the target content) selected by the user in the first interface.
For example, the first control may be displayed in a solid color area (e.g., a blank area in the first interface) in the first interface, or may be displayed in a fixed position in the first interface, which is not limited in this embodiment of the present invention.
For example, the first control can be displayed on the first interface in a floating manner. For example, when a user drags a first control over a first interface, the first control may move over the first interface with the user's drag input.
For example, the first control may be displayed in the first interface in an overlapped manner with the preset transparency, for example, if the preset transparency is denoted as T1, the value range of T1 may be 0% < T1< 100%. In addition, the first control may also be displayed on the first interface with high brightness or low brightness, which is not limited in the embodiment of the present invention.
Illustratively, the first control is used for triggering the first electronic device to acquire the shared content uploaded by the other electronic devices from the server.
For example, when other electronic devices (i.e., electronic devices that log in the same account as the first electronic device) upload shared content to the server, the server may send a sharing instruction to all or some of the electronic devices associated with the server, so as to inform the electronic devices that the server currently stores content to be shared. For example, when the first electronic device and the first electronic device both log in the same account, the server sends a sharing instruction to the first electronic device after the first electronic device uploads the target content to the server, and the first electronic device displays the first control on the first interface after receiving the sharing instruction.
Optionally, in an embodiment of the present invention, the step a may include the following step a 1:
step A1: and the first electronic equipment cancels the display of the first control after the display duration of the first control reaches a first preset duration.
For example, the first predetermined time period may be preset by the first electronic device or may be set by a user in a self-defined manner, which is not limited in this embodiment of the present invention.
Therefore, when the user receives the target content on the first interface, the first control can be displayed within the preset time, so that the user is ensured to have enough time to complete the receiving operation, the content receiving failure caused by the hasty operation is avoided, and the success rate of receiving the content is improved.
For example, in the case where the target input box is displayed in the first interface of the first electronic device, the first electronic device may determine whether the target input box currently has the operation focus by determining whether an input cursor exists in the target input box. If the operation focus exists, the target input frame is determined to contain the operation focus, and if the operation focus does not exist, the target input frame is determined to contain the operation focus.
For example, if the operation focus is in the target input box, the target input box is in a state to be input.
Illustratively, the input cursor is used for indicating an input area of the target input box. The input cursor is an input starting position of the target input box, and the first electronic device can automatically recognize a receiving position of the target content according to the input cursor.
For example, the first electronic device hides the first control after receiving the input for the first control and inputting the target content in the target input box.
For example, a tablet computer with a first electronic device as a user and a mobile phone with a second electronic device as a user are taken as examples, where the mobile phone and the tablet computer of the user both log in to the same system account. As shown in fig. 4, in a case that a user logs in a game account using a tablet computer, that is, the game login interface (i.e., the first interface) is displayed, after the user uploads a login verification code (e.g., the verification code 41 shown in fig. 5) to a server through a mobile phone, a receiving control (e.g., the first control, 51 in fig. 4 (a)) is displayed in the game login interface, and the user clicks the receiving control 51 (e.g., the first input).
Next, after receiving the input of the user clicking the receiving control 51, if the tablet computer detects an input cursor (53 in (a) in fig. 4) from the login input box (i.e. the above target input box, 52 in (a) in fig. 4) of the current game login interface. At this time, as shown in fig. 4 (b), the tablet pc of the user uses the input cursor 53 as a start position, and automatically inputs the login verification code "12345678" uploaded to the server by the mobile phone of the user into the login input box 52, and hides the receiving control 51 on the game login interface, thereby completing the game login.
Therefore, the first electronic device can automatically input the target content into the target input box by identifying the input cursor in the target input box, so that the user can complete the input of the information without performing other operations in the first electronic device.
For example, referring to fig. 4 (a), if the tablet computer does not detect the input cursor 53 from the login input box 52 of the current game login interface, the user's tablet computer copies the login verification code "12345678" into the clipboard.
Optionally, in the embodiment of the present invention, after the step 202, the following step B may be further included:
and B: and responding to the first input, and displaying an editing control by the first electronic equipment.
For example, the first electronic device may display an editing control on a target area, where the target area is an area of the first interface that does not overlap with the target input box.
Based on this, the above step 203 may be performed as the following steps C1 and C2:
step C1: the first electronic device receives a second input for the editing control.
Step C2: in response to the second input, the first electronic device is copying the target content to the clipboard.
For example, when a target input box is displayed in the first interface of the first electronic device, the first interface may further include an editing control, and if the target input box does not include the operation focus, the first electronic device executes a corresponding editing function on the target content after receiving an input of the user for the editing control.
Illustratively, the editing control is used for implementing at least one of the following editing functions on the target content: copy, cut, re-edit. In one example, the target area may be an upper area of the target input box.
In an example, when the editing control can implement multiple editing functions, the editing control includes multiple editing identifiers, and each editing identifier corresponds to one editing function.
It should be noted that the editing function of the editing control may be preset by the first electronic device or may be customized by the user, which is not limited in the embodiment of the present invention.
It should be noted that the editing control in the embodiment of the present invention is similar to the first control in the embodiment, and therefore, for the description of the editing control (for example, the shape, the display position, the display mode, the size, and the like) in the embodiment of the present invention, reference may be made to the description of the first control in the embodiment one, and details are not repeated here.
Therefore, the first electronic device can directly edit the target content temporarily stored in the server through the display editing control on the first interface, and the input efficiency and the input success rate of the target content are improved.
In the method for sharing information provided in the embodiment of the present invention, because both the first electronic device and the second electronic device log in the same account, when the first electronic device displays the target input box in the first interface of the first electronic device after receiving the target content sent by the server, the first electronic device may perform different operations on the target content by determining whether the operation focus is currently in the target input box, for example, if the operation focus is in the target input box, the target content is displayed in the target input box, or if the operation focus is not in the target input box, the target content is copied to the clipboard. Therefore, the first electronic device can quickly, conveniently and accurately complete information sharing between the first electronic device and the second electronic device through the server without passing through a third-party application program.
The method for sharing information according to the embodiment of the present invention is described below with reference to a flowchart of the method for sharing information shown in fig. 3, where fig. 3 is a flowchart of the method for sharing information according to the embodiment of the present invention, and is applied to a second electronic device, and includes steps 301 to 304:
step 301: the second electronic device receives a third input.
In an embodiment of the present invention, the third input is an input of selecting a target content in the second interface.
Optionally, in an embodiment of the present invention, the third input may include: the input of the user on the second interface, or the input of other feasibility of the user, may be determined specifically according to the actual use requirement, and the embodiment of the present invention is not limited. The second interface displays the target content.
For example, the user input on the second interface may include: the specific gesture input by the user on the second interface or the specific gesture input by the user may be determined according to the actual use requirement, and the embodiment of the present invention is not limited. Further, the above-mentioned click input of the user on the second interface includes: and inputting the long press of the target content in the second interface by the user.
For example, the click input in the present application may be a single click input, a double click input, or any number of click inputs; the click input may be a long-press input or a short-press input. The specific gesture in the application may be any one of a single-click gesture, a sliding gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture.
Optionally, in the embodiment of the present invention, the target content is content to be shared, which is required to be shared by the user in other electronic devices of the user. Illustratively, the target content may include: the text, the number, the document, the picture, the audio, the video, the webpage and the like can be determined according to actual use requirements, and the embodiment of the invention does not limit the text, the number, the document, the picture, the audio, the video, the webpage and the like.
Optionally, in this embodiment of the present invention, after receiving the third input, the electronic device may mark the selected target content according to a predetermined marking mode. Illustratively, the above-mentioned marking manner includes at least one of: and (4) making a check before the target content, marking a circular solid point in front of the target content, and highlighting the target content (for example, magnifying the target content, thickening the target content and highlighting the target content). The above-mentioned marking manner is only an example, and may be flexibly set according to requirements in practical applications, which is not limited in the embodiment of the present invention.
Step 302: and responding to the third input, and displaying a second control on the second interface by the second electronic equipment.
Illustratively, the second control is used for triggering the first electronic device to send the shared content to the server.
It should be noted that the second control in the embodiment of the present invention is similar to the first control in the embodiment, and therefore, for the description (for example, the shape, the display position, the display manner, the size, and the like) of the first control in the embodiment of the present invention, reference may be made to the description of the second control in the embodiment one, and details are not repeated here.
Step 303: the second electronic device receives a fourth input directed to the second control.
In an embodiment of the present invention, the fourth input may include: the click input by the user on the second control, or the slide input by the user on the second control, or other feasibility inputs may be determined according to actual usage requirements, and the embodiment of the present invention is not limited. It should be noted that, the above-mentioned click input and the slide input may refer to the above description of the third input, and are not described herein again.
Step 304: and responding to the fourth input, and transmitting the target content to a server by the second electronic equipment.
In this embodiment of the present invention, the content stored in the server may be accessed by a second electronic device, and the first electronic device and the second electronic device both log in to the same account, where the second electronic device may be one electronic device or multiple electronic devices, which is not limited in this embodiment of the present invention. For example, the account may be an account of the electronic device, or may be an account of the same application. It can be understood that the server pre-stores the device information of all electronic devices capable of logging in the same account, so that the electronic devices capable of logging in the same account perform information transmission by means of the server.
It should be noted that the server may be a single server or a server group, and the embodiment of the present invention is not limited thereto.
For example, the electronic device account may be a system account, a third party application account, a device login account, or an input method account, which is not limited in this embodiment of the present invention.
Optionally, in an embodiment of the present invention, the fourth input is: and dragging the target content to the second control and then releasing the target content. For example, in the dragging process of the user dragging the target content, the target content may move along with the movement of the user.
For example, after the user drags the target content to the second control, the second control may indicate that the user successfully drags the target content in a display mode different from the current state, and may perform a release operation to complete a fourth input.
Therefore, the user can directly transmit the target content to the server in the current interface in a dragging mode without transmitting the target content through third-party application software, so that the content transmission process is simpler and quicker.
For example, a first electronic device is taken as a mobile phone of a user, and a second electronic device is taken as a tablet computer of the user, where the mobile phone and the tablet computer of the user both log in to the same system account. As shown in fig. 5 (a), when a user logs in a game account using a tablet computer, the backend server of the game sends a login verification code to the mobile phone of the user, and when the login verification code "12345678" (i.e., the target content, such as 41 in fig. 5) is displayed in the mobile phone of the user, the user may select the login verification code 41 by pressing the login verification code 41 for a long time (i.e., the third input), at this time, the mobile phone of the user highlights the login verification code 41 and displays a transmission control (i.e., the second control, such as 42 in fig. 5) in the current interface. As shown in fig. 5 (b), the user drags the login authentication code 41 to the transmission control 42, so as to trigger the mobile phone of the user to upload the login authentication code 41 to the server, so that the user can directly obtain the login authentication code 41 from the server through the tablet computer for login.
Optionally, in the embodiment of the present invention, in combination with step 203, specifically include the following step 203 a:
step 203 a: and the first electronic equipment cancels the display of the second control after the display time of the second control reaches a second preset time.
For example, the second predetermined time period may be preset by the second electronic device or may be set by a user in a self-defined manner, which is not limited in this embodiment of the present invention.
Therefore, when the user transmits the target content on the second interface, the second control can be displayed within the second preset time, so that the user is ensured to have enough time to finish the transmission operation, the content transmission failure caused by the hasty operation is avoided, and the success rate of the content transmission is improved.
In the method for sharing information provided by the embodiment of the present invention, after the second electronic device receives the third input for selecting the target content in the second interface, the second control may be displayed on the second interface for transmitting the target content, so that after the second electronic device receives the fourth input of the user for the second control, the target content may be transmitted to the server. Because the first electronic device and the second electronic device both log in the same account, the first electronic device can access the content stored in the server, so that the first electronic device and the second electronic device can share information through the server, and the information sharing among the multiple electronic devices can be quickly, conveniently and accurately completed without a third-party application program in the whole process.
Fig. 6 is a schematic structural diagram of a first electronic device according to an embodiment of the present invention, as shown in fig. 6, the first electronic device 700 includes a display module 701, a copy module 702, a first receiving module 703, and a second receiving module 704, where: the first receiving module 703 is configured to receive a first input of the first control; the second receiving module 703 is configured to receive, in response to the first input received by the first receiving module 703, a target content delivered by a server; the display module 701 is configured to, when a target input box is displayed in the first interface of the second electronic device, display the target content in the target input box if an operation focus is on the target input box; or, the copy module 702 is configured to copy the target content to a clipboard if the operation focus is not in the target input box; the target content is the content transmitted to the server by the first electronic device, and the first electronic device and the second electronic device both log in the same account.
Optionally, the display module 701 is further configured to display the first control when a target input box is displayed in the first interface of the first electronic device; the first input is input by a user for the first control.
Optionally, the display module 701 is specifically configured to cancel the display of the first control after the display duration of the first control reaches a second predetermined duration.
Optionally, the display module 701 is further configured to respond to the first input and display an editing control; the first receiving module 703 is specifically configured to receive a second input for the edit control; the copying module 702 is specifically configured to copy the target content to a clipboard in response to the second input received by the first receiving module.
In the first electronic device provided in the embodiment of the present invention, because both the first electronic device and the second electronic device log in the same account, when the first electronic device displays the target input box in the first interface of the first electronic device after receiving the target content sent by the server, the first electronic device may execute different operations on the target content by determining whether the operation focus is currently in the target input box, for example, if the operation focus is in the target input box, the target content is displayed in the target input box, or if the operation focus is not in the target input box, the target content is copied to the clipboard. Therefore, the first electronic device can quickly, conveniently and accurately complete information sharing between the first electronic device and the second electronic device through the server without passing through a third-party application program.
Fig. 7 is a schematic diagram of a possible structure of a second electronic device according to an embodiment of the present invention, and as shown in fig. 7, the second electronic device 600 includes: a receiving module 601, a display module 602, and a transmitting module 603, wherein: the receiving module 601 is configured to receive a third input, where the third input is an input for selecting a target content in the second interface; the display module 602 is configured to respond to the third input received 601 by the receiving module, and display a second control on the second interface; the receiving module 601 is further configured to receive a fourth input for the second control; the transmitting module 603 is configured to transmit the target content to a server in response to the fourth input received by the receiving module 601, where the content stored in the server is accessible by a second electronic device, and the first electronic device and the second electronic device both log in to the same account.
Optionally, the fourth input is: and dragging the target content to the second control and then releasing the target content.
In the second electronic device provided in the embodiment of the present invention, after receiving a third input for selecting the target content in the second interface, the second control may be displayed on the second interface for transmitting the target content, so that after receiving a fourth input for the second control by the user, the second electronic device may transmit the target content to the server. Because the first electronic device and the second electronic device both log in the same account, the first electronic device can access the content stored in the server, so that the first electronic device and the second electronic device can share information through the server, and the information sharing among the multiple electronic devices can be quickly, conveniently and accurately completed without a third-party application program in the whole process.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and is not described here again to avoid repetition.
Taking an electronic device as an example of a terminal device, fig. 8 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the configuration of the terminal device 100 shown in fig. 8 does not constitute a limitation of the terminal device, and that the terminal device 100 may include more or less components than those shown, or combine some components, or arrange different components. In the embodiment of the present invention, the terminal device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
A user input unit 107 for receiving a first input in the case where the terminal device 100 is a first electronic device; a user input unit 107, further configured to receive a first input, and further configured to receive, in response to the first input received by the user input unit 107, target content delivered by a server, where the display unit 106 is configured to, in a case where a target input box is displayed in a first interface of the second electronic device, display the target content in the target input box if an operation focus is on the target input box; or, the processor 110 is configured to copy the target content to a clipboard if the operation focus is not in the target input box; the target content is the content transmitted to the server by the first electronic device, and the first electronic device and the second electronic device both log in the same account.
In the terminal device provided in the embodiment of the present invention, because the second electronic device and the terminal device both log in the same account, after receiving the target content sent by the server, the terminal device may execute different operations on the target content by determining whether the operation focus is currently in the target input box under the condition that the target input box is displayed in the first interface of the terminal device, for example, if the operation focus is in the target input box, the target content is displayed in the target input box, or if the operation focus is not in the target input box, the target content is copied to the clipboard. Therefore, the terminal equipment can quickly, conveniently and accurately complete information sharing between the first electronic equipment and the terminal equipment through the server without a third-party application program.
And/or the presence of a gas in the gas,
in the case that the terminal device 100 is a second electronic device, the user input unit 107 is configured to receive a third input, where the third input is an input for selecting a target content in the first interface; a display unit 106, configured to display a second control on the first interface in response to a third input received by the user input unit 107; a user input unit 107, further configured to receive a fourth input; the radio frequency unit 101 is configured to respond to a fourth input received by the user input unit 107, and transmit the target content to a server, where the content stored in the server is accessible to a second electronic device, and both the first electronic device and the second electronic device log in to the same account.
In the terminal device provided in the embodiment of the present invention, after receiving the third input for selecting the target content in the second interface, the terminal device may display the second control on the second interface for transmitting the target content, so that after receiving the fourth input for the second control by the user, the terminal device may transmit the target content to the server. Because the terminal device and the first electronic device both log in the same account, the first electronic device can access the content stored in the server, so that information can be shared between the terminal device and the first electronic device through the server, and information sharing between multiple electronic devices can be completed quickly, conveniently and accurately without the aid of a third-party application program in the whole process.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device 100 provides the user with wireless broadband internet access via the network module 102, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device 100, connects various parts of the entire terminal device 100 by various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
Optionally, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor 110, where the computer program, when executed by the processor, implements each process of the above method for sharing information, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for sharing information, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (13)

1. A method for sharing information is applied to a first electronic device, and is characterized in that the method comprises the following steps:
receiving a first input;
receiving target content sent by a server in response to the first input;
under the condition that a target input box is displayed in a first interface of the first electronic device, if an operation focus is in the target input box, displaying the target content in the target input box, or if the operation focus is not in the target input box, copying the target content to a clipboard;
the target content is the content transmitted to the server by the second electronic device, and the first electronic device and the second electronic device both log in the same account.
2. The method of claim 1, wherein prior to receiving the first input, the method further comprises:
displaying a first control under the condition that a target input box is displayed in a first interface of the first electronic equipment;
wherein the first input is input by a user for the first control.
3. The method of claim 2, wherein the displaying the first control comprises:
and canceling the display of the first control after the display time of the first control reaches a first preset time.
4. The method of claim 1, wherein after receiving the first input, the method further comprises:
displaying an edit control in response to the first input;
the copying the target content to a clipboard comprises:
receiving a second input for the editing control;
in response to the second input, copying the target content to a clipboard.
5. A method for sharing information is applied to a second electronic device, and is characterized in that the method comprises the following steps:
receiving a third input, wherein the third input is an input for selecting target content in the second interface;
displaying a second control on the second interface in response to the third input;
receiving a fourth input for the second control;
and responding to the fourth input, transmitting the target content to a server, wherein the content stored in the server can be accessed by second electronic equipment, and the first electronic equipment and the second electronic equipment both log in the same account.
6. The method of claim 5, wherein the fourth input is: and releasing the target content after dragging the target content to the second control.
7. A first electronic device, comprising: display module, duplication module, first receiving module and second receiving module, wherein:
the first receiving module is used for receiving a first input;
the second receiving module is used for responding to the first input received by the first receiving module and receiving the target content sent by the server;
the display module is configured to, under a condition that a target input box is displayed in a first interface of the second electronic device, display the target content in the target input box if an operation focus is on the target input box;
alternatively, the first and second electrodes may be,
the copying module is used for copying the target content to a clipboard if the operation focus is not in the target input box;
the target content is the content transmitted to the server by the first electronic device, and the first electronic device and the second electronic device both log in the same account.
8. The first electronic device of claim 7,
the display module is further configured to display a first control under the condition that the target input box is displayed in the first interface of the second electronic device;
wherein the first input is input by a user for the first control.
9. The first electronic device of claim 8, wherein the display module is specifically configured to cancel the display of the first control after the display duration of the first control reaches a second predetermined duration.
10. The first electronic device of claim 7,
the display module is further used for responding to the first input and displaying an editing control;
the first receiving module is specifically configured to receive a second input for the editing control;
the copying module is specifically configured to copy the target content to a clipboard in response to the second input received by the first receiving module.
11. A second electronic device, comprising a receiving module, a display module, and a transmission module, wherein:
the receiving module is used for receiving a third input, wherein the third input is an input for selecting target content in the first interface;
the display module is used for responding to the third input received by the receiving module and displaying a second control on the first interface;
the receiving module is further configured to receive a fourth input for the second control;
the transmission module is configured to transmit the target content to a server in response to the fourth input received by the receiving module, where the content stored in the server is accessible by the second electronic device, and the first electronic device and the second electronic device both log in the same account.
12. The second electronic device of claim 11, wherein the fourth input is: and releasing the target content after dragging the target content to the second control.
13. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of sharing information according to any one of claims 1 to 4 or 5 to 6.
CN201911185752.9A 2019-11-27 2019-11-27 Information sharing method and electronic equipment Active CN111090529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911185752.9A CN111090529B (en) 2019-11-27 2019-11-27 Information sharing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911185752.9A CN111090529B (en) 2019-11-27 2019-11-27 Information sharing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111090529A true CN111090529A (en) 2020-05-01
CN111090529B CN111090529B (en) 2023-06-27

Family

ID=70393881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911185752.9A Active CN111090529B (en) 2019-11-27 2019-11-27 Information sharing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111090529B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866885A (en) * 2020-06-09 2020-10-30 维沃移动通信有限公司 Verification information sharing method and device and electronic equipment
CN114051157A (en) * 2021-09-30 2022-02-15 北京搜狗科技发展有限公司 Input method and device
CN115396245A (en) * 2022-08-22 2022-11-25 维沃移动通信有限公司 Content sharing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821109A (en) * 2012-08-28 2012-12-12 腾讯科技(深圳)有限公司 Method, associated equipment and system for realizing data sharing in instant communication application
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system
CN104243517A (en) * 2013-06-14 2014-12-24 腾讯科技(深圳)有限公司 Content sharing method and device used between different terminals
CN107145286A (en) * 2017-05-27 2017-09-08 北京小米移动软件有限公司 Browse interaction processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821109A (en) * 2012-08-28 2012-12-12 腾讯科技(深圳)有限公司 Method, associated equipment and system for realizing data sharing in instant communication application
CN103024062A (en) * 2012-12-24 2013-04-03 腾讯科技(深圳)有限公司 Data sharing method, clients and data sharing system
CN104243517A (en) * 2013-06-14 2014-12-24 腾讯科技(深圳)有限公司 Content sharing method and device used between different terminals
CN107145286A (en) * 2017-05-27 2017-09-08 北京小米移动软件有限公司 Browse interaction processing method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111866885A (en) * 2020-06-09 2020-10-30 维沃移动通信有限公司 Verification information sharing method and device and electronic equipment
CN114051157A (en) * 2021-09-30 2022-02-15 北京搜狗科技发展有限公司 Input method and device
CN115396245A (en) * 2022-08-22 2022-11-25 维沃移动通信有限公司 Content sharing method and device

Also Published As

Publication number Publication date
CN111090529B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN110752980B (en) Message sending method and electronic equipment
CN110502163B (en) Terminal device control method and terminal device
CN110062105B (en) Interface display method and terminal equipment
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN111142723B (en) Icon moving method and electronic equipment
CN110752981B (en) Information control method and electronic equipment
CN110888707A (en) Message sending method and electronic equipment
CN108681427B (en) Access right control method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN111026299A (en) Information sharing method and electronic equipment
CN110007822B (en) Interface display method and terminal equipment
CN110196668B (en) Information processing method and terminal equipment
CN109828731B (en) Searching method and terminal equipment
CN109408072B (en) Application program deleting method and terminal equipment
CN110049486B (en) SIM card selection method and terminal equipment
CN110703972B (en) File control method and electronic equipment
CN111030917B (en) Message display method and electronic equipment
CN110908554B (en) Long screenshot method and terminal device
CN111163224B (en) Voice message playing method and electronic equipment
CN111090529B (en) Information sharing method and electronic equipment
CN108804151B (en) Method and terminal for restarting application program
CN111104236A (en) Paste control method and electronic equipment
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN109117037B (en) Image processing method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant