CN114237979A - Data switching method and device and electronic equipment - Google Patents

Data switching method and device and electronic equipment Download PDF

Info

Publication number
CN114237979A
CN114237979A CN202111397173.8A CN202111397173A CN114237979A CN 114237979 A CN114237979 A CN 114237979A CN 202111397173 A CN202111397173 A CN 202111397173A CN 114237979 A CN114237979 A CN 114237979A
Authority
CN
China
Prior art keywords
data
identifier
target
application program
electronic device
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.)
Pending
Application number
CN202111397173.8A
Other languages
Chinese (zh)
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 CN202111397173.8A priority Critical patent/CN114237979A/en
Publication of CN114237979A publication Critical patent/CN114237979A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a data switching method and device and electronic equipment. The method comprises the following steps: receiving a first input of a target application icon by a user, wherein the target application icon is used for indicating a target application program; displaying at least one identifier in response to the first input, wherein the at least one identifier is used for indicating at least one piece of backup data which is backed up in the first electronic equipment, and each piece of backup data is data of a target application program in the second electronic equipment; receiving second input of a user to a first identifier in the at least one identifier, wherein the first identifier is used for indicating target backup data; and responding to the second input, and switching the data of the target application program application into the target backup data or deleting the target backup data.

Description

Data switching method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a data switching method and device and electronic equipment.
Background
At present, when a user needs to transfer application data (i.e., data of an application program) in one electronic device (e.g., device a) to another electronic device (e.g., device B), the user may start a data synchronization function of the device a and the device B and transmit the application data in the device a to the device B when the two electronic devices are connected to the internet, so as to implement application data transmission between the device a and the device B, and enable the device B to apply the received application data in the device a.
However, in the above method, after the device B receives the application data transmitted by the device a, the original application data of the device B is overwritten by the received application data, so that the original application data in the device B is lost, and thus, the flexibility of the electronic device for processing the application data is low.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data switching method and apparatus, and an electronic device, which can improve flexibility of processing application data by the electronic device.
In a first aspect, an embodiment of the present application provides a data switching method, where the data switching method includes: receiving a first input of a target application icon by a user, wherein the target application icon is used for indicating a target application program; displaying at least one identifier in response to the first input, wherein the at least one identifier is used for indicating at least one piece of backup data which is backed up in the first electronic equipment, and each piece of backup data is data of a target application program in the second electronic equipment; receiving second input of a user to a first identifier in the at least one identifier, wherein the first identifier is used for indicating target backup data; and responding to the second input, and switching the data of the target application program application into the target backup data or deleting the target backup data.
In a second aspect, an embodiment of the present application provides a data switching apparatus, including: the device comprises a receiving module, a display module and a processing module. The receiving module is used for receiving first input of a target application icon by a user, and the target application icon is used for indicating a target application program. And the display module is used for responding to the first input received by the receiving module and displaying at least one identifier, wherein the at least one identifier is used for indicating at least one piece of backup data which is backed up in the first electronic equipment, and each piece of backup data is data of a target application program in the second electronic equipment. The receiving module is further used for receiving second input of a user to a first identifier in the at least one identifier, wherein the first identifier is used for indicating the target backup data. And the processing module is used for responding to the second input received by the receiving module, and switching the data applied by the target application program into the target backup data or deleting the target backup data.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In an embodiment of the application, a first electronic device may receive a first input of a target application icon by a user, where the target application icon is used for indicating a target application program; displaying at least one identifier in response to the first input, wherein the at least one identifier is used for indicating at least one piece of backup data which is backed up in the first electronic equipment, and each piece of backup data is data of a target application program in the second electronic equipment; the first electronic device may then receive a second input from the user to a first identifier of the at least one identifier, the first identifier being indicative of the target backup data; and responding to the second input, and switching the data of the target application program application into the target backup data or deleting the target backup data. In the scheme, the first electronic device can trigger the first electronic device to switch the data of the target application program according to the data of any backup data (for example, the target backup data) of the target application program by the user, or backup or delete the target backup data, so that the user can directly select a plurality of backup data to trigger the first electronic device to process the data of the target application program, thereby avoiding the problem of poor flexibility that the backup data of the first electronic device is lost or directly covered and the like when the data is switched.
Drawings
Fig. 1 is a schematic diagram of a data handover method according to an embodiment of the present application;
fig. 2 is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 4 is a third schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 5 is a fourth schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 6 is a fifth schematic view of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a data switching apparatus according to an embodiment of the present application;
fig. 8 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The data switching method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
In this embodiment of the application, after receiving an input of a user to a target application program, a first electronic device may display identifiers of a plurality of backup data, so that the user may arbitrarily select one of the identifiers of the plurality of backup data, for example, select the target backup data, so that the first electronic device switches data applied by the target application program to the target backup data, or delete the target backup data. Compared with the prior art, when data switching is performed with other electronic devices, the received data transmitted by other electronic devices is covered, so that the local original data is lost.
An embodiment of the present application provides a data handover method, and fig. 1 shows a flowchart of the data handover method provided in the embodiment of the present application. As shown in fig. 1, the data switching method provided in the embodiment of the present application may include steps 201 to 204 described below.
Step 201, a first electronic device receives a first input of a target application icon from a user.
In this embodiment of the present application, the target application icon is used to indicate a target application program.
In the embodiment of the application, a user can perform first input on a target application icon in a desktop of first electronic equipment to trigger the first electronic equipment to display all backup data of a target application program indicated by the target application icon.
In this embodiment of the application, the first input is used to trigger the first electronic device to display all backup data of the target application icon.
Optionally, in this embodiment of the application, the first input may be a click input (for example, a single click input, a double click input, or a preset number of single click inputs) or a long-time press input of the user on the target application icon, which may be specifically determined according to actual usage requirements, and this embodiment of the application is not limited herein.
Optionally, in this embodiment of the present application, before the step 201, the data switching method provided in this embodiment of the present application further includes the following step 401.
Step 401, the first electronic device receives the second data and backs up or deletes the first data.
In this embodiment, the first data is data of a target application program in the first electronic device, and the second data is data of a target application program in the second electronic device.
In this embodiment of the application, a first electronic device may receive a first message sent by a second electronic device, where the first message is used to request the first electronic device to delete or backup data of a target application program in the first electronic device, and when the first electronic device and the second electronic device are successfully connected, before the second electronic device sends second data to the first electronic device, the second electronic device may first display a prompt message, where the prompt message is used to prompt a user whether to cover the data of the target application program in the first electronic device. If the user selection is yes, the second electronic equipment sends second data and a first message to the first electronic equipment, wherein the first message is used for requesting the first electronic equipment to delete the first data of the target application program; and if the user selects no, the second electronic equipment sends second data and a first message to the first electronic equipment, wherein the first message is used for requesting the first electronic equipment to backup the data of the target application program.
Optionally, in this embodiment of the application, the data of the target application includes at least one of: installation data packages for the target application, data generated by the user using the target application, and the like.
The electronic device is taken as a mobile phone for illustration. As shown in fig. 2, in the case that the first electronic device (e.g. mobile phone a) and the second electronic device (e.g. mobile phone B) are successfully connected, before the mobile phone B switches data to the mobile phone a, a window 11 pops up in the screen interface 10 of the mobile phone B, and a prompt message is displayed in the window 11: is the current data of handset a covered? The window 11 also includes two controls for selection: the mobile phone B can send the second data and the first message to the mobile phone A according to the selection of the user.
As another example, in conjunction with fig. 2, as shown in (a) of fig. 3, when the mobile phone B selects to overlay the current data of the mobile phone a, the mobile phone a may display a window 13 in the screen interface 12, and display the first message sent by the mobile phone B in the window 13: requesting deletion of the first data. Referring to fig. 2, as shown in (B) of fig. 3, when the mobile phone B selects not to cover the current data of the mobile phone a, the mobile phone a may display a window 13 in the screen interface 12, and display a first message sent by the mobile phone B in the window 13: requesting to backup the first data.
Optionally, in this embodiment of the application, the first electronic device receives the second data, and backs up or deletes the first data according to the first message.
In this embodiment of the application, after receiving the second data and the first message, if the first message is a request for the first electronic device to delete data of a target application program in the first electronic device, the first electronic device may delete the data of the target application program in the first electronic device according to the first message; if the first message is a request for the first electronic device to backup the data of the target application program in the first electronic device, the first electronic device may backup the data of the target application program in the first electronic device according to the first message.
In this embodiment of the application, after the first electronic device receives the second data, if the first message is a request for the first electronic device to delete the data of the target application program in the first electronic device, the first electronic device may delete the first data corresponding to the target application program in the first electronic device according to a default storage area of the data of the target application program.
It should be noted that the default storage area may be understood as: a default area in the first electronic device for storing data of the target application.
In the embodiment of the application, when a user needs to directly delete data (i.e., first data) of a target application program in first electronic equipment, the user may trigger second electronic equipment to send a message for deleting the first data to the first electronic equipment, so that the electronic equipment may flexibly delete the first data from the first electronic equipment according to the message.
In this embodiment of the application, after the first electronic device receives the second data, if the first message is a request for the first electronic device to backup data of a target application program in the first electronic device, the first electronic device may backup the data of the target application program in a target storage, and delete first data corresponding to the target application program in the first electronic device from a default storage area of the data of the target application program.
Optionally, in this embodiment of the application, the target storage area may be an area, which is set in advance in the first electronic device by the user and is used for backing up data of the target application program; alternatively, the target storage area may be an area for storing the received data in the first electronic device.
In the embodiment of the application, the first electronic device receives second data sent by the second electronic device, and applies the second data in the target application program.
It should be noted that, applying the second data in the target application may be understood as: and loading the data of the target application program in the second electronic equipment into the target application program in the first electronic equipment so that the target application program in the first electronic equipment runs with the data of the target application program in the second electronic equipment.
Optionally, in this embodiment of the application, after the first electronic device applies the second data in the target application program, when the user starts the target application program, a display interface of the target application program is a display interface corresponding to the second data.
Illustratively, after the first electronic device applies the data in the second electronic device to the chat application program, when the user starts the chat application program, the display interface of the chat application program displays the interface corresponding to the data of the chat application program in the second electronic device.
In the embodiment of the application, when a user needs to backup data (namely, first data) of a target application program in first electronic equipment, the user can trigger second electronic equipment to send a message for backing up the first data to the first electronic equipment, so that the electronic equipment can flexibly backup the first data in the first electronic equipment according to the message, the risk of data loss in the electronic equipment is reduced, and the security of data stored in the electronic equipment is improved.
Optionally, in this embodiment of the present application, after the step 201, the data switching method implemented and provided by the present application further includes the following step 601.
Step 601, the first electronic device displays the switching control and highlights a third identifier of the at least one identifier.
In this embodiment of the application, the third identifier is used to indicate data currently applied by the target application program, and the second input is input by a user to the first identifier and the switching control.
Optionally, in this embodiment of the application, the first electronic device may further display at least one switching control in the target window, where each switching control corresponds to one identifier, and highlight data currently applied by the target application program, so that a user may perform second input on the switching control corresponding to any identifier to trigger the first electronic device to perform data switching.
Optionally, in this embodiment of the application, the first electronic device may mark the third identifier in any form to highlight the third identifier.
In the embodiment of the application, the first electronic device can display the switching control, and the third identification in the at least one identification is highlighted, so that a user can distinguish the currently applied data from other data conveniently, the flexibility of displaying the data of the first electronic device is improved, and the flexibility of processing the backup data of the first electronic device is improved because the user can switch the data according to the switching control.
Step 202, the first electronic device displays at least one identifier in response to the first input.
In this embodiment, the at least one identifier is used to indicate at least one backup data that is backed up in the first electronic device, and each backup data is data of a target application in the second electronic device.
Optionally, in this embodiment of the application, after receiving a first input of the target application icon by the user, the first electronic device may display a target window in the desktop, and display at least one identifier in the target window.
Optionally, in this embodiment of the application, "displaying at least one identifier" in the step 202 may be specifically implemented by the step 202a described below.
Step 202a, the first electronic device displays at least one mark in the target window according to a first sequence.
In an embodiment of the present application, the first order is determined by any one of: the backup time of the backup data indicated by each identifier, the historical use information of the backup data indicated by each identifier, and the display sequence preset by a user.
In this embodiment of the application, after the first electronic device displays the target window on the screen and sequentially displays at least one identifier in the target window in the first order, the user may input any identifier in the at least one identifier to trigger the electronic device to switch to a piece of data backed up in the target application indicated by the any identifier.
Optionally, in this embodiment of the application, the first electronic device may sequentially display at least one identifier in the target window according to a reverse order or a forward order of the backup time of the data indicated by each identifier.
Optionally, in this embodiment of the application, the historical usage information may be any one of the following: the historical use frequency of the user (for example, the display sequence is sequentially that the first backup data with the highest use frequency of the user, the second backup data with the second highest use frequency of the user and the like), the time length of the historical use of the user and the time sequence of the historical use of the user (for example, the display sequence is sequentially that the first backup data used by the user last time, the second backup data used by the user first and the like); specifically, the embodiments of the present application are not limited in any way.
Optionally, in this embodiment of the application, the electronic device may further sequentially display at least one identifier in the target window according to a backup name sequence (for example, a display sequence is sequentially: the first backup data, the second backup data, and the like) of the data indicated by each identifier in the first electronic device; or, the electronic device may further sequentially display at least one identifier in the target window according to an order of the memory occupied by the data indicated by each identifier in the first electronic device.
Optionally, in this application, in a case that the first electronic device displays part of the backup data in the target window, the user may perform a sliding input, for example, a sliding-down input, in the target window to trigger the electronic device to switch to display other backup data.
Optionally, in this embodiment of the application, the first electronic device may sequentially display at least one identifier in a list form in the target window; or the first electronic device may sequentially display at least one identifier in the target window in the form of a grid; the specific method can be determined according to actual use requirements, and the embodiment of the application is not limited at all.
Optionally, in this embodiment of the application, after the first electronic device displays the target window, the data currently used by the target application may be marked in a preset manner, where the preset manner may be a color marking manner (for example, highlighting the data currently used by the target application in a special color), and the like, and specifically, the preset manner may be determined according to an actual use requirement of a user, and this embodiment of the application is not limited at all.
Illustratively, in conjunction with (a) in fig. 3, as shown in fig. 4, the mobile phone B displays a plurality of application icons (e.g., APP1 to APP8) in the screen interface 12, and the user may perform a long-press input on a target application icon (e.g., APP6) in the screen interface 12 to trigger the mobile phone B to display the target window 14 on the screen interface, and sequentially display at least one piece of backup data (e.g., first backup data, second backup data, etc.) in the target window 14, so that the user may input any one of the at least one piece of backup data.
Further exemplarily, referring to fig. 4, as shown in fig. 5, after the mobile phone B displays at least one piece of backup data (e.g., the first backup data and the second backup data) in the target window 14, due to the limited screen size of the mobile phone B, the user may slide up and input in the target window 14, so that the mobile phone displays other backup data.
In the embodiment of the application, the user can input the icon of the target application program, so that the first electronic device can display at least one identifier of the backup data to the user, and the user can select any identifier from the identifiers, so that the electronic device can rapidly switch the data currently applied by the target application program into the backup data indicated by the any identifier, and thus, the flexibility of displaying the identifier by the electronic device is improved.
Optionally, in this embodiment of the present application, after the step 202, the data switching method provided in this embodiment of the present application further includes the following steps 501 to 503.
Step 501, displaying at least one deletion control by the first electronic device.
In this embodiment of the present application, each deletion control of the at least one deletion control corresponds to one identifier of the at least one identifier.
In the embodiment of the application, the first electronic device sequentially displays at least one identifier in the target window according to a first sequence, and displays a deletion control corresponding to the identifier in a region corresponding to each identifier, so that a user can input the at least one deletion control to trigger the electronic device to delete the backup data corresponding to the target control.
Step 502, the first electronic device receives a third input of the user to a target deletion control of the at least one deletion control.
Optionally, in this embodiment of the application, the third input is click input (for example, single-click input, double-click input, or single-click input for a preset number of times) of the target deletion control by the user, and long-time press input, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited herein.
For example, referring to fig. 4, as shown in fig. 6, after the mobile phone B displays at least one piece of backup data (e.g., first backup data, second backup data) in the target window 14 and displays a deletion control corresponding to the backup data beside each piece of backup data, the user may input a target control of the deletion controls to trigger the electronic device to delete the backup data corresponding to the target control.
In step 503, the first electronic device deletes the third data from the target storage area in response to the third input.
In this embodiment of the application, the third data is backup data indicated by the second identifier, the second identifier is an identifier corresponding to the target deletion control in the at least one identifier, and the target storage area is an area used for backing up data of the application program in the first electronic device.
In the embodiment of the application, the user inputs the target control corresponding to the second identifier, so that the first electronic device deletes the third data indicated by the second identifier from the target storage area.
In the embodiment of the application, after the target window is displayed on the first electronic device, and the plurality of identifications and the deletion controls corresponding to the plurality of identifications are displayed in the target window, a user can input any one deletion control to trigger the first electronic device to delete the backup data indicated by the identification corresponding to the deletion control, so that the flexibility of the first electronic device on data management is improved, the flexibility of the first electronic device in data switching is improved, and the human-computer interaction performance is improved.
Step 203, the first electronic device receives a second input of the first identifier in the at least one identifier from the user.
In this embodiment of the present application, the first identifier is used to indicate target backup data.
In this embodiment of the application, after the first electronic device displays the at least one identifier in the target window, the user may perform a second input on a first identifier in the at least one identifier, so that the first electronic device may switch data applied in the target application program.
Optionally, in this embodiment of the application, the second input may be a click input (for example, a single click input, a double click input, or a preset number of single click inputs) of the first identifier by the user, or a long-time press input, which may be specifically determined according to an actual use requirement, and this embodiment of the application is not limited herein.
And step 204, the first electronic device responds to the second input, and switches the data applied by the target application program into the target backup data or deletes the target backup data.
In the embodiment of the application, after receiving a second input of a user, the first electronic device switches data applied in a target application program into target backup data, and runs the target application program with the target backup data; alternatively, the target backup data is deleted from the data default storage area of the target application.
Optionally, in this embodiment of the application, before "switching the data of the target application program to the target backup data" in step 204, the data switching method provided in this embodiment of the application further includes step 301 described below.
Step 301, the first electronic device backs up data applied by the target application program in the target storage area, and deletes the data applied by the target application program from the default storage area of the data of the target application program.
In this embodiment of the application, the target storage area is an area for backing up data of an application program in the first electronic device.
In the embodiment of the application, before the first electronic device switches the data applied by the target application program into the target backup data, the first electronic device backs up the data applied by the target application program in the target storage area, and deletes the data applied by the target application program from the default storage area of the data of the target application program.
Optionally, in this embodiment of the application, if the data applied by the target application program is different from the target backup data, the data applied by the target application program is switched to the target backup data; and if the data applied by the target application program is the same as the target backup data, switching the data applied by the target application program into the target backup data is not executed.
In this embodiment of the application, a user may input any one of the identifiers in the target window, so that the first electronic device backs up data (for example, second data) currently applied by the target application program, backs up the second data to the target storage area, and then deletes the second data from the default storage area of the data of the target application program.
In the embodiment of the application, when the first electronic device switches the currently running data in the target application program, the currently running data in the target application program can be automatically backed up and backed up in the target storage area, and the data used in the first electronic device can be switched after the backup is completed.
The embodiment of the application provides a data switching method, where a first electronic device may trigger the first electronic device to switch data of a target application program according to data of any backup data (for example, target backup data) of the target application program by a user, or backup or delete the target backup data, so that the user may directly select multiple backup data to trigger the first electronic device to process the data of the target application program, thereby avoiding the problem of poor flexibility that the backup data of the first electronic device is lost or directly covered when the data is switched, and thus improving safety of data switching in the electronic device, reducing risk of data loss in the electronic device, and improving flexibility of processing application data by the electronic device.
It should be noted that, in the data switching method provided in the embodiment of the present application, the execution main body may be an electronic device, a data switching apparatus, or a control module in the data switching apparatus for executing the data switching method. In the embodiment of the present application, a data switching method performed by an electronic device is taken as an example, and the data switching method provided in the embodiment of the present application is described.
Fig. 7 shows a schematic diagram of a possible structure of the data switching device involved in the embodiment of the present application. As shown in fig. 7, the data switching device 70 may include: a receiving module 71, a display module 72 and a processing module 73.
The receiving module 71 is configured to receive a first input of the target application icon from the user. A display module 72, configured to display at least one identifier, in response to the first input received by the receiving module 71, where the at least one identifier is used to indicate at least one backup data that is backed up in the first electronic device, and each backup data is data of a target application in the second electronic device. The receiving module 71 is further configured to receive a second input from the user to a first identifier of the at least one identifier, where the first identifier is used to indicate the target backup data. And a processing module 73, configured to switch the data of the target application to the target backup data or delete the target backup data in response to the second input received by the receiving module 71.
The embodiment of the application provides a data switching device, where a first electronic device may trigger the first electronic device to switch data of a target application program according to data of any backup data (for example, target backup data) of the target application program by a user, or backup or delete the target backup data, so that the user may directly select multiple backup data to trigger the first electronic device to process the data of the target application program, thereby avoiding the problem that the backup data of the first electronic device is lost or directly covered when the data is switched, and the like, thereby improving security of data switching in the electronic device, reducing risk of data loss in the electronic device, and improving flexibility of processing application data by the electronic device.
In a possible implementation manner, the data switching device 70 further includes a backup module and a deletion module. And a backup module for backing up the data applied by the target application program in the target storage area before the processing module 73 switches the data applied by the target application program to the target backup data. And the deleting module is used for deleting the data applied by the target application program from the default storage area of the data of the target application program, and the target storage area is an area used for backing up the data of the application program in the first electronic equipment.
In a possible implementation manner, the receiving module 71 is further configured to receive the second data before receiving the first input of the target application icon by the user. The processing module 73 is further configured to backup or delete first data, where the first data is data of a target application program in the first electronic device, and the second data is data of a target application program in the second electronic device.
In a possible implementation, the display module 72 is specifically configured to display at least one identifier in the target window according to a first order. The first order is determined by any one of: the backup time of the backup data indicated by each identifier, the historical use information of the backup data indicated by each identifier, and the display sequence preset by a user.
In a possible implementation manner, the data switching device 70 further includes: and deleting the module. The display module 72 is further configured to display at least one deletion control after displaying the at least one identifier, where each deletion control corresponds to one identifier of the at least one identifier. The receiving module 71 is further configured to receive a third input of the user to a target deletion control in the at least one deletion control. A deleting module, configured to delete, in response to a third input received by the receiving module 71, third data from the target storage area, where the third data is data indicated by a second identifier, and the second identifier is an identifier corresponding to the target deletion control in the at least one identifier; the target storage area is an area in the first electronic device for backing up data of the application program.
In a possible implementation manner, the display module 72 is further configured to, after the receiving module 71 receives the first input of the target application icon from the user, display a switching control and highlight a third identifier of the at least one identifier, where the third identifier is used to indicate data currently applied by the target application program; and the second input is input of the first identification and the switching control by the user.
The data switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The data switching device in the embodiment of the present application may be a 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 application are not limited specifically.
The data switching device provided in the embodiment of the present application can implement each process implemented by the foregoing method embodiment, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
Optionally, as shown in fig. 8, an electronic device 90 is further provided in this embodiment of the present application, and includes a processor 91, a memory 92, and a program or an instruction stored in the memory 92 and executable on the processor 91, where the program or the instruction is executed by the processor 91 to implement the processes of the foregoing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source 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. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 107 is configured to receive a first input of the target application icon from a user. The display unit 106 is configured to display at least one identifier in response to the first input, where the at least one identifier is used to indicate at least one piece of backup data that is backed up in the first electronic device, and each piece of backup data is data of a target application in the second electronic device. The user input unit 107 is further configured to receive a second input from the user to a first identifier of the at least one identifier, where the first identifier is used to indicate the target backup data. And a processor 110 for switching the data of the target application program application to the target backup data or deleting the target backup data in response to the second input.
The embodiment of the application provides an electronic device, where a first electronic device may trigger the first electronic device to switch data of a target application program according to data of any backup data (for example, target backup data) of the target application program by a user, or backup or delete the target backup data, so that the user may directly select multiple backup data to trigger the first electronic device to process the data of the target application program, thereby avoiding the problem that the backup data of the first electronic device is lost or directly covered when the data is switched, and the like, which results in poor flexibility.
Optionally, in this embodiment of the present application, the memory 109 is configured to backup data applied by the target application in the target storage area before switching the data applied by the target application to the target backup data. And the processor 110 is configured to delete the data applied by the target application program from a default storage area of the data of the target application program, where the target storage area is an area for backing up the data of the application program in the first electronic device.
Optionally, in this embodiment of the application, the user input unit 107 is further configured to receive second data before receiving the first input of the target application icon by the user. The processor 110 is further configured to backup or delete first data, where the first data is data of a target application program in the first electronic device, and the second data is data of a target application program in the second electronic device.
Optionally, in this embodiment of the application, the display unit 106 is specifically configured to display at least one identifier in the target window according to the first order. The first order is determined by any one of: the backup time of the backup data indicated by each identifier, the historical use information of the backup data indicated by each identifier, and the display sequence preset by a user.
Optionally, in this embodiment of the application, the display unit 106 is further configured to display at least one deletion control after displaying the at least one identifier, where each deletion control corresponds to one identifier of the at least one identifier. The user input unit 107 is further configured to receive a third input of the target deletion control in the at least one deletion control from the user. The processor 110 is configured to delete third data from the target storage area in response to a third input, where the third data is data indicated by a second identifier, and the second identifier is an identifier corresponding to the target deletion control in the at least one identifier; the target storage area is an area in the first electronic device for backing up data of the application program.
Optionally, in this embodiment of the application, the display unit 106 is further configured to display a switching control after receiving a first input of a target application icon by a user, and highlight a third identifier in the at least one identifier, where the third identifier is used to indicate data currently applied by the target application program; and the second input is input of the first identification and the switching control by the user.
The electronic device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. 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, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. 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. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 (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 (14)

1. A data switching method is applied to a first electronic device, and comprises the following steps:
receiving a first input of a target application icon by a user, wherein the target application icon is used for indicating a target application program;
displaying at least one identifier in response to the first input, wherein the at least one identifier is used for indicating at least one piece of backup data which is backed up in the first electronic equipment, and each piece of backup data is data of a target application program in the second electronic equipment;
receiving second input of a user to a first identifier in the at least one identifier, wherein the first identifier is used for indicating target backup data;
in response to the second input, switching data of the target application program application to the target backup data or deleting the target backup data.
2. The method of claim 1, wherein prior to switching the data of the target application to the target backup data, the method further comprises:
backing up data applied by the target application program in a target storage area, and deleting the data applied by the target application program from a default storage area of the data of the target application program, wherein the target storage area is an area used for backing up the data of the application program in the first electronic equipment.
3. The method of claim 1, wherein prior to receiving the first user input of the target application icon, the method further comprises:
receiving second data, and backing up or deleting first data, wherein the first data is data of the target application program in the first electronic device, and the second data is data of the target application program in a second electronic device.
4. The method of any one of claims 1 to 3, wherein said displaying at least one logo comprises:
displaying the at least one logo in the target window in a first order, the first order being determined by any one of: the backup time of the backup data indicated by each identifier, the historical use information of the backup data indicated by each identifier, and the display sequence preset by a user.
5. The method of claim 1, wherein after displaying the at least one logo, the method further comprises:
displaying at least one deletion control, wherein each deletion control corresponds to one identifier in the at least one identifier;
receiving a third input of a user to a target deletion control in the at least one deletion control;
and in response to the third input, deleting third data from a target storage area, wherein the third data is backup data indicated by a second identifier, the second identifier is an identifier corresponding to the target deletion control in the at least one identifier, and the target storage area is an area for backing up data of an application program in the first electronic device.
6. The method of claim 1, wherein after receiving the first user input of the target application icon, the method further comprises:
displaying a switching control, and highlighting a third identifier in the at least one identifier, wherein the third identifier is used for indicating data currently applied by the target application program;
and the second input is input of the first identifier and the switching control by a user.
7. A data switching apparatus, characterized in that the data switching apparatus comprises: the device comprises a receiving module, a display module and a processing module;
the receiving module is used for receiving a first input of a target application icon by a user, wherein the target application icon is used for indicating a target application program;
the display module is configured to display at least one identifier in response to the first input received by the receiving module, where the at least one identifier is used to indicate at least one piece of backup data that is backed up in the first electronic device, and each piece of backup data is data of a target application program in a second electronic device;
the receiving module is further configured to receive a second input of a first identifier of the at least one identifier from a user, where the first identifier is used to indicate target backup data;
the processing module is configured to switch the data of the target application program to the target backup data or delete the target backup data in response to the second input received by the receiving module.
8. The apparatus of claim 7, wherein the data switching apparatus further comprises a backup module and a delete module;
the backup module is used for backing up the data applied by the target application program in a target storage area before the processing module switches the data applied by the target application program into the target backup data;
the deleting module is configured to delete the data applied by the target application program from a default storage area of the data of the target application program, where the target storage area is an area used for backing up the data of the application program in the first electronic device.
9. The apparatus of claim 7,
the receiving module is further used for receiving second data before receiving first input of a target application icon by a user;
the processing module is further configured to backup or delete first data, where the first data is data of the target application program in the first electronic device, and the second data is data of the target application program in a second electronic device.
10. The apparatus according to any one of claims 7 to 9, wherein the data switching apparatus further comprises: a display module;
the display module is specifically configured to display at least one identifier in the target window according to a first order, where the first order is determined by any one of: the backup time of the backup data indicated by each identifier, the historical use information of the backup data indicated by each identifier, and the display sequence preset by a user.
11. The apparatus of claim 7, wherein the data switching apparatus further comprises: a deletion module;
the display module is further configured to display at least one deletion control after displaying the at least one identifier, where each deletion control corresponds to one identifier of the at least one identifier;
the receiving module is further configured to receive a third input of the user to a target deletion control of the at least one deletion control;
the deleting module is configured to delete, in response to the third input received by the receiving module, third data from the target storage area, where the third data is data indicated by a second identifier, and the second identifier is an identifier corresponding to the target deletion control in the at least one identifier; the target storage area is an area for backing up data of an application program in the first electronic device.
12. The apparatus of claim 7,
the display module is further configured to display a switching control and highlight a third identifier of the at least one identifier after the receiving module receives a first input of a target application icon from a user, where the third identifier is used to indicate data currently applied by the target application program;
and the second input is input of the first identifier and the switching control by a user.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the data switching method of any one of claims 1 to 6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of data switching according to any one of claims 1 to 6.
CN202111397173.8A 2021-11-23 2021-11-23 Data switching method and device and electronic equipment Pending CN114237979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111397173.8A CN114237979A (en) 2021-11-23 2021-11-23 Data switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111397173.8A CN114237979A (en) 2021-11-23 2021-11-23 Data switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114237979A true CN114237979A (en) 2022-03-25

Family

ID=80750678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111397173.8A Pending CN114237979A (en) 2021-11-23 2021-11-23 Data switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114237979A (en)

Similar Documents

Publication Publication Date Title
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
CN112399006B (en) File sending method and device and electronic equipment
CN113194200B (en) Message display method and device and electronic equipment
CN113179205B (en) Image sharing method and device and electronic equipment
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN113467660A (en) Information sharing method and electronic equipment
CN112698762B (en) Icon display method and device and electronic equipment
CN112269509B (en) Information processing method and device and electronic equipment
CN113703634A (en) Interface display method and device
CN111880701B (en) Page switching method and device and electronic equipment
CN113282546A (en) File processing method and device
CN112286615A (en) Information display method and device of application program
CN112948843A (en) Encryption method, encryption device, electronic equipment and medium
CN112399010B (en) Page display method and device and electronic equipment
CN113824841B (en) Notification message processing method and device, electronic equipment and readable storage medium
CN114489414A (en) File processing method and device
CN113805756A (en) Interface display method and device, electronic equipment and storage medium
CN114237979A (en) Data switching method and device and electronic equipment
CN113672136A (en) Information display method, device, equipment and storage medium
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN112596645A (en) Application identifier hiding method and device and electronic equipment
CN112182673A (en) Information sharing method, device and equipment
CN112486366A (en) Control display method and device and electronic equipment
CN111752428A (en) Icon arrangement method and device, electronic equipment and medium
CN112416230B (en) Object processing method and device

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