CN104796462A - Method and system for synchronizing content of clipboards of android devices - Google Patents

Method and system for synchronizing content of clipboards of android devices Download PDF

Info

Publication number
CN104796462A
CN104796462A CN201510138712.4A CN201510138712A CN104796462A CN 104796462 A CN104796462 A CN 104796462A CN 201510138712 A CN201510138712 A CN 201510138712A CN 104796462 A CN104796462 A CN 104796462A
Authority
CN
China
Prior art keywords
android device
pasted
information
clipbook
clipboard
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
CN201510138712.4A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201510138712.4A priority Critical patent/CN104796462A/en
Publication of CN104796462A publication Critical patent/CN104796462A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • 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]

Abstract

The invention provides a method and system for synchronizing content of clipboards of android devices. The method includes the steps that the first android device detects a copying operation of a user in real time, and the first chipboard of the first android device obtains to-be-pasted information selected through the copying operation and broadcasts the to-be-pasted information when the cop operation is detected; the second android device receives and obtains the to-be-pasted information and then writes the to-be-pasted information to the second clipboard in the second android device. Rapid text message sharing is achieved by synchronizing clipboards of various communication terminal devices, the user can share text messages among multiple devices through only one copying/pasting operation, and great convenience is brought to the user.

Description

A kind of Android device Contents of clipboard synchronous method and system
Technical field
The present invention relates to multi-screen interactive technical field, in particular a kind of Android device Contents of clipboard synchronous method and system.
Background technology
Along with mobile phone, panel computer day by day universal, the communication terminal equipment that individual subscriber has get more and more.Often all be linked together by the mode such as data service, WiFi or BT between these equipment, data sharing to each other can be carried out.But the interactive function of current many equipment rooms is limited to file transfer/synchronously this class more, realizes an equipment and will transmit a simple text message to another equipment, operation is often too complicated.Such as carry out text message alternately by communication tool, more particularly multiple devices all log in communication tool, and wherein an equipment realizes the synchronous of many equipment rooms text message by the mode transferred immediate news.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, the object of the present invention is to provide a kind of Android device Contents of clipboard synchronous method and system, be intended to solve the interactive function of current many equipment rooms in prior art and be limited to file transfer/synchronous more, and conveniently can not realize the synchronous defect of simple text message.
Technical scheme of the present invention is as follows:
A kind of Android device Contents of clipboard synchronous method, wherein, said method comprising the steps of:
A, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted;
B, the second Android device receive and obtain described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.
Described Android device Contents of clipboard synchronous method, wherein, described steps A specifically comprises:
A1, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection;
A2, the stickup information write in information to be pasted and described first clipbook compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical.
Described Android device Contents of clipboard synchronous method, wherein, also comprises after described step B:
C, the paste operation of the second Android device to user detect in real time, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted.
Described Android device Contents of clipboard synchronous method, wherein, also comprises before described steps A:
S, the first Android device and the second erection unit are by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network.
A kind of Android device Contents of clipboard synchro system, wherein, comprising:
Detect and broadcast module, detect in real time for the copy operation of the first Android device to user, then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted;
Writing module, receives for the second Android device and obtains described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.
Described Android device Contents of clipboard synchro system, wherein, described detection and broadcast module specifically comprise:
Information acquisition unit, detects in real time for the copy operation of the first Android device to user, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection;
Comparison and radio unit, for the stickup information write in information to be pasted and described first clipbook being compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical.
Described Android device Contents of clipboard synchro system, wherein, also comprises:
Stickup module, detects in real time for the paste operation of the second Android device to user, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted.
Described Android device Contents of clipboard synchro system, wherein, also comprises:
Interconnect module, for the first Android device and the second erection unit by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network.
The invention provides a kind of Android device Contents of clipboard synchronous method and system, method comprises: the copy operation of the first Android device to user detects in real time, then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted; Second Android device receives and obtains described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.The present invention realizes sharing of fast text information by the mode of synchronous various communication terminal equipment clipbook, and user only needs a copy/paste operation, can realize sharing fast of text message, greatly facilitate user at many equipment rooms.
Accompanying drawing explanation
Fig. 1 is the flow chart of Android device Contents of clipboard synchronous method of the present invention preferred embodiment.
Fig. 2 obtains information to be pasted and the particular flow sheet of broadcast in Android device Contents of clipboard synchronous method of the present invention.
Fig. 3 is the structured flowchart of Android device Contents of clipboard synchro system of the present invention preferred embodiment.
Embodiment
The invention provides a kind of Android device Contents of clipboard synchronous method and system, for making object of the present invention, technical scheme and effect clearly, clearly, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of Android device Contents of clipboard synchronous method of the present invention preferred embodiment.As shown in Figure 1, it comprises the following steps:
Step S100, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted.
In embodiments of the invention, when user carries out copy operation in the first Android device, then obtain the selected information to be pasted of copy operation by the first clipbook of an Android device, and be broadcast to by the synchronous service (ClipboardSyncService) in clipbook other Android device be connected with the first Android device by a specific inent.
Step S200, the second Android device receive and obtain described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.
Obviously, when the second Android device this intent received from other equipment broadcasts, then reading of content write clipbook from intent, thus realize synchronous object.
Further, also comprised before described step S100:
Step S10, the first Android device and the second erection unit are by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network.
The interconnected scheme of many equipment rooms has multiple, and concrete enforcement comprises in step slo:
1) Bluetooth interconnection is passed through
By bluetooth connect be a kind of more common, without the need to the simple scheme of extra environment.Two equipment can be connected by the point-to-point pairing of bluetooth, if relate to more than 3 or 3 equipment, the networking of bluetooth piconet scheme can be used interconnected.Interconnected by bluetooth is when not having extraneous network, the connected mode that this programme adopts.
2) interconnected by same router (AP)
The more common connected mode of the second is that multiple equipment is all connected to same router (AP), the scheme be connected with based on bluetooth based on the realization of this connection is similar, need when just service connects to broadcast in local area network (LAN), also can directly by determining IP address to set up the contact (the socket communication between process) between two services.For the situation of more than 3 or 3 equipment, more easily expand in the connection of a local area network (LAN) internal ratio BT, allow wherein certain equipment as server, be used for intercepting and to connect with other equipment.When these equipment are all in a local area network (LAN), the connected mode that this programme adopts.
3) based on the devices interconnect of wide area network
The connecting mode of another scheme is then more flexible, carries out multiple equipment management by server and account system, as long as the client on all devices is logged in by same account, then and can information interaction between them.By the XMPP server of on the Internet, all devices can be communicated by XMPP.Because this is the connection of a kind of high in the clouds mode, the accessing Internet mode of each equipment is not limit, and does not also have the restriction of distance, when all devices can accessing Internet, this programme adopts this connected mode.
When two equipment connect, then wherein a side is client, and the opposing party is service end.Initiated to intercept by service end, client is initiated to connect.After connection establishment, the synchronous service (ClipboardSyncService) of the clipbook of both sides brings into operation after the synchronization applications of clipbook starts.This service can set up a listener by the ClipboardManager of android system, and the effect of this listener is exactly the change of monitoring system clipbook and does respective handling thereupon.Come by the process function onPrimaryClipChanged realizing@Override type.
Further, as shown in Figure 2, obtain in described step S100 information to be pasted and broadcast idiographic flow comprise:
Step S101, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection;
Step S102, the stickup information write in information to be pasted and described first clipbook compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical.
Concrete, after Contents of clipboard changes, the onPrimaryClipChanged function of the first Android device will go the content reading clipbook, and compares with the Contents of clipboard from other equipment (the stickup information also namely write) received recently:
1) if identical, then illustrate identical with the Contents of clipboard of other equipment, synchronous without the need to carrying out again;
2) if different, then Contents of clipboard is write an intent, and intent is broadcasted away;
The synchronous service of the Android device clipbook of the other end also can register a DataReceiver to intercept broadcast, when there being data to arrive, is read the information to be pasted carrying out other equipment by measure for fulfill onDataReceive from intent.Accordingly, this service is write information to be pasted in the clipbook of this equipment by the ClipboardManager of android system, so just achieve the content synchronization of both sides' clipbook.No matter be client, or service end, the service logic realizing synchronizing process is symmetrical, and namely the change of any one party Contents of clipboard all can cause the Contents of clipboard of other equipment synchronous with it.
Further, also comprise after described step S200:
Step S300, the paste operation of the second Android device to user detect in real time, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted.
Android device Contents of clipboard synchronous method of the present invention, when embody rule, is applicable to following situation:
1) choose this contact person of panel computer, select to copy; Open cellphone directory, then select to paste;
2) copy the account on mobile phone, on panel computer, then need the place inserting account to select to paste;
3) copy the url of mobile phone browser, then paste in the browser address bar of panel computer;
4) copy the article on mobile phone, then paste in the text edit software of panel computer.
When after the real-time synchronization completing content of text, user can carry out paste operation to content of text easily.Visible, the present invention realizes sharing of fast text information by the mode of synchronous various communication terminal equipment clipbook, and user only needs a copy/paste operation, can realize sharing fast of text message, greatly facilitate user at many equipment rooms.
Based on said method embodiment, present invention also offers a kind of Android device Contents of clipboard synchro system, as shown in Figure 3, it comprises:
Detect and broadcast module 100, detect in real time for the copy operation of the first Android device to user, then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted; As detailed above.
Writing module 200, receives for the second Android device and obtains described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device; As detailed above.
Further, in described Android device Contents of clipboard synchro system, described detection and broadcast module 100 specifically comprise:
Information acquisition unit, detects in real time for the copy operation of the first Android device to user, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection; As detailed above.
Comparison and radio unit, for the stickup information write in information to be pasted and described first clipbook being compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical; As detailed above.
Further, in described Android device Contents of clipboard synchro system, also comprise:
Stickup module, detects in real time for the paste operation of the second Android device to user, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted; As detailed above.
Further, in described Android device Contents of clipboard synchro system, also comprise:
Interconnect module, for the first Android device and the second erection unit by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network; As detailed above.
In sum, the invention provides a kind of Android device Contents of clipboard synchronous method and system, method comprises: the copy operation of the first Android device to user detects in real time, then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted; Second Android device receives and obtains described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.The present invention realizes sharing of fast text information by the mode of synchronous various communication terminal equipment clipbook, and user only needs a copy/paste operation, can realize sharing fast of text message, greatly facilitate user at many equipment rooms.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.

Claims (8)

1. an Android device Contents of clipboard synchronous method, is characterized in that, said method comprising the steps of:
A, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted;
B, the second Android device receive and obtain described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.
2. Android device Contents of clipboard synchronous method according to claim 1, it is characterized in that, described steps A specifically comprises:
A1, the copy operation of the first Android device to user detect in real time, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection;
A2, the stickup information write in information to be pasted and described first clipbook compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical.
3. Android device Contents of clipboard synchronous method according to claim 1, is characterized in that, also comprise after described step B:
C, the paste operation of the second Android device to user detect in real time, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted.
4. Android device Contents of clipboard synchronous method according to claim 1, is characterized in that, also comprise before described steps A:
S, the first Android device and the second erection unit are by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network.
5. an Android device Contents of clipboard synchro system, is characterized in that, comprising:
Detect and broadcast module, detect in real time for the copy operation of the first Android device to user, then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection, and information to be pasted is broadcasted;
Writing module, receives for the second Android device and obtains described information to be pasted, more described information to be pasted is write the second clipbook in the second Android device.
6. Android device Contents of clipboard synchro system according to claim 5, it is characterized in that, described detection and broadcast module specifically comprise:
Information acquisition unit, detects in real time for the copy operation of the first Android device to user, and then the first clipbook of the first Android device obtains the selected information to be pasted of copy operation upon this detection;
Comparison and radio unit, for the stickup information write in information to be pasted and described first clipbook being compared, when not identical, then information just to be pasted is broadcasted, and does not then broadcast when identical.
7. Android device Contents of clipboard synchro system according to claim 5, is characterized in that, also comprise:
Stickup module, detects in real time for the paste operation of the second Android device to user, upon this detection then by the appointed area in content replication to the second Android device interface to be pasted.
8. Android device Contents of clipboard synchro system according to claim 5, is characterized in that, also comprise:
Interconnect module, for the first Android device and the second erection unit by Bluetooth interconnection mode, interconnection of routers mode or interconnect based on the one in the apparatus interconnection mode of wide area network.
CN201510138712.4A 2015-03-27 2015-03-27 Method and system for synchronizing content of clipboards of android devices Pending CN104796462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510138712.4A CN104796462A (en) 2015-03-27 2015-03-27 Method and system for synchronizing content of clipboards of android devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510138712.4A CN104796462A (en) 2015-03-27 2015-03-27 Method and system for synchronizing content of clipboards of android devices

Publications (1)

Publication Number Publication Date
CN104796462A true CN104796462A (en) 2015-07-22

Family

ID=53560970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510138712.4A Pending CN104796462A (en) 2015-03-27 2015-03-27 Method and system for synchronizing content of clipboards of android devices

Country Status (1)

Country Link
CN (1) CN104796462A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565425A (en) * 2020-12-03 2021-03-26 南京机敏软件科技有限公司 Method for copying and pasting among cloud application programs of multiple cross-cloud server host machine sessions
CN116069215A (en) * 2022-07-26 2023-05-05 荣耀终端有限公司 Schedule creation method, terminal equipment and terminal system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771718A (en) * 2008-12-29 2010-07-07 深圳市维信联合科技有限公司 Clipboard synchronous method and system
CN102722310A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 Method and device for displaying lower-level application content on display interface
CN102882963A (en) * 2012-09-25 2013-01-16 腾讯科技(深圳)有限公司 Data transmitting method, related terminals and system
CN103064829A (en) * 2011-10-19 2013-04-24 王国臣 Copy and paste method based on internet and copy and paste system
US20140025727A1 (en) * 2012-07-18 2014-01-23 Sentence Co., Ltd Synchronization server for clipboard and synchronization system for clipboard having the same
CN104216787A (en) * 2014-09-23 2014-12-17 北京奇虎科技有限公司 Method, device and system for synchronizing clipboards between terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771718A (en) * 2008-12-29 2010-07-07 深圳市维信联合科技有限公司 Clipboard synchronous method and system
CN102722310A (en) * 2011-03-30 2012-10-10 汉王科技股份有限公司 Method and device for displaying lower-level application content on display interface
CN103064829A (en) * 2011-10-19 2013-04-24 王国臣 Copy and paste method based on internet and copy and paste system
US20140025727A1 (en) * 2012-07-18 2014-01-23 Sentence Co., Ltd Synchronization server for clipboard and synchronization system for clipboard having the same
CN102882963A (en) * 2012-09-25 2013-01-16 腾讯科技(深圳)有限公司 Data transmitting method, related terminals and system
CN104216787A (en) * 2014-09-23 2014-12-17 北京奇虎科技有限公司 Method, device and system for synchronizing clipboards between terminal equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565425A (en) * 2020-12-03 2021-03-26 南京机敏软件科技有限公司 Method for copying and pasting among cloud application programs of multiple cross-cloud server host machine sessions
CN112565425B (en) * 2020-12-03 2021-08-06 南京机敏软件科技有限公司 Method for copying and pasting among cloud application programs of multiple cross-cloud server host machine sessions
CN116069215A (en) * 2022-07-26 2023-05-05 荣耀终端有限公司 Schedule creation method, terminal equipment and terminal system
CN116069215B (en) * 2022-07-26 2024-04-16 荣耀终端有限公司 Schedule creation method, terminal equipment and terminal system

Similar Documents

Publication Publication Date Title
TWI532352B (en) Evolved packet core less direct mode communication system and communication attaching method thereof
KR101705764B1 (en) Wireless docking
US10264038B2 (en) Discovery and management of synchronous audio or video streaming service to multiple sinks in wireless display system
RU2498528C1 (en) Method and system for wan/wlan unicast and multicast communication
CN102882769B (en) A kind of instant communication method, terminal, server and system
WO2014206321A1 (en) Bluetooth communication method and bluetooth communication device
CN106331276B (en) Device and method for sending electronic business card through Bluetooth headset
JP7401564B2 (en) Communication methods and related devices
CN103812900A (en) Data synchronization method, device and system
WO2015027892A1 (en) Methods and terminals for sharing web browsing contents
CN102812744A (en) Inter-working of EFM-OAM and CFM-OAM for mobile backhaul networks
US9641395B2 (en) Method of processing device discovery
CN104113935A (en) Data transmission method, system and router
CN105407166A (en) Communication implementation method and system for wearable equipment
CN104796462A (en) Method and system for synchronizing content of clipboards of android devices
CN102647364B (en) Method, device and system for Mesh network routing
CN101309154B (en) Datagram sending method, sending apparatus and transmission system
WO2020147081A1 (en) Data transmission method, related device, and computer storage medium
WO2016161774A1 (en) Method and apparatus for terminal application accessing nas
CN103338248A (en) Method, system and device for establishing relation of two communication accounts
CN106604323B (en) Gateway, system and method for multiple radio access technology services
CN104618500A (en) Local area network application program data sharing method based on DLNA
CN104270495A (en) Contact adding method, system and mobile terminals
CN109768905A (en) A kind of method, system, equipment and the storage medium of PPPoE message transmissions
WO2017054284A1 (en) Communication method and related 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20150722

RJ01 Rejection of invention patent application after publication