WO2017161705A1 - 一种拷贝数据的方法及电子设备 - Google Patents

一种拷贝数据的方法及电子设备 Download PDF

Info

Publication number
WO2017161705A1
WO2017161705A1 PCT/CN2016/086258 CN2016086258W WO2017161705A1 WO 2017161705 A1 WO2017161705 A1 WO 2017161705A1 CN 2016086258 W CN2016086258 W CN 2016086258W WO 2017161705 A1 WO2017161705 A1 WO 2017161705A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
application
applications
copying
electronic device
Prior art date
Application number
PCT/CN2016/086258
Other languages
English (en)
French (fr)
Inventor
曹灿
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017161705A1 publication Critical patent/WO2017161705A1/zh

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
    • 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]

Definitions

  • the present application relates to, but is not limited to, information transmission technology in the field of electronic information, and in particular, to a method and an electronic device for copying data.
  • the related electronic device has a copy-and-paste function, and a text data (to be copied data E) in the first application can be copied and pasted into the text of the second application by the copy-and-paste function.
  • a certain text data in the first application is copied in the clipboard of the electronic device, and then the second application to be pasted is obtained, and then one of the text data is removed from the clipboard.
  • Paste into the selected second application that is, copy the content from the A application to the clipboard, then switch to the B application, select the paste, and obtain the content from the clipboard, thus completing the data in different applications. Sharing between.
  • each copy and paste operation can only be performed one-to-one, and only one copy object can be managed.
  • multiple copying processes and multiple pasting processes will be performed. For example, if the user needs to copy the same content to N multiple applications, the same step needs to be performed N times. . Switch from A application to B, paste it to switch to C for pasting. This will lead to more cumbersome steps if the application is too much. Equivalent to a copy operation, requires N paste operations.
  • the user may also need to copy multiple content or data from one application to different applications, that is, to copy two different content or data from the A application to the B application and the C application respectively. complex.
  • the embodiment of the present invention is to provide a method for copying data and an electronic device, which can realize sharing of multiple data to at least one application, and simplify the implementation process and improve the diversity of data sharing.
  • a method of copying data including:
  • N pieces of data are obtained, and the N pieces of data are data to be copied, where N ⁇ 2, and N is a positive integer.
  • M second applications where the M second applications are target applications for copying data, where M ⁇ 1, and M is a positive integer.
  • the method further includes:
  • mapping relationship between the data and the application is obtained before the N data is copied to the M second applications according to the mapping relationship between the data and the application.
  • obtaining the mapping relationship between the data and the application includes:
  • the data of the M first parts corresponding to the M second applications are respectively determined from the N data according to the user's selection, and the data of the first part corresponds to a second application,
  • the data of the M first parts has at least two data of the first part which are not completely identical.
  • Copying the N data to the M second applications according to a mapping relationship between the data and the application includes:
  • the obtaining the mapping relationship between the data and the application further includes:
  • data of a second part is determined from the N data according to a user's selection, and the data of the second part is any number of data of the N data.
  • Copying the N data to the M second applications according to the mapping relationship between the data and the application further includes:
  • the method further includes:
  • the copy function is initiated through the copy setting interface.
  • An electronic device comprising:
  • Obtaining a unit configured to acquire, from the first application, N consecutive data when the copy function is enabled, where the N data is data to be copied, where N ⁇ 2, N is a positive integer; and obtaining M a second application, the M second applications are target applications for copying data, wherein M ⁇ 1, M is a positive integer;
  • the copying unit is configured to copy the N pieces of data acquired by the acquiring unit to the M second applications acquired by the acquiring unit according to a mapping relationship between the data and the application.
  • the acquiring unit is further configured to: after acquiring the M second applications, the copy unit copies the N data to the M second applications according to a mapping relationship between the data and the application, Obtain a mapping relationship between the data and an application.
  • the electronic device further includes: a determining unit;
  • the determining unit is configured to determine data of the M first parts corresponding to the M second applications, respectively, from the N data acquired by the acquiring unit, according to the user's selection,
  • the data of a first part corresponds to a second application, and the data of the M first parts is at least two pieces of data of the first part are not completely identical.
  • Copying, by the copying unit, the N data to the M second applications according to the mapping relationship between the data and the application includes: copying the data of the M first parts determined by the determining unit to the acquiring The M second applications acquired by the unit.
  • Copying, by the copy unit, the N data to the M second applications according to the mapping relationship between the data and the application further includes: copying, by the determining unit, the data of the second part to the acquiring The unit acquires each of the second applications of the M second applications.
  • the electronic device further includes: a starting unit.
  • the initiating unit is configured to start the copy function by using a copy setting interface before acquiring the N pieces of data from the first application in the acquiring unit.
  • a computer readable storage medium storing computer executable instructions, the computer being executable The method of copying data described when the line instructions are executed by the processor.
  • the embodiment of the present invention provides a method for copying data and an electronic device.
  • the N data is obtained from the first application, and the N data is data to be copied, where N ⁇ 2, N is a positive integer; obtain M second applications, the M second applications are target applications for copying data, where M ⁇ 1, M is a positive integer; according to the mapping relationship between the data and the application, N The data is copied to the M second applications.
  • FIG. 1 is a schematic structural diagram of a method for implementing data copying according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart 1 of a method for copying data according to an embodiment of the present invention
  • FIG. 3 is a second flowchart of a method for copying data according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart 3 of a method for copying data according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a copy setting interface according to an embodiment of the present invention.
  • FIG. 6 is a corresponding relationship diagram of an exemplary copy data according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram 2 of an electronic device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram 3 of an electronic device according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for copying data, which should be set as an electronic device. As shown in FIG. 2, the method may include steps S101-S103:
  • a plurality of applications are disposed, and the user may operate the multiple applications by using the electronic device to implement multiple functions.
  • the first application in the embodiment of the present invention may be an application or software having a data content, such as a reader, a browser, a reading software, an editing software, or the like, which is not limited by the embodiment of the present invention.
  • the discontinuous N data (copy object) in the embodiment of the present invention is text data.
  • the copy object in the embodiment of the present invention may also be a copyable data such as an image, which is not limited in the embodiment of the present invention.
  • the N data in the embodiment of the present invention is discontinuous, and N ⁇ 2, that is, the object or data that the user wants to copy is data distributed in different places in the first application, and cannot be copied by one copy or selected.
  • the electronic device may sequentially select the interval (discontinuous) N data (copy object) to perform the copy process.
  • the electronic device in the embodiment of the present invention is an intelligent electronic device having an operating system, and the operating system may be Android, IOS, etc., which is not limited in the embodiment of the present invention.
  • the electronic device of the Android system in the process of copying the electronic device, the electronic device is copied by its own clipboard, that is, realized by the Android clipboard management service android clipboardmanager. Therefore, before the process of data interaction with the clipboard in the embodiment of the present invention, a connection must be established with the android clipboardmanager.
  • the electronic device may sequentially acquire the N pieces of data that the user wants to copy by using a user operation, and at the same time, the electronic device arranges the N pieces of data according to the same principle of copying and pasting.
  • the transfer module ie the clipboard
  • the acquired data to be copied is temporarily stored in the clipboard in a stack manner, so as to be selected and used when subsequently pasting.
  • the manner in which the electronic device maintains or stores the foregoing N data in the clipboard may be arranged in the chronological order of the acquisition, or may be arranged according to the size of the data, and the arrangement rules are not performed in the embodiment of the present invention. limit.
  • the electronic device After the electronic device obtains the N data to be copied, the electronic device starts to acquire the target application to be copied according to the user's selection, that is, in the embodiment of the present invention, the electronic device acquires the M second applications.
  • the M second applications are target applications for copying data, where M ⁇ 1.
  • the second application in the embodiment of the present invention is an application that can copy N data, that is, the type of the N data is consistent with the type that the second application can copy, so that the follow-up can be completed.
  • the electronic device can acquire the M second applications according to the user's selection, and temporarily store the M second applications in a team manner on the clipboard.
  • the electronic device After the electronic device acquires N data and M second applications, since the electronic device can acquire the mapping relationship between the data and the application to determine which data each second application wants to copy, the electronic device can be based on the data and Applying the mapping relationship, copying N data to M second applications, completing the process of copying and pasting data, that is, the process of copying.
  • mapping relationship between the data and the application in the embodiment of the present invention may be set by the user, or may be automatically set.
  • the detailed process will be described in the following embodiments. limit.
  • the copying process in the embodiment of the present invention is also implemented by a clipboard, due to electricity
  • the clipboard in the child device manages N data and M second applications. Therefore, after the electronic device acquires the mapping relationship between the data and the application, the mapping relationship between the data and the application can be implemented to determine N. The data is copied to the allocation of the M second applications.
  • the at least two second applications are all copied.
  • the user still performs the process of acquiring each data only once by the electronic device, and stores it in the clipboard for the user to select.
  • the electronic device has the data to be copied, because the electronic device has temporarily stored the acquired N data in the clipboard. Copy to both can be copied to the second application at one time.
  • the second application data is derived from the user selecting the paste target application (by setting the app or the recent app). Select the target application), the paste content comes from the text content selected by the user.
  • the process of copy and paste is the same as the native logic, through the clipboardmanager and content provider mechanisms.
  • different applications can correspond to different content to be copied, which is more flexible and convenient.
  • a method for copying data according to an embodiment of the present invention further includes: S104.
  • the electronic device After the electronic device acquires the M second applications, the electronic device can obtain a mapping relationship between the data and the application by using a user operation.
  • mapping relationship between the data and the application in the embodiment of the present invention may be set by the user, or may be automatically set.
  • the implementation manner is not limited in the embodiment of the present invention.
  • An embodiment of the present invention provides a method for copying data, which is applied to an electronic device. As shown in FIG. 4, the method may include steps S201-S207:
  • the copy setting interface of the electronic device is provided with a switch button of the copy function, and the copy function is turned on or off by triggering the switch button, so that the user can set according to different requirements.
  • a plurality of applications are disposed, and the user may operate the multiple applications by using the electronic device to implement multiple functions.
  • the first application in the embodiment of the present invention may be an application or software having a data content, such as a reader, a browser, a reading software, an editing software, or the like, which is not limited by the embodiment of the present invention.
  • the discontinuous N data (copy object) in the embodiment of the present invention is text data.
  • the copy object in the embodiment of the present invention may also be a copyable data such as an image, which is not limited in the embodiment of the present invention.
  • the N data in the embodiment of the present invention is discontinuous, and N ⁇ 2, that is, the object or data that the user wants to copy is data distributed in different places in the first application, and cannot be copied by one copy or selected.
  • the electronic device may sequentially select the interval (discontinuous) N data (copy object) to perform the copy process.
  • the electronic device in the embodiment of the present invention is an intelligent electronic device having an operating system, and the operating system may be Android, IOS, etc., which is not limited in the embodiment of the present invention.
  • the electronic device copies through its own clipboard.
  • the electronic device may sequentially acquire the N pieces of data that the user wants to copy by using a user operation, and at the same time, the electronic device arranges the N pieces of data according to the same principle of copying and pasting.
  • the transfer module ie the clipboard
  • the acquired data to be copied is temporarily stored in the clipboard in a stack manner, so as to be selected and used when subsequently pasting.
  • the manner in which the electronic device maintains or stores the foregoing N data in the clipboard may be arranged in the chronological order of the acquisition, or may be arranged according to the size of the data, and the arrangement rules are not performed in the embodiment of the present invention. limit.
  • the electronic device After the electronic device obtains the N data to be copied, the electronic device starts to acquire the target application to be copied according to the user's selection, that is, in the embodiment of the present invention, the electronic device acquires the M second applications.
  • the M second applications are target applications for copying data, where M ⁇ 1.
  • the second application in the embodiment of the present invention is an application that can copy N data, that is, the type of the N data is consistent with the type that the second application can copy, so that the follow-up can be completed.
  • the electronic device can acquire the M second applications according to the user's selection, and temporarily store the M applications in a team manner on the clipboard.
  • the electronic device can obtain the mapping relationship between the data and the application through the operation of the user.
  • the number of Ms is different, and the mapping relationship between the data acquired by the electronic device and the application is also different.
  • mapping relationship between the data and the application in the embodiment of the present invention may be set by the user, or may be automatically set.
  • the implementation manner is not limited in the embodiment of the present invention.
  • M can be 1, it can be greater than 1, and M is greater than 1 to be copied.
  • the multiple-to-one correspondence between the plurality of data and the first and second applications, where M is greater than 1, is a multi-to-many correspondence between the plurality of data to be copied and the plurality of second applications, and therefore, the embodiment of the present invention The correspondence between the many-to-one and many-to-many of the lieutenant is explained separately.
  • the M device After the M device obtains the M second applications, when M ⁇ 2, according to the user's selection, the mapping relationship between the data acquired by the electronic device and the application is known, that is, the electronic device is from the N data. Data of the M first parts corresponding to the M second applications are respectively determined.
  • the data of a first part in the embodiment of the present invention corresponds to a second application, and the data of a first part may be all N data or part of N data. Since the N data acquired by the electronic device in the embodiment of the present invention are all data to be copied, that is, N data needs to be copied into the second application, therefore, at least two data of the M first parts exist. The data in the first part is not exactly the same.
  • the electronic device After the electronic device determines the data of the M first parts corresponding to the M second applications from the N data according to the user's selection, the electronic device can obtain the mapping relationship between the data and the application to determine each second.
  • the application determines which data is to be copied, and determines which data the second application needs to copy. Therefore, the electronic device can copy the data of the M first parts to the corresponding M second applications, and complete The process of copying and pasting data, that is, the process of copying.
  • the copying process in the embodiment of the present invention is also implemented by a clipboard. Since the clipboard in the electronic device manages N data and M second applications, the electronic device acquires data and After the mapping relationship of the application is applied, the mapping between the N data copies and the M second applications can be determined according to the mapping relationship between the data and the application.
  • the discontinuous N data acquired by the user in the WORD document of the mobile phone may be A, B, and C
  • the M second applications are the chat application and the sticky note application.
  • the user selects the mapping relationship between the data and the application by manually setting the copy setting interface of the mobile phone, that is, copying A and B to the chat application, and copying the C to the note application, so the mobile phone can according to the above correspondence. Copy A and B to the chat application and copy C to the note application.
  • the mapping relationship between the data acquired by the electronic device and the application is known by any means, and since there is only one second application, It suffices to determine the data to be copied corresponding to the second application, so that the electronic device determines the data of the second part corresponding to the second application from the N data, that is, the electronic device acquires the data and The mapping relationship of the application is gone.
  • the copying process in the embodiment of the present invention is also implemented by a clipboard. Since the clipboard in the electronic device manages N data and M second applications, the electronic device acquires data and After the mapping relationship of the application is applied, the mapping between the N data copies and the M second applications can be determined according to the mapping relationship between the data and the application.
  • the data management can be implemented by copying the centralized management of the multiple data into the second application at a time. To at least one application and simplify the implementation process, increasing the diversity of data sharing.
  • the mapping relationship between the data acquired by the electronic device and the application is based on the user's selection
  • the implementation method for the electronic device to obtain the mapping relationship between the data and the application may be as follows:
  • the electronic device obtains an implementation of the copy function, and the implementation of the copy function includes automatic and manual.
  • the automatic button is triggered to be turned on
  • the electronic device acquires a mapping relationship between the preset data and the application.
  • the manual button is triggered to be turned on, the electronic device acquires an input operation of the user. According to the user's input operation, the mapping relationship between the data and the application is obtained.
  • the method for copying data in the embodiment of the present invention may determine a manner of obtaining a mapping relationship between data and an application by using a setting button of a user triggering a copy setting interface, the data.
  • the mapping relationship with the application corresponds to the implementation of the copy function.
  • the setting button of the copy setting interface may have an automatic button and a manual button, and the user selects by opening different buttons.
  • the mapping relationship between the data and the application may be preset, or the mapping relationship between the data and the application obtained by the user selection may be automatically triggered to be opened, and the preset is obtained.
  • the mapping relationship between the data and the application is triggered by manual triggering, and the mapping relationship between the data and the application is obtained according to the user selection.
  • the electric device acquires the input operation of the user, that is, which data of the N data is selected by the user to be copied to the second application of the M second applications.
  • the selection process then, the electronic device can form a mapping relationship between the data and the application according to the user's selection or setting.
  • S204-S205 and S206-S207 are optional steps after S203.
  • whether to execute S204-S205 or S206- may be determined according to the actual value of M.
  • S207 the embodiment of the present invention is not limited.
  • an electronic device 1 which may include:
  • the obtaining unit 10 is configured to: when the copy function is enabled, obtain N pieces of data that are not consecutive from the first application, where the N pieces of data are data to be copied, where N ⁇ 2, N is a positive integer; M second applications, the M second applications are target applications for copying data, wherein M ⁇ 1, M is a positive integer.
  • the copy unit 11 is configured to copy the N data acquired by the obtaining unit 10 to the M second applications acquired by the obtaining unit 10 according to a mapping relationship between the data and the application.
  • the acquiring unit 10 is further configured to: after acquiring the M second applications, the copy unit 11 copies the N data to the M second applications according to a mapping relationship between the data and the application. Previously, the mapping relationship between the data and the application was obtained.
  • the electronic device 1 further includes: a determining unit 12.
  • the determining unit 12 is configured to, when M ⁇ 2, select the unit from the acquiring unit according to the user's selection
  • the data of the M first parts corresponding to the M second applications are respectively determined, and the data of the first part corresponds to a second application, and the data of the M first parts has at least two The first part of the data is not exactly the same.
  • Copying the N data to the M second applications according to the mapping relationship between the data and the application includes: copying, by the determining unit 12, the data of the M first parts to the The M second applications acquired by the obtaining unit 10 are described.
  • the electronic device 1 further includes: a determining unit 12.
  • Copying the N data to the M second applications according to the mapping relationship between the data and the application further includes: copying the data of the second part determined by the determining unit 12 to the Each of the second applications of the M second applications acquired by the obtaining unit 10 is described.
  • the electronic device 1 further includes: a starting unit 13.
  • the activation unit 13 is configured to start the copy function by using a copy setting interface before the obtaining unit 10 acquires N pieces of data from the first application.
  • the acquiring unit 10 is implemented by the initiating unit 13 when the copying function is enabled, and the copying function is enabled. It is connected to the starting unit 13.
  • the electronic device in the embodiment of the present invention may be an electronic device that can perform a copy and paste function.
  • the above-mentioned obtaining unit 10, copying unit 11, determining unit 12 and starting unit 13 may be implemented by a processor located on the electronic device 1, such as a central processing unit (CPU), a microprocessor (MPU), and digital signal processing.
  • a processor located on the electronic device 1 such as a central processing unit (CPU), a microprocessor (MPU), and digital signal processing.
  • the electronic device 1 may further include a memory, wherein the memory is configured to store executable program code, the program code including computer operating instructions, and the memory may include a high speed RAM memory
  • a non-volatile memory for example, at least one disk storage.
  • An electronic device when the copy function is turned on, from the first In the application, the N pieces of data that are not consecutive are obtained, where the N pieces of data are data to be copied, where N ⁇ 2; and M second applications are obtained, where the M second applications are target applications for copying data, where M ⁇ 1; Copy N data to M second applications according to the mapping relationship between data and application.
  • the electronic device when there is one second application in the embodiment of the present invention, the electronic device has the data to be copied, because the electronic device has temporarily stored the acquired N data in the clipboard. Copy to both can be copied to the second application at one time. It can be seen from the above analysis that the method for copying data provided by the embodiment of the present invention can realize sharing of multiple data to at least one application, and simplifies the implementation process, that is, simplifies the operation flow and improves the diversity of data sharing.
  • a computer readable storage medium storing computer executable instructions for implementing the method of copying data when executed by a processor.
  • embodiments of the invention may be provided as a method, system, or computer program product.
  • embodiments of the invention may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware.
  • embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • Embodiments of the invention are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for generating settings by instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the computer readable memory is stored in the computer readable memory.
  • the instructions in the production result include an article of manufacture of the instruction device that implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps that are set to implement the functions specified in one or more of the flow or in a block or blocks of the flowchart.
  • the data to be copied is obtained by the electronic device in one operation, and therefore, when there are at least two second
  • the application copies all the same data to be copied the user still performs the process of acquiring each data only through the electronic device, and stores it in the clipboard for the user to select.
  • the electronic device has the data to be copied, because the electronic device has temporarily stored the acquired N data in the clipboard. Copy to both can be copied to the second application at one time.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种拷贝数据的方法和电子设备,该方法包括:当拷贝功能开启时,从第一应用中,获取不连续的N个数据,该N个数据为待拷贝的数据,其中,N2;获取M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M1;根据数据与应用的映射关系,将N个数据拷贝至M个第二应用。

Description

一种拷贝数据的方法及电子设备 技术领域
本申请涉及但不限于电子信息领域中的信息传输技术,尤其涉及一种拷贝数据的方法及电子设备。
背景技术
随着电子技术的不断发展,应设置为电子设备间的应用也越来越多,因此,每个应用间的数据传输也越来越频繁。
相关的电子设备具有复制粘贴功能,可以通过复制粘贴功能将第一应用中的某个文本数据(待拷贝数据E)复制粘贴到第二应用的文本中。如图1所示,现将第一应用中的某个文本数据复制在电子设备的剪切板中,然后,获取待粘贴的第二应用,再将上述的某个文本数据从该剪切板中粘贴到已选中的该第二应用中,也就是从A应用复制内容到剪切板,再切换到B应用,选择粘贴,从该剪切板中获取内容,这样就完成了数据在不同应用间的共享。
然而,采用上述相关技术实现方案,由于每次复制粘贴操作只能一对一的进行,并只能管理一个复制对象。当用户需要复制至少一个数据到至少一个应用时,将会进行多次复制过程和多次的粘贴过程,例如,如果用户需要复制同一个内容到N多个应用的话,同样的步骤需要执行N次。从A应用切换到B,粘贴完在切换到C进行粘贴。这样如果应用过多会出现比较繁琐的步骤。相当于一次复制操作,需要N次的粘贴操作。或者,用户还可能会需要复制一个应用中的多个内容或数据到不同的应用中,即为从A应用中复制两个不同的内容或数据分别到B应用和C应用,这样的过程会更加复杂。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
为解决上述技术问题,本发明实施例期望提供一种拷贝数据的方法及电子设备,能够实现多个数据共享到至少一个应用,并简化了实现过程,提高了数据共享的多样性。
一种拷贝数据的方法,包括:
当拷贝功能开启时,从第一应用中,获取不连续的N个数据,所述N个数据为待拷贝的数据,其中,N≥2,N为正整数。
获取M个第二应用,所述M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数。
根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用。
可选地,所述方法还包括:
在获取M个应用之后,根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用之前,获取所述数据与应用的映射关系。
可选地,获取所述数据与应用的映射关系包括:
当M≥2时,依据用户的选择,从所述N个数据中分别确定与所述M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,所述M个第一部分的数据至少存在两个第一部分的数据不完全相同。
根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用包括:
将所述M个第一部分的数据对应拷贝至所述M个第二应用。
可选地,所述获取所述数据与应用的映射关系还包括:
当M=1时,依据用户的选择,从所述N个数据中确定一个第二部分的数据,所述第二部分的数据为所述N个数据中的任意个数的数据。
根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用还包括:
将所述一个第二部分的数据拷贝至所述M个第二应用的每个第二应用中。
可选地,所述方法还包括:
从第一应用中,获取不连续的N个数据之前,通过拷贝设置界面启动所述拷贝功能。
一种电子设备,包括:
获取单元,设置为当拷贝功能开启时,从第一应用中,获取不连续的N个数据,所述N个数据为待拷贝的数据,其中,N≥2,N为正整数;以及获取M个第二应用,所述M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数;
拷贝单元,设置为根据数据与应用的映射关系,将所述获取单元获取的所述N个数据拷贝至所述获取单元获取的所述M个第二应用。
可选地,所述获取单元,还设置为在获取M个第二应用之后,所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用之前,获取所述数据与应用的映射关系。
可选地,所述电子设备还包括:确定单元;
所述确定单元,设置为当M≥2时,依据用户的选择,从所述获取单元获取的所述N个数据中分别确定与所述M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,所述M个第一部分的数据至少存在两个第一部分的数据不完全相同。
所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用包括:将所述确定单元确定的所述M个第一部分的数据对应拷贝至所述获取单元获取的所述M个第二应用。
可选地,
所述确定单元,还设置为当M=1时,依据用户的选择,从所述获取单元获取的所述N个数据中确定一个第二部分的数据,所述第二部分的数据为所述N个数据中的任意个数的数据。
所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用还包括:将所述确定单元确定的所述一个第二部分的数据拷贝至所述获取单元获取的所述M个第二应用的每个第二应用中。
可选地,所述电子设备还包括:启动单元。
所述启动单元,设置为在所述获取单元所述从第一应用中,获取不连续的N个数据之前,通过拷贝设置界面启动所述拷贝功能。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执 行指令被处理器执行时实现所述的拷贝数据的方法。
本发明实施例提供了一种拷贝数据的方法及电子设备,通过当拷贝功能开启时,从第一应用中,获取不连续的N个数据,该N个数据为待拷贝的数据,其中,N≥2,N为正整数;获取M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数;根据数据与应用的映射关系,将N个数据拷贝至M个第二应用。采用上述技术实现方案,由于本发明实施例中第二应用有多个时,待拷贝数据不管有几个都是电子设备进行一次操作获取到的,因此,当有至少两个第二应用都考拷贝相同的多个待拷贝数据时,用户还是通过电子设备对每个数据只进行一次获取的过程,存放在剪切板中,供用户选择。或者,当本发明实施例中第二应用有一个时,不管带靠背数据有几个,由于电子设备已经将获取的N个数据了暂存在剪切板了,因此,电子设备将待拷贝的数据拷贝到都是可以一次拷贝到该第二应用中。由上述分析可知,本发明实施例提供的一种拷贝数据的方法,可以实现多个数据共享到至少一个应用,并简化了实现过程,也就是简化了操作流程,提高了数据共享的多样性。
附图概述
图1为本发明实施例提供的一种拷贝数据的方法实现的架构示意图;
图2为本发明实施例提供的一种拷贝数据的方法的流程图一;
图3为本发明实施例提供的一种拷贝数据的方法的流程图二;
图4为本发明实施例提供的一种拷贝数据的方法的流程图三;
图5为本发明实施例提供的一种拷贝设置界面的示意图;
图6为本发明实施例提供的一种示例性的拷贝数据的对应关系图;
图7为本发明实施例提供的一种电子设备的结构示意图一;
图8为本发明实施例提供的一种电子设备的结构示意图二;
图9为本发明实施例提供的一种电子设备的结构示意图三。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在 不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
实施例一
本发明实施例提供了一种拷贝数据的方法,应设置为电子设备中,如图2所示,该方法可以包括步骤S101-S103:
S101、当拷贝功能开启时,从第一应用中,获取不连续的N个数据,该N个数据为待拷贝的数据,其中,N≥2,N为正整数。
需要说明的是,本发明实施例中的电子设备中设置有多个应用,用户可以通过电子设备对上述多个应用进行操作,以实现多种功能。
可选地,本发明实施例中的第一应用可以为阅读器、浏览器、读书软件、编辑软件等等具有数据内容的应用或软件,本发明实施例不作限制。
可选地,本发明实施例中的不连续的N个数据(拷贝对象)为文本数据。
需要说明的是,本发明实施例中的拷贝对象还可以为图像等可拷贝的数据,本发明实施例不作限制。
可以理解的是,在第一应用中的数据可以有很多,若是想要拷贝其中一段数据时,可以直接选中该一段数据进行拷贝即可。本发明实施例中的N个数据为不连续的,且N≥2,即用户想要拷贝的对象或数据是分布在第一应用中的不同地方的数据,不能通过一次复制或选中来实现拷贝。在本发明实施例中,电子设备可以依次选中间隔的(不连续的)N个数据(拷贝对象)来进行拷贝过程。
需要说明的是,本发明实施例中的电子设备为具有操作系统的智能电子设备,该操作系统可以为安卓,IOS等,本发明实施例不作限制。
以安卓系统的电子设备为例,电子设备在进行拷贝过程中,电子设备通过自身的剪切板进行拷贝的,即通过安卓剪贴板管理服务android clipboardmanager实现的。因此,本发明实施例中与剪切板进行数据交互的过程之前,都必须与android clipboardmanager建立连接。
在本发明实施例中,电子设备通过用户的操作可以依次获取该用户想要拷贝的上述N个数据,同时,该电子设备根据相关的复制粘贴的相同原理,将上述N个数据以排列的方式暂存在中转模块(即剪切板)中,也就是说该 电子设备在获取待拷贝数据时,就将该获取到的待拷贝数据以栈的方式在剪切板中进行暂存,以便后续进行粘贴时选择使用。
可选地,电子设备在剪切板中维护或存储上述N个数据的方式可以是按照获取的时间顺序排列的,也可以是按照数据的大小排列的等等,排列规则,本发明实施例不作限制。
需要说明的是,相关技术中已经可以实现一次拷贝过程针对一个拷贝对象的过程了,本发明实施例中主要实现当用户想要拷贝的数据(拷贝对象)为多个数据的时候的情况。
S102、获取M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数。
电子设备在获取到待拷贝的上述N个数据之后,该电子设备开始根据用户的选择,获取要进行拷贝操作的目标应用,即在本发明实施例中,该电子设备获取到了M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1。
需要说明的是,本发明实施例中的第二应用是可以对N个数据进行拷贝的应用,也就是说N个数据的类型是与第二应用可以拷贝的类型一致的,这样,才能完成后续将N个数据拷贝至M个第二应用中的过程。
电子设备可以根据用户的选择,获取到M个第二应用,并将该M个第二应用以队的方式暂存在剪切板上。
S103、根据数据与应用的映射关系,将N个数据拷贝至M个第二应用。
电子设备获取了N个数据和M个第二应用之后,由于电子设备可以获取到数据和应用的映射关系,以确定每个第二应用想要拷贝哪些数据,因此,该电子设备可以根据数据与应用的映射关系,将N个数据拷贝至M个第二应用,完成数据的复制粘贴的过程,即拷贝的过程。
需要说明的是,本发明实施例中的数据与应用的映射关系可以为用户设置的,也可以是自动设置的,详细的过程将在后续的实施例中进行说明,实现方式本发明实施例不作限制。
特别的,本发明实施例中的拷贝过程也是通过剪切板来实现的,由于电 子设备中的剪切板对N个数据和M个第二应用进行了管理,因此,电子设备获取了数据与应用的映射关系后,就可以实现根据该数据与应用的映射关系,来决策N个数据拷贝至M个第二应用的分配了。
可以理解的是,由于本发明实施例中第二应用有多个时,待拷贝数据不管有几个都是电子设备进行一次操作获取到的,因此,当有至少两个第二应用都考拷贝相同的多个待拷贝数据时,用户还是通过电子设备对每个数据只进行一次获取的过程,存放在剪切板中,供用户选择。或者,当本发明实施例中第二应用有一个时,不管带靠背数据有几个,由于电子设备已经将获取的N个数据了暂存在剪切板了,因此,电子设备将待拷贝的数据拷贝到都是可以一次拷贝到该第二应用中。由上述分析可知,本发明实施例提供的一种拷贝数据的方法,可以实现多个数据共享到至少一个应用,并简化了实现过程,也就是简化了操作流程,提高了数据共享的多样性。
需要说明的是,以安卓系统的文本拷贝为例,本发明实施例中进行文本拷贝共享的内部逻辑实现时,第二应用数据的来源于用户选择粘贴目标应用(通过从setting apps或recent app中选取目标应用),粘贴内容来自于用户选择的文本内容。复制粘贴的过程与原生逻辑一样,是通过clipboardmanager和content provider机制来进行。但可以不同的应用对应不同的待拷贝内容,更加灵活与便利。
在S102之后,S103之前,如图3所示,本发明实施例提供的一种拷贝数据的方法还包括:S104。
S104、获取数据与应用的映射关系。
电子设备获取M个第二应用之后,该电子设备可以通过用户的操作,获取数据与应用的映射关系。
需要说明的是,本发明实施例中的数据与应用的映射关系可以为用户设置的,也可以是自动设置的,实现方式本发明实施例不作限制。
实施例二
本发明实施例提供了一种拷贝数据的方法,应用于电子设备中,如图4所示,该方法可以包括步骤S201-S207:
S201、通过拷贝设置界面启动拷贝功能。
需要说明的是,本发明实施例中的实现可以通过用户在拷贝设置界面的选择来开启。
如图5所示,电子设备的拷贝设置界面设置有拷贝功能的开关按钮,通过触发该开关按钮,对拷贝功能进行开或关,便于用户根据不同的需求进行设置。
S202、当拷贝功能开启时,从第一应用中,获取不连续的N个数据,该N个数据为待拷贝的数据,其中,N≥2。
需要说明的是,本发明实施例中的电子设备中设置有多个应用,用户可以通过电子设备对上述多个应用进行操作,以实现多种功能。
可选地,本发明实施例中的第一应用可以为阅读器、浏览器、读书软件、编辑软件等等具有数据内容的应用或软件,本发明实施例不作限制。
可选地,本发明实施例中的不连续的N个数据(拷贝对象)为文本数据。
需要说明的是,本发明实施例中的拷贝对象还可以为图像等可拷贝的数据,本发明实施例不作限制。
可以理解的是,在第一应用中的数据可以有很多,若是想要拷贝其中一段数据时,可以直接选中该一段数据进行拷贝即可。本发明实施例中的N个数据为不连续的,且N≥2,即用户想要拷贝的对象或数据是分布在第一应用中的不同地方的数据,不能通过一次复制或选中来实现拷贝。在本发明实施例中,电子设备可以依次选中间隔的(不连续的)N个数据(拷贝对象)来进行拷贝过程。
需要说明的是,本发明实施例中的电子设备为具有操作系统的智能电子设备,该操作系统可以为安卓,IOS等,本发明实施例不作限制。
以安卓系统的电子设备为例,电子设备在进行拷贝过程中,电子设备通过自身的剪切板进行拷贝的。
在本发明实施例中,电子设备通过用户的操作可以依次获取该用户想要拷贝的上述N个数据,同时,该电子设备根据相关的复制粘贴的相同原理,将上述N个数据以排列的方式暂存在中转模块(即剪切板)中,也就是说该 电子设备在获取待拷贝数据时,就将该获取到的待拷贝数据以栈的方式在剪切板中进行暂存,以便后续进行粘贴时选择使用。
可选地,电子设备在剪切板中维护或存储上述N个数据的方式可以是按照获取的时间顺序排列的,也可以是按照数据的大小排列的等等,排列规则,本发明实施例不作限制。
需要说明的是,相关技术中已经可以实现一次拷贝过程针对一个拷贝对象的过程了,本发明实施例中主要实现当用户想要拷贝的数据(拷贝对象)为多个数据的时候的情况。
S203、获取M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1。
电子设备在获取到待拷贝的上述N个数据之后,该电子设备开始根据用户的选择,获取要进行拷贝操作的目标应用,即在本发明实施例中,该电子设备获取到了M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1。
需要说明的是,本发明实施例中的第二应用是可以对N个数据进行拷贝的应用,也就是说N个数据的类型是与第二应用可以拷贝的类型一致的,这样,才能完成后续将N个数据拷贝至M个第二应用中的过程。
电子设备可以根据用户的选择,获取到M个第二应用,并将该M个应用以队的方式暂存在剪切板上。
需要说明的是,电子设备可以通过用户的操作,获取数据与应用的映射关系。本发明实施例中M的个数的不同,电子设备获取数据与应用的映射关系也不同。
可选地,本发明实施例中的数据与应用的映射关系可以为用户设置的,也可以是自动设置的,实现方式本发明实施例不作限制。
S204、当M≥2时,依据用户的选择,从N个数据中分别确定与该M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,该M个第一部分的数据至少存在两个第一部分的数据不完全相同。
需要说明的是,由于M可以为1,也可以大于1,而M大于1是待拷贝 的多个数据对第一第二应用的多对一的对应关系,M大于1时,是待拷贝的多个数据与多个第二应用的多对多的对应关系,因此,本发明实施例中将多对一和多对多的对应关系分开来进行说明。
电子设备获取M个第二应用之后,当M≥2时,根据依据用户的选择,该电子设备不管通过哪种方式获取的数据与应用的映射关系已知了,即电子设备从N个数据中分别确定与该M个第二应用对应的M个第一部分的数据。
需要说明的是,本发明实施例中的一个第一部分的数据对应一个第二应用,一个第一部分的数据可以是N个数据全部也可以是N个数据中的一部分。由于本发明实施例中电子设备获取的N个数据都是待拷贝的数据,也就是说N个数据都是需要拷贝到第二应用中的,因此,该M个第一部分的数据至少存在两个第一部分的数据不完全相同。
S205、将M个第一部分的数据对应拷贝至M个第二应用。
电子设备依据用户的选择,从N个数据中分别确定与该M个第二应用对应的M个第一部分的数据之后,由于电子设备可以获取到数据和应用的映射关系,以确定每个第二应用想要拷贝哪些数据,就确定了每个第二应用需要拷贝的数据是哪些,因此,上述电子设备就可以将M个第一部分的数据对应拷贝至其对应的M个第二应用中,完成数据的复制粘贴的过程,即拷贝的过程。
特别的,本发明实施例中的拷贝过程也是通过剪切板来实现的,由于电子设备中的剪切板对N个数据和M个第二应用进行了管理,因此,电子设备获取了数据与应用的映射关系后,就可以实现根据该数据与应用的映射关系,来决策N个数据拷贝至M个第二应用的分配了。
示例性的,如图6所示,假设用户在手机的WORD文档中获取的不连续的N个数据可以为A、B和C,M个第二应用为聊天应用和便签应用。用户在手机的拷贝设置界面通过手动设置选择了数据与应用的映射关系,即要将A和B拷贝到聊天应用,而要将C拷贝到便签应用,于是,手机就可以根据上述的对应关系,将A和B拷贝到聊天应用,将C拷贝到便签应用。
S206、当M=1时,依据用户的选择,从N个数据中确定一个第二部分 的数据,该第二部分的数据为该N个数据中的任意个数的数据。
电子设备获取M个第二应用之后,当M=1时,根据用户的选择,该电子设备不管通过哪种方式获取的数据与应用的映射关系已知了,由于只有一个第二应用,因此,只要确定该第二应用对应的待拷贝数据就可以了,于是,该电子设备从N个数据中确定出该一个第二应用对应的第二部分的数据就可以了,即电子设备获取了数据与应用的映射关系了。
S207、将一个第二部分的数据拷贝至M个第二应用的每个第二应用中。
电子设备从N个数据中确定一个第二部分的数据之后,该电子设备就可以将一个第二部分的数据拷贝至M个第二应用的每个第二应用中,由于M=1,也就是说电子设备将一个第二部分的数据拷贝至一个第二应用中,完成数据的复制粘贴的过程,即拷贝的过程。
特别的,本发明实施例中的拷贝过程也是通过剪切板来实现的,由于电子设备中的剪切板对N个数据和M个第二应用进行了管理,因此,电子设备获取了数据与应用的映射关系后,就可以实现根据该数据与应用的映射关系,来决策N个数据拷贝至M个第二应用的分配了。
可以理解的是,当一个第二应用需要拷贝不连续的多个数据时,可以通过将该多个数据的的集中管理中一次性地拷贝到该一个第二应用中,以实现多个数据共享到至少一个应用,并简化了实现过程,提高了数据共享的多样性。
本发明实施例中,不论M的取值为多少,电子设备获取数据与应用的映射关系是依据用户的选择的,电子设备获取数据与应用的映射关系的实现方法可以如下所述:在拷贝设置界面中,电子设备获取拷贝功能的实现方式,该拷贝功能的实现方式包括自动和手动。当自动按钮被触发开启时,电子设备获取预先设置的数据与应用的映射关系。当手动按钮被触发开启时,电子设备获取用户的输入操作。根据用户的输入操作,获取数据与应用的映射关系。
需要说明的是,在本发明实施例中的拷贝数据的方法可以通过用户触发拷贝设置界面的设置按钮来确定数据与应用的映射关系的获取方式,该数据 与应用的映射关系对应拷贝功能的实现方式。
可选地,如图5所示,拷贝设置界面的设置按钮可以有自动按钮和手动按钮,用户通过打开不同的按钮进行选择。
需要说明的是,本发明实施例中的电子设备中可以预设设置有数据与应用的映射关系,也可以通过用户选择来获取的数据与应用的映射关系,通过自动被触发开启,获取预先设置的数据与应用的映射关系,而通过手动被触发开启,根据用户选择来获取数据与应用的映射关系。
当电子设备的拷贝设置界面的自动按钮用用户触发打开时,该电设备获取用户的输入操作,也就是说用户选择N个数据中的哪些数据要拷贝到M个第二应用中哪些第二应用的选择的过程,然后,该电子设备就可以根据用户的选择或设定,形成了数据与应用的映射关系。
需要说明的是,S204-S205和S206-S207为S203之后的可选的步骤,在本发明实施例中,在S203之后,可以根据M的实际数值,来决定是执行S204-S205,还是S206-S207,本发明实施例不作限制。
实施例三
如图7所示,本发明实施例提供了一种电子设备1,该电子设备1可以包括:
获取单元10,设置为当拷贝功能开启时,从第一应用中,获取不连续的N个数据,所述N个数据为待拷贝的数据,其中,N≥2,N为正整数;以及获取的M个第二应用,所述M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数。
拷贝单元11,设置为根据数据与应用的映射关系,将所述获取单元10获取的所述N个数据拷贝至所述获取单元10获取的所述M个第二应用。
可选地,所述获取单元10,还设置为在获取M个第二应用之后,所述拷贝单元11根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用之前,获取所述数据与应用的映射关系。
可选地,如图8所示,所述电子设备1还包括:确定单元12。
所述确定单元12,设置为当M≥2时,依据用户的选择,从所述获取单元 10获取的所述N个数据中分别确定与所述M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,所述M个第一部分的数据至少存在两个第一部分的数据不完全相同。
所述拷贝单元11根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用包括:将所述确定单元12确定的所述M个第一部分的数据对应拷贝至所述获取单元10获取的所述M个第二应用。
可选地,如图8所示,所述电子设备1还包括:确定单元12。
所述确定单元12,设置为当M=1时,依据用户的选择,从所述获取单元10获取的所述N个数据中确定一个第二部分的数据,所述第二部分的数据为所述N个数据中的任意个数的数据。
所述拷贝单元11根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用还包括:将所述确定单元12确定的所述一个第二部分的数据拷贝至所述获取单元10获取的所述M个第二应用的每个第二应用中。
可选地,如图9所示,所述电子设备1还包括:启动单元13。
所述启动单元13,设置为在所述获取单元10从第一应用中,获取不连续的N个数据之前,通过拷贝设置界面启动所述拷贝功能。
需要说明的是,获取单元10从第一应用中获取N个数据的前提是当拷贝功能开启时,而拷贝功能开启是通过启动单元13实现的,因此,在本发明实施例中,获取单元10与启动单元13是连接的。
可选地,本发明实施例中的电子设备可以为可进行复制粘贴功能的电子设备。
在实际应用中,上述获取单元10、拷贝单元11、确定单元12和启动单元13可由位于电子设备1上的处理器实现,如中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等实现,该电子设备1还可以包括存储器,其中,存储器设置为存储可执行程序代码,该程序代码包括计算机操作指令,存储器可能包含高速RAM存储器,也可能还包括非易失性存储器,例如,至少一个磁盘存储器。
本发明实施例所提供的一种电子设备,通过当拷贝功能开启时,从第一 应用中,获取不连续的N个数据,该N个数据为待拷贝的数据,其中,N≥2;获取M个第二应用,该M个第二应用为拷贝数据的目标应用,其中,M≥1;根据数据与应用的映射关系,将N个数据拷贝至M个第二应用。采用上述技术实现方案,由于本发明实施例中第二应用有多个时,待拷贝数据不管有几个都是电子设备进行一次操作获取到的,因此,当有至少两个第二应用都考拷贝相同的多个待拷贝数据时,用户还是通过电子设备对每个数据只进行一次获取的过程,存放在剪切板中,供用户选择。或者,当本发明实施例中第二应用有一个时,不管带靠背数据有几个,由于电子设备已经将获取的N个数据了暂存在剪切板了,因此,电子设备将待拷贝的数据拷贝到都是可以一次拷贝到该第二应用中。由上述分析可知,本发明实施例提供的一种拷贝数据的方法,可以实现多个数据共享到至少一个应用,并简化了实现过程,也就是简化了操作流程,提高了数据共享的多样性。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的拷贝数据的方法。
本领域内的技术人员应明白,本发明实施例可提供为方法、系统、或计算机程序产品。因此,本发明实施例可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明实施例是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生设置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供设置为实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
工业实用性
采用本发明实施例的技术方案,由于本发明实施例中第二应用有多个时,待拷贝数据不管有几个都是电子设备进行一次操作获取到的,因此,当有至少两个第二应用都考拷贝相同的多个待拷贝数据时,用户还是通过电子设备对每个数据只进行一次获取的过程,存放在剪切板中,供用户选择。或者,当本发明实施例中第二应用有一个时,不管带靠背数据有几个,由于电子设备已经将获取的N个数据了暂存在剪切板了,因此,电子设备将待拷贝的数据拷贝到都是可以一次拷贝到该第二应用中。由上述分析可知,本发明实施例提供的一种拷贝数据的方法,可以实现多个数据共享到至少一个应用,并简化了实现过程,也就是简化了操作流程,提高了数据共享的多样性。

Claims (11)

  1. 一种拷贝数据的方法,包括:
    当拷贝功能开启时,从第一应用中,获取不连续的N个数据,所述N个数据为待拷贝的数据,其中,N≥2,N为正整数;
    获取M个第二应用,所述M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数;
    根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用。
  2. 根据权利要求1所述的拷贝数据的方法,所述方法还包括:在获取M个应用之后,在根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用之前,获取所述数据与应用的映射关系。
  3. 根据权利要求2所述的拷贝数据的方法,其中,所述获取所述数据与应用的映射关系包括:
    当M≥2时,依据用户的选择,从所述N个数据中分别确定与所述M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,所述M个第一部分的数据至少存在两个第一部分的数据不完全相同;
    所述根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用包括:
    将所述M个第一部分的数据对应拷贝至所述M个第二应用。
  4. 根据权利要求3所述的拷贝数据的方法,其中,所述获取所述数据与应用的映射关系还包括:
    当M=1时,依据用户的选择,从所述N个数据中确定一个第二部分的数据,所述第二部分的数据为所述N个数据中的任意个数的数据;
    所述根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用还包括:
    将所述一个第二部分的数据拷贝至所述M个第二应用的每个第二应用中。
  5. 根据权利要求1所述的拷贝数据的方法,所述方法还包括:从第一应 用中,获取不连续的N个数据之前,通过拷贝设置界面启动所述拷贝功能。
  6. 一种电子设备,包括:
    获取单元,设置为当拷贝功能开启时,从第一应用中,获取不连续的N个数据,所述N个数据为待拷贝的数据,其中,N≥2,N为正整数;以及获取M个第二应用,所述M个第二应用为拷贝数据的目标应用,其中,M≥1,M为正整数;
    拷贝单元,设置为根据数据与应用的映射关系,将所述获取单元获取的所述N个数据拷贝至所述获取单元获取的所述M个第二应用。
  7. 根据权利要求6所述的电子设备,
    所述获取单元,还设置为在获取M个第二应用之后,所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用之前,获取所述数据与应用的映射关系。
  8. 根据权利要求7所述的电子设备其中,所述电子设备还包括:确定单元;
    所述确定单元,设置为当M≥2时,依据用户的选择,从所述获取单元获取的所述N个数据中分别确定与所述M个第二应用对应的M个第一部分的数据,一个第一部分的数据对应一个第二应用,所述M个第一部分的数据至少存在两个第一部分的数据不完全相同;
    所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用包括:将所述确定单元确定的所述M个第一部分的数据对应拷贝至所述获取单元获取的所述M个第二应用。
  9. 根据权利要求8所述的电子设备,
    所述确定单元,还设置为当M=1时,依据用户的选择,从所述获取单元获取的所述N个数据中确定一个第二部分的数据,所述第二部分的数据为所述N个数据中的任意个数的数据;
    所述拷贝单元根据数据与应用的映射关系,将所述N个数据拷贝至所述M个第二应用还包括:将所述确定单元确定的所述一个第二部分的数据拷贝至所述获取单元获取的所述M个第二应用的每个第二应用中。
  10. 根据权利要求6所述的电子设备,所述电子设备还包括:启动单元;
    所述启动单元,设置为在所述获取单元从第一应用中,获取不连续的N个数据之前,通过拷贝设置界面启动所述拷贝功能。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现权利要求1至5任意一项所述的拷贝数据的方法。
PCT/CN2016/086258 2016-03-25 2016-06-17 一种拷贝数据的方法及电子设备 WO2017161705A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610179614.XA CN107229523A (zh) 2016-03-25 2016-03-25 一种拷贝数据的方法及电子设备
CN201610179614.X 2016-03-25

Publications (1)

Publication Number Publication Date
WO2017161705A1 true WO2017161705A1 (zh) 2017-09-28

Family

ID=59899327

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/086258 WO2017161705A1 (zh) 2016-03-25 2016-06-17 一种拷贝数据的方法及电子设备

Country Status (2)

Country Link
CN (1) CN107229523A (zh)
WO (1) WO2017161705A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486406A (zh) * 2019-09-11 2021-03-12 国际商业机器公司 动态调整多个存储器拷贝和存储器映射窗口以优化i/o性能

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174268A (zh) * 2017-12-27 2018-06-15 深圳Tcl数字技术有限公司 基于电视的数据拷贝方法、设备、系统及可读存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064763A (zh) * 2012-12-27 2013-04-24 华为技术有限公司 一种数据备份方法及相关设备、系统
CN103415848A (zh) * 2011-05-27 2013-11-27 英派尔科技开发有限公司 使用元数据进行应用程序的无缝备份和恢复
CN104253834A (zh) * 2013-06-27 2014-12-31 中国电信股份有限公司 对移动应用数据拷贝进行控制的方法、移动终端和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103415848A (zh) * 2011-05-27 2013-11-27 英派尔科技开发有限公司 使用元数据进行应用程序的无缝备份和恢复
CN103064763A (zh) * 2012-12-27 2013-04-24 华为技术有限公司 一种数据备份方法及相关设备、系统
CN104253834A (zh) * 2013-06-27 2014-12-31 中国电信股份有限公司 对移动应用数据拷贝进行控制的方法、移动终端和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486406A (zh) * 2019-09-11 2021-03-12 国际商业机器公司 动态调整多个存储器拷贝和存储器映射窗口以优化i/o性能

Also Published As

Publication number Publication date
CN107229523A (zh) 2017-10-03

Similar Documents

Publication Publication Date Title
CN109564531B (zh) 与剪贴板存储库交互
JP2018185836A (ja) インテリジェント端末制御方法
WO2015123937A1 (zh) 一种分屏处理方法、装置及计算机存储介质
US20130232408A1 (en) System and method for text editing
WO2017113690A1 (zh) 多媒体信息的分享方法及装置
US12056415B2 (en) Desktop sharing method and mobile terminal
US20130239014A1 (en) File transfer methodology for a desktop sharing system
TW201626205A (zh) 資料處理系統和方法
US11036792B2 (en) Method for designating and tagging album of stored photographs in touchscreen terminal, computer-readable recording medium, and terminal
CN106228063A (zh) 辅助功能权限操控方法、装置及终端设备
CN105512033A (zh) 一种移动终端的自动化测试方法、装置及移动终端
WO2014169607A1 (zh) 拖动图标的方法及装置
JP2019534524A (ja) 操作オブジェクト処理方法及び装置
CN108989680A (zh) 摄像进程启动方法、计算机装置及计算机可读存储介质
WO2017161705A1 (zh) 一种拷贝数据的方法及电子设备
WO2016173307A1 (zh) 一种消息复制方法和装置、以及智能终端
JP6620232B2 (ja) モバイルコンピューティング装置によってキャプチャしたメディアを電子文書に添付するための技術
WO2018010339A1 (zh) 目标对象的处理方法及装置
WO2021233115A1 (zh) 文件名称的修改方法和装置及存储介质
WO2015196770A1 (zh) 桌面壁纸更换方法及装置
WO2016061921A1 (zh) 组合多种应用操作的方法、装置、终端及计算机存储介质
EP3891589B1 (en) Human-computer interface for navigating a presentation file
WO2016202054A1 (zh) 一种可自定义的终端操作面板实现方法及装置
WO2022228301A1 (zh) 文档生成方法、装置和电子设备
TWI639942B (zh) 快速複製粘貼系統及方法

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16895057

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16895057

Country of ref document: EP

Kind code of ref document: A1