CN106055416B - Method and device for data cross-application transfer - Google Patents

Method and device for data cross-application transfer Download PDF

Info

Publication number
CN106055416B
CN106055416B CN201610348809.2A CN201610348809A CN106055416B CN 106055416 B CN106055416 B CN 106055416B CN 201610348809 A CN201610348809 A CN 201610348809A CN 106055416 B CN106055416 B CN 106055416B
Authority
CN
China
Prior art keywords
graph
application
graphic
inputting
stored
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.)
Active
Application number
CN201610348809.2A
Other languages
Chinese (zh)
Other versions
CN106055416A (en
Inventor
高欢欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201610348809.2A priority Critical patent/CN106055416B/en
Publication of CN106055416A publication Critical patent/CN106055416A/en
Application granted granted Critical
Publication of CN106055416B publication Critical patent/CN106055416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/543Local

Abstract

The invention relates to a method and a device for transferring data across applications, wherein the method comprises the following steps: determining a first graph in a first application; screenshot is carried out on the first graph, a second graph is generated, and the second graph is stored; receiving an instruction to input the first graphic to a second application; and inputting the stored second graph to a second application according to the instruction for inputting the first graph to the second application. The problem that the graph cannot be displayed when the first graph is directly transferred to the second application is solved by transferring the first image in the first application to the second application in the screenshot data mode.

Description

Method and device for data cross-application transfer
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a device for transferring data across applications.
Background
Users often need to transfer data for recording, saving, editing, etc. In the conventional technology, data transfer is generally to copy and paste data, but for data based on a specific application, a problem that the data cannot be identified and further cannot be displayed under a non-specific application is likely to occur during copy and paste.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for data cross-application transfer, aiming at the problem that data cannot be identified after the data cross-application transfer.
A method of data transfer across applications, the method comprising:
determining a first graph in a first application;
screenshot is carried out on the first graph, a second graph is generated, and the second graph is stored;
receiving an instruction to input the first graphic to a second application;
and inputting the stored second graph to a second application according to the instruction for inputting the first graph to the second application.
In one embodiment, the determining the first graph in the first application includes:
receiving a copy instruction of a graph of a first application;
determining the first graph according to the copying instruction;
the receiving an instruction to input the first graphic to a second application comprises:
receiving an instruction of pasting a first graph at an editing position of a second application;
the inputting the stored second graphic to the second application includes:
pasting the stored second graphic to the editing location of the second application.
In one embodiment, the determining of the first graph in the first application further comprises determining a text in the first application;
the method further comprises the following steps: acquiring position information of the first graph in the characters;
before or after the step of storing the second graph, the step of storing the second graph further comprises the step of storing the characters;
the inputting the stored second graphic to the second application includes:
inputting the stored characters into a second application;
and inputting the stored second graph into the character according to the position information.
In one embodiment, the first graphic is a visual emotion symbol in a social application.
In one embodiment, the second application is a text processing application; the inputting the stored second graphic to the second application includes:
acquiring a word format of a word processing page currently activated by the text processing application;
adjusting the size of the second graph according to the character format;
and inputting the adjusted second graph into the text processing application.
An apparatus for data transfer across applications, the apparatus comprising:
the data determining module is used for determining a first graph in the first application;
the screenshot module is used for screenshot the first graph, generating a second graph and storing the second graph;
the transfer command acquisition module is used for receiving an instruction of inputting the first graph to a second application;
and the transfer module is used for inputting the stored second graph to the second application according to the instruction for inputting the first graph to the second application.
In one embodiment, the data determination module is further configured to receive a copy instruction of a graphic of a first application; determining the first graph according to the copying instruction;
the transfer command acquisition module is further used for receiving an instruction of pasting the first graph at the editing position of the second application;
the transfer module is further configured to paste the stored second graphic to the editing position of the second application.
In one embodiment, the data determining module is further configured to determine a text in the first application at the same time as the determining of the first graphic in the first application;
the device further comprises:
the positioning module is used for acquiring the position information of the first graph in the characters;
the character storage module is used for storing the characters;
the transfer module is used for inputting the stored characters into a second application; and inputting the stored second graph into the character according to the position information.
In one embodiment, the first graphic is a visual emotion symbol in a social application.
In one embodiment, the second application is a text processing application;
the transfer module includes:
the character format acquisition module is used for acquiring the character format of the currently activated character processing page of the text processing application;
the adjusting module is used for adjusting the size of the second graph according to the character format;
and the input module is used for inputting the adjusted second graph into the text processing application.
The method and the device for transferring the data across the applications determine a first graph in a first application; screenshot is carried out on the first graph, a second graph is generated, and the second graph is stored; receiving an instruction to input the first graphic to a second application; and inputting the stored second graph to a second application according to the instruction for inputting the first graph to the second application. According to the method and the device, the first graph of the first application is captured, and the first image is transferred to the second application in the form of captured data, so that the problem that the graph cannot be displayed when the first graph under the first application is directly transferred to the second application is solved.
Drawings
FIG. 1 is a flow diagram that illustrates a method for data transfer across applications, in one embodiment;
FIG. 2 is a flow diagram of a method for data transfer across applications in another embodiment;
FIG. 3 is a flow diagram that illustrates a methodology for cross-application transfer of text and graphics, in accordance with an embodiment;
FIG. 4 is a flow diagram of adjusting transfer data in one embodiment;
FIG. 5 is a block diagram of an apparatus for data transfer across applications in one embodiment;
FIG. 6 is a block diagram of an embodiment of a device that implements word processing;
FIG. 7 is a block diagram of the structure of a transfer module in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In an embodiment as shown in FIG. 1, there is provided a method of data transfer across applications, the method comprising:
step S102: a first graph in a first application is determined.
The first application is a software program installed on the software platform for users to use, and can be based on Andord's application, website application and the like. The application has a visualization page to enable interaction with the user.
The first graphic refers to an image that can be displayed in a first application, the first graphic of which is essentially a graphic symbol, such as in a QQ application, the essence of an emoticon is an emoticon "/abc".
In one embodiment, a first graphic of the display interface of the first application may be selected by means of a mouse, a keyboard, a touch screen, or the like, and a region where the first graphic is located may be determined.
Step S104: and screenshot is carried out on the first graph, a second graph is generated, and the second graph is stored.
After the area range of the first graph is determined, screenshot is conducted on the graph in the area range, a second graph is generated, and the second graph is stored in a server. And when the server stores the second graph, the binding relationship between the second graph and the first graph is stored at the same time.
The attribute of the second graph is a picture attribute, for example, the second graph format is BMP format, JPG format, GIF format, or the like.
Step S106: an instruction to input the first graphic to a second application is received.
An instruction for instructing the first graphic to be input into the second application is generated by applying an operation acting on the second application, that is, a correspondence relationship is established between the instruction and the first graphic.
Step S108: and inputting the stored second graph to a second application according to the instruction for inputting the first graph to the second application.
Due to the corresponding relation between the first graph and the second graph of the instruction, the server can inquire the corresponding second graph and transmit the second graph to the second application according to the instruction.
In the method for transferring data across applications as in the embodiment of fig. 1, a screenshot graph-a second graph of a first graph is transferred to a second application by screenshot a first graph to be transferred, and the second graph can be displayed in the second application because the second graph is the screenshot graph and is not a graph exclusive to the first application, thereby solving the problem that the first graph cannot be displayed when directly transferred to the second application.
In one embodiment, as shown in fig. 2, step S102 includes:
step S202: a copy instruction of a graphic of a first application is received.
Step S204: determining the first graph according to the copy instruction.
Following step S204 is step S206: and screenshot is carried out on the first graph, a second graph is generated, and the second graph is copied.
Step S106 is step S208 in this embodiment: an instruction to paste a first graphic at an editing location of a second application is received.
The determination of the editing position is the determination of a user, and the user can designate the editing position through an input device such as a mouse, a keyboard or a touch screen.
Step S108 is step S210 in this embodiment: pasting the stored second graphic to the editing location of the second application.
The above embodiment is to implement data transfer by copy and paste. The screenshot graph-the second graph of the first graph is copied, and the second graph is pasted to the second application.
In one embodiment, the first graphic is a visual emotion symbol in a social application. Such as emoticons in a chat application. And screenshot is carried out on the emoticons displayed in the first application, an emoticon is generated, the emoticon is pasted to the second application, and the second application can display the emoticon. In the conventional technology, an emoticon in a first application is directly copied and is displayed on a second application interface as a character string corresponding to the emoticon when the emoticon is pasted to a second application, and the emoticon cannot be displayed because the second application cannot recognize the character string. Aiming at the problem that the emoticon cannot be displayed after being transferred in the prior art, the embodiment solves the problem that the emoticon cannot be displayed in a cross-application mode through transferring the screenshot.
In one embodiment, as shown in fig. 3, in step S102: the determining the first graph in the first application also includes step S302: a text in the first application is determined.
The method for determining the first graph and the first character comprises the following steps: receiving a copy instruction input by a user, wherein the copy instruction carries a selection of a copy content corresponding to the user, and the copy content comprises graphics and characters.
The method further comprises the following steps: step S304: and acquiring the position information of the first graph in the characters.
In one embodiment, the first graphic is a visual emotion symbol emoji expression. emoji emoticons have a particular format that is distinguished from text, for example, the QQ application emoji emoticon is in "/abc" format. The obtaining of the position information of the first graphic in the text may be: inquiring the emoji expression symbols of the emoji expression, positioning the emoji expression symbols of the emoji expression, and acquiring the position information of the emoji expression in the characters according to the positioning.
Before or after step S200, further comprising: and storing the characters.
In one embodiment, the stored text is a copied text to a clipboard.
Step S108 is step S306 in this embodiment: and inputting the stored second graph into the character according to the position information.
In one embodiment, the method comprises the steps of obtaining characters from a clipboard, pasting the obtained characters into a second application, obtaining a second graph from the clipboard, and pasting the second graph of the screenshot of the first graph to a position corresponding to the position information according to the obtained position information of the first graph. When the first graph is an emoji expression, the second graph is an expression image of the emoji expression. And during data transfer, replacing the emoji expression at the corresponding position in the first application with an expression image corresponding to the emoji expression, wherein the expression image is in a picture format and is not in a specific format under the first application, so that the transferred expression can be displayed in the second application.
In one embodiment, the second application is a text processing application.
In one embodiment, the text processing application is a word processor word.
As shown in fig. 4, step S108 includes:
step S402: and acquiring the word format of the word processing page currently activated by the text processing application.
In one embodiment, specifically, a text format of a word current editing interface is obtained, where the text format includes: word size, word spacing, line spacing.
Step S404: and adjusting the size of the second graph according to the character format.
Specifically, the second graphic is wholly enlarged or wholly reduced according to the text format so that the second graphic can be matched with the text format of other contents in the second application when being input to the second application.
Step S406: and inputting the adjusted second graph into the text processing application.
In this embodiment, the adjusted second graph is input into the text processing application, so that the problem that the graph is too large or too small due to directly inputting the intercepted second graph is avoided, and the subsequent cost of a large amount of adjustment time for a user is avoided.
In one embodiment, as shown in fig. 5, there is provided an apparatus for data transfer across applications, the apparatus comprising:
a data determination module 510 for determining a first graphic in a first application.
And the screenshot module 520 is configured to perform screenshot on the first graph, generate a second graph, and store the second graph.
A transfer command acquisition module 530 for receiving an instruction to input the first graphic to a second application.
The transferring module 540 is configured to input the stored second graphic to the second application according to the instruction for inputting the first graphic to the second application.
In one embodiment, the data determination module 510 is further configured to receive a copy instruction of a graphic of a first application; determining the first graph according to the copy instruction.
The transfer command obtaining module 530 is further configured to receive an instruction to paste the first graphic at the editing position of the second application.
The transferring module 540 is further configured to paste the stored second graphic to the editing position of the second application.
In one embodiment, the data determining module 510 is further configured to determine the text in the first application at the same time as the determining the first graphic in the first application.
As shown in fig. 6, the apparatus further includes:
and the positioning module 610 is configured to obtain position information of the first graph in the text.
And a text storage module 620, configured to store the text.
The transfer module 540 is configured to input the stored text into a second application; and inputting the stored second graph into the character according to the position information.
In one embodiment, the first graphic is a visual emotion symbol in a social application.
In one embodiment, the second application is a text processing application.
As shown in fig. 7, the transfer module 540 includes:
a word format obtaining module 710, configured to obtain a word format of a word processing page currently activated by the text processing application.
An adjusting module 720, configured to adjust the size of the second graphic according to the text format.
An input module 730, configured to input the adjusted second graphic into the text processing application.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by hardware related to instructions of a computer program, and the program may be stored in a computer readable storage medium, for example, in the storage medium of a computer system, and executed by at least one processor in the computer system, so as to implement the processes of the embodiments including the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (12)

1. A method of data transfer across applications, the method comprising:
determining a first graph in a first application;
screenshot is carried out on the first graph, a second graph is generated, and the second graph is stored; the attribute of the second graph is a picture attribute;
receiving an instruction to input the first graphic to a second application;
inputting the stored second graph into a second application according to the instruction for inputting the first graph into the second application;
wherein the first graphic is an image capable of being displayed in a first application, and the first graphic of the first application is essentially a graphic symbol;
the step of determining a first graph in a first application comprises: selecting a first graph of a display interface of the first application by means of input equipment, and determining the area range where the first graph is located;
the step of screenshot the first graph and generating a second graph comprises the following steps: and after the area range where the first graph is located is determined, screenshot is carried out on the graph in the area range, and the second graph is generated.
2. The method of claim 1, wherein:
the determining a first graph in a first application includes:
receiving a copy instruction of a graph of a first application;
determining the first graph according to the copying instruction;
the receiving an instruction to input the first graphic to a second application comprises:
receiving an instruction of pasting a first graph at an editing position of a second application;
the inputting the stored second graphic to the second application includes:
pasting the stored second graphic to the editing location of the second application.
3. The method of claim 1, wherein:
determining a first graph in the first application and determining characters in the first application;
the method further comprises the following steps: acquiring position information of the first graph in the characters;
before or after the step of storing the second graph, the step of storing the second graph further comprises the step of storing the characters;
the inputting the stored second graphic to the second application includes:
inputting the stored characters into a second application;
and inputting the stored second graph into the character according to the position information.
4. The method of claim 1, wherein the first graphic is a visual emotion symbol in a social application.
5. The method of claim 1, wherein the second application is a text processing application; the inputting the stored second graphic to the second application includes:
acquiring a word format of a word processing page currently activated by the text processing application;
adjusting the size of the second graph according to the character format;
and inputting the adjusted second graph into the text processing application.
6. An apparatus for data transfer across applications, the apparatus comprising:
the data determining module is used for determining a first graph in the first application;
the screenshot module is used for screenshot the first graph, generating a second graph and storing the second graph; the attribute of the second graph is a picture attribute;
the transfer command acquisition module is used for receiving an instruction of inputting the first graph to a second application;
the transfer module is used for inputting the stored second graph to a second application according to the instruction for inputting the first graph to the second application;
wherein the first graphic is an image capable of being displayed in a first application, and the first graphic of the first application is essentially a graphic symbol;
the determining a first graphic in a first application comprises: selecting a first graph of a display interface of the first application by means of input equipment, and determining the area range where the first graph is located;
the screenshot of the first graph, and the generation of the second graph comprises: and after the area range where the first graph is located is determined, screenshot is carried out on the graph in the area range, and the second graph is generated.
7. The apparatus of claim 6, wherein:
the data determination module is further used for receiving a copying instruction of the graph of the first application; determining the first graph according to the copying instruction;
the transfer command acquisition module is further used for receiving an instruction of pasting the first graph at the editing position of the second application;
the transfer module is further configured to paste the stored second graphic to the editing position of the second application.
8. The apparatus of claim 6, wherein:
the data determination module is further used for determining the first graph in the first application and determining the characters in the first application at the same time;
the device further comprises:
the positioning module is used for acquiring the position information of the first graph in the characters;
the character storage module is used for storing the characters;
the transfer module is used for inputting the stored characters into a second application; and inputting the stored second graph into the character according to the position information.
9. The apparatus of claim 6, wherein the first graphic is a visual emotion symbol in a social application.
10. The apparatus of claim 6, wherein the second application is a text processing application;
the transfer module includes:
the character format acquisition module is used for acquiring the character format of the currently activated character processing page of the text processing application;
the adjusting module is used for adjusting the size of the second graph according to the character format;
and the input module is used for inputting the adjusted second graph into the text processing application.
11. A storage medium on which a computer program is stored, which program, when executed by a processor, is operable to carry out a method of data transfer across applications as claimed in any one of claims 1 to 5.
12. A terminal device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the method of data transfer across applications as claimed in any one of claims 1 to 5 when executing the program.
CN201610348809.2A 2016-05-23 2016-05-23 Method and device for data cross-application transfer Active CN106055416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610348809.2A CN106055416B (en) 2016-05-23 2016-05-23 Method and device for data cross-application transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610348809.2A CN106055416B (en) 2016-05-23 2016-05-23 Method and device for data cross-application transfer

Publications (2)

Publication Number Publication Date
CN106055416A CN106055416A (en) 2016-10-26
CN106055416B true CN106055416B (en) 2020-08-18

Family

ID=57175144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610348809.2A Active CN106055416B (en) 2016-05-23 2016-05-23 Method and device for data cross-application transfer

Country Status (1)

Country Link
CN (1) CN106055416B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108363536A (en) * 2018-02-27 2018-08-03 维沃移动通信有限公司 A kind of expression packet application method and terminal device
CN111061530A (en) * 2019-12-05 2020-04-24 维沃移动通信有限公司 Image processing method, electronic device and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100732114B1 (en) * 2005-03-07 2007-06-27 엘지전자 주식회사 Method for converting a message into a photograph in mobile terminal
CN101252550A (en) * 2008-03-31 2008-08-27 腾讯科技(深圳)有限公司 User-defined information management apparatus, method and system
EP2535811A1 (en) * 2011-06-15 2012-12-19 Amadeus S.A.S. Improvements in or relating to pasting data
CN103345493B (en) * 2013-06-27 2016-12-07 广州市动景计算机科技有限公司 Method that content of text on mobile terminal shows, Apparatus and system
US20160055370A1 (en) * 2014-08-21 2016-02-25 Futurewei Technologies, Inc. System and Methods of Generating User Facial Expression Library for Messaging and Social Networking Applications
CN105160033B (en) * 2015-09-30 2018-09-11 北京奇虎科技有限公司 The processing method and processing device of expression character string

Also Published As

Publication number Publication date
CN106055416A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
US10834037B2 (en) Systems and methods for image sharing
CN109918345B (en) Document processing method, device, terminal and storage medium
JP6022540B2 (en) Push notification to update multiple dynamic icon panels
US10613717B2 (en) Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image
US10162807B2 (en) Attachment markup and message transmission
US11895076B2 (en) Electronic messaging platform that allows users to edit and delete messages after sending
US20150058708A1 (en) Systems and methods of character dialog generation
US20140379328A1 (en) Apparatus and method for outputting image according to text input in real time
US10650085B2 (en) Providing interactive preview of content within communication
EP3274940A1 (en) Providing attachment control to manage attachments in conversation
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
US20180343563A1 (en) Method and system for using a plurality of accounts in an instant messaging application
CN106878151B (en) Method, equipment and system for transmitting information
CN106055416B (en) Method and device for data cross-application transfer
US10599688B2 (en) Automatically embedding digital maps in software applications
WO2018214776A1 (en) Emoji processing method, computer equipment and storage medium
CN108255898B (en) Page display method and device
US11662886B2 (en) System and method for directly sending messages with minimal user input
CN115329720A (en) Document display method, device, equipment and storage medium
KR20150000030A (en) Contents sharing service
CN113590564A (en) Data storage method and device, electronic equipment and storage medium
WO2016017009A1 (en) Message processing device, message processing method, recording medium, and program
US20120023414A1 (en) Method and apparatus for processing e-mail
EP4161031A1 (en) Method for reminder object operation
CN112306362A (en) View processing method and device

Legal Events

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