The data sharing method of mobile terminal and data sharing system
Technical field
The present invention relates to a kind of data sharing method and data sharing system of mobile terminal.
Background technology
Along with the development of science and technology, the use of the mobile terminals such as mobile phone is quite general, at home, 4G (forth generation mobile communication technology) communication has started to enter the stage of popularization, this makes the network speed of mobile terminal networking start to promote, but the mode sharing application between mobile terminal is general or share download link by a mobile terminal, such as network address/micro-letter link/microblogging link/Quick Response Code etc., another mobile terminal, by clickthrough or scanning Quick Response Code, downloads the application of sharing from third-party server.There is certain weak point in this mode sharing application:
One, operating procedure is many: first need a mobile terminal (side of sharing) to generate sharing data, then by data upload to server, then another mobile terminal (recipient) is by download link click data, and download from third-party server, could use after passing through installation;
Two, in the process sharing application, there is the risk of net, as third-party server breaks down, and hacker's collection may be run into or steal private information in network transmission process, the application data shared now can be caused to reveal.
Summary of the invention
The technical problem to be solved in the present invention there is operating procedure too much, easily fall net and the defect that leaking data easily occurs to overcome in prior art the mode sharing application, provides a kind of data sharing method and data sharing system of mobile terminal.
The present invention solves above-mentioned technical problem by following technical proposals:
The invention provides a kind of data sharing method of mobile terminal, its feature is, comprising:
The triggering command of data sharing detected at first terminal after, the data content of the object in described first terminal is sent to the second terminal, described data content comprises the contextual data information of object and the primary data information (pdi) of object, and described first terminal is connected by network channel with described second terminal;
Described second terminal receives described data content and performs and resolves and display operation, to realize the data content sharing described object in the second terminal.
Preferably, described triggering command comprises at least one in the operational order of hotknot (a kind of touch-control interaction technique) triggering command, gesture instruction, key command, touchscreen commands and shake mobile phone.
Preferably, described object comprises any one in application resource, video resource, image resource and audio resource.
Preferably, when described object is application resource, the contextual data information of described object comprises the quantity information of application program, the time of implementation information of application program and process data information, and the primary data information (pdi) of described object comprises the name information of application program, version information, applied environment information and original installation file information.
Preferably, when described application resource comprises the application list information, the process realizing the data content of object described in described second terminals share comprises:
The display application program listing after receiving described data content of described second terminal, and receive choose instruction after from described the application list, choose destination application, the original installation file of described destination application is run, to install described destination application in the second terminal after receiving installation instruction.
Preferably, when described application resource comprises application program execution information, the process realizing the data content of object described in described second terminals share comprises:
Described second terminal receive choose instruction after choose destination application, and show execution information and the process data of described destination application after the data content receiving described destination application.
Preferably, described contextual data information also comprises the virtual-machine data of application program, described second terminal is called virtual machine incubator and is hatched new virtual machine after receiving described data content, and control the virtual-machine data that described new virtual machine runs described destination application, to run described destination application in the second terminal and to show execution information and the process data of described destination application;
Described second terminal also runs the original installation file of described destination application after receiving installation instruction, to install described destination application in the second terminal.
Preferably, when described object is audio/video resource, the operation of sharing described audio resource comprises:
After the data content of target audio/video resource is sent to described second terminal by described first terminal, described first terminal and described second terminal play described target audio/video simultaneously;
Described control command, after receiving the control command for current play status being set to broadcasting/time-out, being sent to described second terminal, being consistent with the current play status and described first terminal that make described second terminal by described first terminal;
Described adjustment instruction, after receiving the adjustment instruction for adjusting playing progress rate, is sent to described second terminal by described first terminal, is consistent with the playing progress rate and described first terminal that make described second terminal;
The data content of the audio/video after switching, after receiving the switching command for switching audio/video, being sent to described second terminal, playing the audio/video after switching to make described first terminal and described second terminal simultaneously by described first terminal;
Described exit instruction, after receiving the exit instruction for exiting broadcasting, is sent to described second terminal by described first terminal, exits broadcasting to make described second terminal simultaneously.
Preferably, when described object is image resource, the operation of sharing described image resource comprises:
After the data content of Target Photo resource is sent to described second terminal by described first terminal, described first terminal and described second terminal show described Target Photo simultaneously;
Described first terminal receive for picture is amplified, reduces or slide control command after, described control command is sent to described second terminal, is consistent with the pictorial information and described first terminal that make the current display of described second terminal;
Described exit instruction, after receiving the exit instruction for exiting display, is sent to described second terminal by described first terminal, exits display to make described second terminal simultaneously.
Preferably, described first terminal and described second terminal are used for setting up network channel by Wi-Fi (a kind of technology terminal such as PC, handheld device be wirelessly connected to each other), 3G (G mobile communication), 4G (forth generation mobile communication technology), bluetooth, NFC (near field communication (NFC)), infrared ray or RFID (REID).
Preferably, described method also comprises: after described second terminal receives described data content and performs parsing and display operation, the data content of the described object described second terminal received discharges from internal memory.
The object of the invention is to additionally provide a kind of data sharing system, its feature is, comprise first terminal and the second terminal, described first terminal is connected by network channel with described second terminal, first terminal is used for after the triggering command of data sharing being detected, the data content of the object in described first terminal is sent to the second terminal, and described data content comprises the contextual data information of object and the primary data information (pdi) of object;
Described second terminal is resolved and display operation for receiving described data content and performing, to realize the data content sharing described object in the second terminal.
Preferably, described object comprises any one in application resource, video resource, image resource and audio resource.
Preferably, when described object is application resource, the contextual data information of described object comprises the quantity information of application program, the time of implementation information of application program and process data information, and the primary data information (pdi) of described object comprises the name information of application program, version information, applied environment information and original installation file information;
Described second terminal comprises control unit and installation unit, when described application resource comprises the application list information, described control unit is used for display application program listing after described second terminal receives described data content, and receive choose instruction after from described the application list, choose destination application, described installation unit is used for the original installation file running described destination application after receiving installation instruction, to install described destination application in the second terminal;
When described application resource comprises application program execution information, described control unit be used for described second terminal receive choose instruction after choose destination application, and show execution information and the process data of described destination application after the data content receiving described destination application.
Preferably, described contextual data information also comprises the virtual-machine data of application program, described second terminal is called virtual machine incubator and is hatched new virtual machine after receiving described data content, and control the virtual-machine data that described new virtual machine runs described destination application, to run described destination application in the second terminal and to show execution information and the process data of described destination application;
Described installation unit also runs the original installation file of described destination application after receiving installation instruction, to install described destination application in the second terminal.
Preferably, described first terminal comprises instruction sending unit, when described object is audio/video resource:
Described instruction sending unit is used for the data content of target audio/video resource to be sent to described second terminal, plays described target audio/video to make described first terminal and described second terminal simultaneously;
Described first terminal is after receiving the control command for current play status being set to broadcasting/time-out, described instruction sending unit, also for described control command is sent to described second terminal, is consistent with the current play status and described first terminal that make described second terminal;
Described first terminal is after receiving the adjustment instruction for adjusting playing progress rate, and described instruction sending unit, also for described adjustment instruction is sent to described second terminal, is consistent with the playing progress rate and described first terminal that make described second terminal;
Described first terminal is after receiving the switching command for switching audio/video, described instruction sending unit also for the data content of the audio/video after switching is sent to described second terminal, plays the audio/video after switching to make described first terminal and described second terminal simultaneously;
Described first terminal is after receiving the exit instruction for exiting broadcasting, and described instruction sending unit, also for described exit instruction is sent to described second terminal, exits broadcasting to make described second terminal simultaneously;
When described object is image resource, the operation of sharing described image resource comprises:
Described instruction sending unit is used for the data content of Target Photo resource to be sent to described second terminal, shows described Target Photo to make described first terminal and described second terminal simultaneously;
Described first terminal receive for picture is amplified, reduces or slide control command after, described instruction sending unit, also for described control command is sent to described second terminal, is consistent with the pictorial information and described first terminal that make the current display of described second terminal;
Described first terminal is after receiving the exit instruction for exiting display, and described instruction sending unit, also for described exit instruction is sent to described second terminal, exits display to make described second terminal simultaneously.
Preferably, described first terminal and described second terminal set up network channel by Wi-Fi, 3G, 4G, bluetooth, NFC, infrared ray or RFID, and/or, described second terminal receives described data content and performs and to resolve and after display operation, also for being discharged from internal memory by the data content of described object received.
Positive progressive effect of the present invention is: the invention provides a kind of mode sharing mobile terminal data completely newly, do not need the intervention of third-party server, simplify operating procedure and link, and the clean and tidy of the software systems of recipient can be ensured, reduce the generation of spam software, the private data of protection user is not revealed; The present invention can share by the data resource such as application programs, video, image, audio frequency between mobile terminals, simultaneously, the present invention can accomplish that when sharing data the operation of transmit leg and recipient is synchronous, make the two can perform identical operation to identical data content simultaneously, thus improve the precision of data sharing.
Accompanying drawing explanation
Fig. 1 is the flow chart of the data sharing method of the mobile terminal of embodiments of the invention 1.
Fig. 2 is the structural representation of the data sharing system of embodiments of the invention 7.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Embodiment 1
As shown in Figure 1, the data sharing method of the mobile terminal of the present embodiment comprises the following steps:
Step 101, first terminal are connected by network channel with the second terminal.
Step 102, data sharing detected at first terminal triggering command after, the data content of the object in described first terminal is sent to the second terminal, and described data content comprises the contextual data information of object and the primary data information (pdi) of object.
Step 103, described second terminal receive described data content and perform and resolve and display operation, to realize the data content sharing described object in the second terminal.
Wherein, first terminal described in step 101 and described second terminal specifically set up network channel by Wi-Fi, 3G, 4G, bluetooth, NFC, infrared ray or RFID; Described triggering command in step 102 comprises at least one in the operational order of hotknot triggering command, gesture instruction, key command, touchscreen commands and shake mobile phone, described object comprise in application resource, video resource, image resource and audio resource any one.
In the method for the invention; after described second terminal receives described data content and performs parsing and display operation; the data content of the object that described second terminal can also be received discharges from internal memory; effectively can ensure the clean and tidy of the second terminal software system like this; reduce the generation of spam software, and protect the private data of user not revealed.The contextual data of described object comprises at least one information in the quantity information of object, the temporal information of execution, displaying ratio information and process data information, and the primary data information (pdi) of described object comprises the attribute information of object and the original installation file information of object.
When described object is application resource, the contextual data of described object comprises the quantity information of application program, the time of implementation information of application program and process data information, and the primary data information (pdi) of described object comprises the name information of application program, version information, applied environment information and original installation file information.
Described application resource comprises the application list information or application program performs information, when described application resource comprises the application list information, described primary data information (pdi) comprises the name information of application program, version information, the original installation file information of applied environment information and application program, the process now realizing the data content of object described in described second terminals share in step 103 specifically comprises: the display application program listing after receiving described data content of described second terminal, and receive one choose instruction after from described the application list, choose a destination application (namely the user of the second terminal specifies the application program chosen), the original installation file of described destination application is run after receiving an installation instruction, to install described destination application in the second terminal.
When described application resource comprises application program execution information, described contextual data information comprises the time of implementation of application program and the process data of application program, described primary data information (pdi) comprises the name information of application program, version information, the original installation file information of applied environment information and application program, now realize in step 103 comprising in the process of the data content of object described in described second terminals share: described second terminal receive one choose instruction after choose a destination application, and after the data content receiving described destination application, show execution information and the process data of described destination application.
Preferably, the virtual-machine data of application program is also comprised in described contextual data information, described second terminal is called virtual machine incubator and is hatched the virtual machine made new advances after receiving described data content, and control the virtual-machine data that described new virtual machine runs described destination application, to run described destination application in the second terminal and to show execution information and the process data of described destination application; And described second terminal also runs the original installation file of described destination application after receiving installation instruction, to install described destination application in the second terminal.
Embodiment 2
The present embodiment is that the music of carrying out between mobile terminals utilizing the data sharing method of embodiment 1 to realize is shared, and in the present embodiment, described object is audio resource, and the operation of sharing music specifically comprises:
N number of slave (i.e. the second terminal) is connected with main frame (i.e. first terminal), and main frame carries out music with it and shares
1, main frame is not play, and slave waits for that main frame is shared
In main frame, adopt one to connect list show each slave, host subscriber is according to connection list, the triggering command for sharing music is sent to main frame, described triggering command specifically Intrusion Detection based on host user can be shaken main frame and generates regularly, after gravity sensor in described main frame detects the shake of main frame, described main frame will detect described triggering command, and based on the data content (comprising contextual data information and primary data information (pdi)) of triggering command broadcast target audio file to all slaves, wherein contextual data information comprises song title, song time span, the current play time of song, the current play status etc. of song, primary data information (pdi) then comprises the original audio file etc. of song, slave carries out parse operation to it after receiving the data content of target audio file, thus from data content, parse above-mentioned concrete contextual data information and primary data information (pdi), then main frame and slave play target audio simultaneously.
2, main frame is shared, and slave midway adds
Main frame receives the announcement information that new slave adds, and the audio file of current broadcasting and progress adjustment instruction are sent to slave successively, selects to play/suspend after slave receives audio file according to Host Status.
3, main frame suspends/plays, and sends time-out/play instruction to slave
Host subscriber can change current play status by control command, specifically current play status can be changed into halted state from broadcast state, or change into broadcast state from halted state, the corresponding virtual push button that above-mentioned control command can be clicked in the music player software of main frame by host subscriber generates, main frame is after receiving control command, main frame broadcast state changes, meeting sending controling instruction is to slave, slave receives control command, can by control command with the form of byte stream by the network tunnel transports between main frame and slave in the music player software of slave, namely be equivalent to user and click corresponding virtual push button in the music player software of slave equally, and then current play status to be adjusted to based on the control command same with main frame and to be consistent with main frame by slave.
4, main frame carries out progress adjustment, sends progress adjustment instruction to slave
Host subscriber can by adjustment instruction adjustment playing progress rate, the playing progress bar that described adjustment instruction can drag the music player software sound intermediate frequency of main frame by host subscriber generates, the information such as the amplitude of adjustment progress are specifically comprised in the adjustment instruction generated, main frame is after receiving adjustment instruction, main frame playing progress rate adjusts, adjustment instruction can be sent to slave, after slave receives adjustment instruction, from adjustment instruction, parse the information such as the amplitude of above-mentioned adjustment progress, then based on above-mentioned information, the playing progress rate of song is adjusted to consistent with main frame.
5, main frame enters one/next song, sends audio file to slave
Host subscriber can switch the song of the current broadcasting of main frame by switching command, the corresponding virtual push button that described switching command can be clicked in the music player software of main frame by host subscriber generates, main frame is after receiving switching command, main frame is about to enter one/next song, main frame sends the audio file being about to play after switching to slave, receive after the audio file after switching until slave, main frame and slave start to play the audio file after switching simultaneously.
6, main frame exits, and sends exit instruction to slave
Host subscriber can carry out main control system by exit instruction and exit broadcasting, the corresponding virtual push button that described exit instruction can be clicked in the music player software of main frame by host subscriber generates, main frame is after receiving exit instruction, send exit instruction to slave, after slave receives exit instruction, music can be exited with main frame simultaneously.
Wherein, the various instructions (comprising above-mentioned control command, adjustment instruction, switching command and exit instruction etc.) that main frame sends to slave are all transmitted with the data mode of byte stream, and the transmission of audio file byte stream is defined as follows table:
Wherein, midway adds flag bit, whether plays flag bit and various length mark position all takies a byte.Concrete command byte flow transmission is defined as follows table:
Instruction type |
Playing progress rate length |
Playing progress rate |
Wherein, instruction type, playing progress rate length take a byte respectively, instruction type has broadcasting, time-out, progress adjustment, closes these four kinds, and the data type of concrete instruction type can be self-defined as required, can be such as int type, as long as data type can characterize at least four kinds of different data contents (i.e. above-mentioned four kinds of instruction types).Playing progress rate then adopts the current play time of concrete numerical representation method target audio file, and playing progress rate length is then for representing that the field terminated to whom from whom in the data flow of the data content of target audio file characterizes the playing progress rate of audio frequency.
Can realize in the present embodiment sharing voice data resource between mobile terminals; and do not need the intervention of third-party server; simplify the step and link of sharing operation; the voice data of protection transmit leg is not revealed; the operation of transmit leg and recipient can be made synchronous simultaneously; make the two can perform identical operation to identical voice data simultaneously, improve the precision that voice data is shared.
Embodiment 3
The present embodiment is that the picture that carries out between mobile terminals utilizing the data sharing method of embodiment 1 to realize is shared, and in the present embodiment, described object is image resource, and the operation of sharing picture specifically comprises:
N number of slave is connected with main frame, and main frame carries out picture with it and shares
1, picture do not shared by main frame, and slave waits for that main frame is shared
In main frame, adopt one to connect list show each slave, host subscriber is according to connection list, the triggering command for sharing picture is sent to main frame, described triggering command specifically can be generated by the drag gesture instruction of host subscriber, described drag gesture is that user is by the icon of each slave in the icon drag of Target Photo to connection list, namely described main frame detects described for sharing the triggering command of picture after above-mentioned drag gesture being detected, and based on triggering command, the data content (comprising contextual data information and primary data information (pdi)) of one target image file is sent to slave, wherein contextual data information comprises picture name etc., primary data information (pdi) then comprises the original document etc. of picture, slave carries out parse operation to it after receiving target image file, thus from data content, parse above-mentioned concrete contextual data information and primary data information (pdi), after slave completes parse operation, main frame and slave display-object picture simultaneously.
2, main frame is shared in picture, and slave adds
Main frame receives the announcement information that new slave adds, and the data content Showed Picture by current screen sends to the slave newly added, and realizes sharing picture in the slave newly added.
3, host subscriber can change the state of current display picture by control command, specifically can amplify picture, reduction operation or utilize slide to show another pictures, above-mentioned control command can be performed corresponding contact action to realize by host subscriber on the current display picture interface of main frame, main frame is after receiving control command, main frame will amplify the picture shown in screen, reduce or rear another pictures of display that slides, control command is sent to slave with the form of byte stream by the network channel between main frame and slave by main frame in time, slave is resolved control command after receiving control command, therefrom parse need to photo current perform which kind of operation (comprise amplification, reduce or rear another pictures of display that slides), and based on the control command after resolving, the operation identical with main frame is performed to the picture of the current display of slave, thus the pictorial information making main frame and slave show is consistent.
Wherein, the various instructions (comprising above-mentioned control command etc.) that main frame sends to slave are all transmitted with the data mode of byte stream, and the transmission of picture byte stream is defined as follows table:
Lantern slide flag bit |
Separate position |
Image content |
Wherein, lantern slide flag bit, separation position take a byte respectively.Lantern slide flag bit is used for sign and whether adopts slide show mode to Show Picture, such as can be set to when lantern slide flag bit adopts slide show mode to Show Picture for representing time " 1 ", normal mode is adopted to Show Picture for representing time " 0 ", separate position then for represent the data content of target image file data flow in the field that terminates to whom from whom characterizes is image content, image content then for characterizing the specifying information of current playing pictures, as pixel, color etc.
Can realize in the present embodiment sharing view data resource between mobile terminals; and do not need the intervention of third-party server; simplify the step and link of sharing operation; the view data of protection transmit leg is not revealed; the operation of transmit leg and recipient can be made synchronous simultaneously; make the two can perform identical operation to identical view data simultaneously, improve the precision that view data is shared.
Embodiment 4
The present embodiment be utilize the data sharing method of embodiment 1 to realize carry out video sharing between mobile terminals, in the present embodiment, described object is video resource, and the operation of sharing video frequency specifically comprises:
N number of slave is connected with main frame, and main frame carries out video sharing with it
1, in main frame, adopt one to connect list show each slave, host subscriber is according to connection list, the triggering command for sharing video frequency is sent to main frame, described triggering command specifically can the hotknot instruction that sends of Intrusion Detection based on host user and generating, described hotknot instruction is that the touch-screen of main frame and slave carries out fitting producing by host subscriber, described main frame is after the hotknot instruction (i.e. triggering command) generation being detected, triggering command based on video sharing broadcasts the data content (comprising contextual data information and primary data information (pdi)) of a target video file to slave, wherein contextual data information comprises video name, video time length, the current play time of video, the current play status etc. of video, primary data information (pdi) then comprises original video files etc., slave receives target video file and carries out parse operation to it, thus from data content, parse above-mentioned concrete contextual data information and primary data information (pdi), then main frame and slave play target video simultaneously.
2, main frame suspends/plays, to slave sending controling instruction
Host subscriber can change current play status by control command, specifically current play status can be changed into halted state from broadcast state, or change into broadcast state from halted state, the corresponding virtual push button that above-mentioned control command can be clicked in the video jukebox software of main frame by host subscriber generates, main frame is after receiving control command, main frame broadcast state changes, control command can be sent to slave with the form of byte stream by the network channel between main frame and slave, slave receives control command, can control command be transferred in the video jukebox software of slave, namely be equivalent to user and click corresponding virtual push button in the video jukebox software of slave equally, and then current play status can be adjusted to consistent with main frame based on the control command same with main frame by slave.
3, main frame carries out progress adjustment, to slave sending controling instruction
Host subscriber can by adjustment instruction adjustment playing progress rate, the playing progress bar that described adjustment instruction can drag video in the video jukebox software of main frame by host subscriber generates, the information such as the amplitude of adjustment progress are specifically comprised in the adjustment instruction generated, main frame is after receiving adjustment instruction, main frame playing progress rate adjusts, adjustment instruction can be sent to slave, after slave receives precision adjustment instruction, from adjustment instruction, parse the information such as the amplitude of above-mentioned adjustment progress, then based on above-mentioned information, the broadcasting precision of video is adjusted to consistent with main frame.
4, host subscriber can carry out main control system by exit instruction and exits broadcasting, the corresponding virtual push button that described exit instruction can be clicked in the video jukebox software of main frame by host subscriber generates, main frame is after receiving exit instruction, send exit instruction to slave, after slave receives exit instruction, broadcast interface can be exited with main frame simultaneously.
Wherein, the various instructions (comprising above-mentioned control command, adjustment instruction and exit instruction etc.) that main frame sends to slave are all transmitted with the data mode of byte stream, and the transmission of video file byte stream is defined as follows table:
Filename length |
Filename |
File size |
File |
Wherein, filename length, file size take a byte respectively.
Command byte flow transmission is defined as follows table:
Instruction type |
Playing progress rate length |
Playing progress rate |
Wherein, instruction type, playing progress rate length take a byte respectively, and instruction type has broadcasting, time-out, progress adjustment, closes these four kinds.And the data type of concrete instruction type can be self-defined as required, such as, can be int type, as long as data type can characterize at least four kinds of different data contents (i.e. above-mentioned four kinds of instruction types).Playing progress rate then adopts the current play time of concrete numerical representation method target video file, and playing progress rate length is then for representing that the field terminated to whom from whom in the data flow of the data content of target video file characterizes the playing progress rate of video.
Sharing video frequency data resource between mobile terminals can be realized in the present embodiment; and do not need the intervention of third-party server; simplify the step and link of sharing operation; the video data of protection transmit leg is not revealed; the operation of transmit leg and recipient can be made synchronous simultaneously; make the two can perform identical operation to identical video data simultaneously, improve the precision that video data is shared.
Embodiment 5
The present embodiment be utilize the data sharing method of embodiment 1 to realize carry out sharing of application program based on the application list information, in the present embodiment, described object is application resource, first terminal is after the triggering command that application program is shared being detected, the application list information in first terminal can be sent to the second terminal, wherein show whole application programs of first terminal in the application list information, contextual data information and primary data information (pdi) is comprised equally in the data content that first terminal sends, wherein said contextual data information comprises the quantity information of application program, described primary data information (pdi) comprises the name information of application program, version information, the original installation file information of applied environment information and application program,
Second terminal is the program listing of meeting display application after receiving data content, the user of the second terminal can therefrom select the destination application needed also to download corresponding original installation file, then control command is sent to run the original installation file of described destination application in the second terminal, thus realize the destination application installing needs in the second terminal, realize sharing the destination application in first terminal.
Carry out based on the application list information the example that application program shares below: in first terminal, have program 1 for one, program 2 and program 3, first terminal is after setting up wireless connections with the second terminal by bluetooth, the user of first terminal is by shaking described first terminal to generate the triggering command for sharing application program, namely the gravity sensor of described first terminal detects described triggering command after shake operation being detected, then to send the application list information in first terminal to the second terminal based on described triggering command, wherein show said procedure 1, program 2 and program 3, simultaneously, in the data content that first terminal sends, also correspondence records program 1 respectively, the contextual data information of program 2 and program 3 and primary data information (pdi), wherein, described contextual data information comprises quantity information, i.e. 3 application programs, the title of each application program is recorded respectively in primary data information (pdi), version, applied environment and original installation file,
Second terminal can demonstrate and shows said procedure 1 receiving data content, the application list of program 2 and program 3, after the user of the second terminal chooses one of them application program (for program 2), second terminal namely download from the data content received 2 original installation file, then the user of the second terminal can the original installation file icon of long follow procedure 2, thus in the second terminal the original installation file of working procedure 2, with installation procedure 2 in the second terminal, and then achieve the program 2 in first terminal is shared to the second terminal by the application list.
Achieve in the present embodiment and share application resource between mobile terminals based on the application list information; and do not need the intervention of third-party server; simplify the step and link of sharing operation; the application data of protection transmit leg is not revealed, and improves the fail safe that application program is shared.
Embodiment 6
The present embodiment be utilize the data sharing method of embodiment 1 to realize based on application program perform information carry out sharing of application program, in the present embodiment, first terminal comprises the first application program, first terminal is after setting up wireless connections with the second terminal by Wi-Fi, the user of first terminal generates the triggering command for sharing the first application program by contact action (such as length is by the icon of the first application program in display screen), described first terminal is detecting that namely length detect described triggering command after operating, then send the data content of the first application program to the second terminal based on described triggering command, comprise contextual data information and primary data information (pdi), wherein contextual data information comprises execution information and the process data of the first application program,
Second terminal is after the data content receiving the first application program, the user of the second terminal chooses the first application program by contact action, now the second terminal just based on the execution information of the data content display-object application program of the first application program and process data, specifically can realize by virtual machine:
Wherein, the described contextual data information of the first application program also comprises the virtual-machine data of the first application program, described second terminal is called virtual machine incubator and is hatched new virtual machine after receiving described data content, and control the virtual-machine data that described new virtual machine runs described first application program, to run described first application program in the second terminal and to show execution information and the process data of described first application program, thus achieve the concrete execution information sharing the first application program in the second terminal;
If the user of the second terminal wants to install the first application program in the second terminal, then can be generated by contact action and instruction is installed, specifically can generate by the icon of the original installation file of the first application program by with the head of a household, described second terminal also runs the original installation file of described first application program after receiving installation instruction, to install described first application program in the second terminal.
Achieve in the present embodiment and share application resource between mobile terminals based on application program execution information; and do not need the intervention of third-party server; simplify the step and link of sharing operation; the application data of protection transmit leg is not revealed, and improves the fail safe that application program is shared.Identical execution information can be shown for same application at transmit leg and recipient simultaneously, improve the precision that application program is shared.
Embodiment 7
As shown in Figure 2, the data sharing system of the present embodiment comprises a first terminal 1 and some second terminals 2, each second terminal 2 includes a virtual machine incubator 21, wherein said first terminal 1 is connected by network channel with described second terminal 2, first terminal 1 is for after the triggering command of data sharing being detected, the data content of the object in described first terminal 1 is sent to the second terminal 2, and described data content comprises the contextual data information of object and the primary data information (pdi) of object;
Described second terminal 2 is resolved and display operation for receiving described data content and performing, to realize the data content sharing described object in described second terminal 2.
Wherein, described object comprise in application resource, video resource, image resource and audio resource any one, the contextual data information of described object comprises at least one information in the quantity information of object, the temporal information of execution, displaying ratio information and process data information, and the primary data information (pdi) of described object comprises the attribute information of object and the original installation file information of object.Described contextual data information also comprises the virtual-machine data of application program, described second terminal 2 can be called described virtual machine incubator 21 and hatch a new virtual machine after receiving described data content, and control described new virtual machine and run described virtual-machine data, to run described application program and the execution information of display application program and process data in described second terminal 2.
Described object is application resource, and described application resource comprises the application list information or application program performs information.When described application resource comprises the application list information, described contextual data information comprises the quantity information of application program, described primary data information (pdi) comprises the name information of application program, version information, the original installation file information of applied environment information and application program, described second terminal also comprises control unit 22 and an installation unit 23, described control unit 22 is for display application program listing after the second terminal receives described data content, and receive one choose instruction after from described the application list, choose a destination application, described installation unit 23 for running the original installation file of described destination application after receiving an installation instruction, to install described destination application in the second terminal.
When described application resource comprises application program execution information, described contextual data information comprises the time of implementation of application program and the process data of application program, and described primary data information (pdi) comprises the original installation file information of the name information of application program, version information, applied environment information and application program;
Described control unit 22 also for receive in described second terminal one choose instruction after choose a destination application, and after the data content receiving described destination application, show execution information and the process data of described destination application, described installation unit 23 also for running the original installation file of described destination application after receiving an installation instruction, to install described destination application in the second terminal.
Although the foregoing describe the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is defined by the appended claims.Those skilled in the art, under the prerequisite not deviating from principle of the present invention and essence, can make various changes or modifications to these execution modes, but these change and amendment all falls into protection scope of the present invention.