CN110196745A - Data sharing method and terminal - Google Patents

Data sharing method and terminal Download PDF

Info

Publication number
CN110196745A
CN110196745A CN201910457300.5A CN201910457300A CN110196745A CN 110196745 A CN110196745 A CN 110196745A CN 201910457300 A CN201910457300 A CN 201910457300A CN 110196745 A CN110196745 A CN 110196745A
Authority
CN
China
Prior art keywords
application
sdk
display page
terminal
topology file
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
CN201910457300.5A
Other languages
Chinese (zh)
Inventor
黄伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910457300.5A priority Critical patent/CN110196745A/en
Publication of CN110196745A publication Critical patent/CN110196745A/en
Pending legal-status Critical Current

Links

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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of data sharing method and terminal, and the terminal includes at least one first application and at least one second application of the SDK and access SDK, this method comprises: generating the topology file to sharing data by first application;The topology file is rendered to the display page relevant to the layout of second application by SDK, and the display page is passed to by second application by SDK interprocess communication;The display page is shown by second application;The second application does not re-define specific display content and layout in the embodiment of the present invention, and the degree of coupling between different application is low, realizes decoupling;And only needing to update the topology file of the first application side in display interface variation, iteratively faster is at low cost, and scalability is strong.

Description

Data sharing method and terminal
Technical field
The present invention relates to field of communication technology, a kind of data sharing method and terminal are referred in particular to.
Background technique
It needs to show that the demand to client information is more and more between different application at present, such as using C and application D display application Some data informations of A and application B.A, B, C, D are accessed in different processes in Android (Android) platform under normal circumstances Display user interface (User Interface, UI) is the interprocess communication mode provided by Android:
A) data source sends data to specified display layer application using (A or B);
B) display layer application (C or D) renders display UI according to corresponding demand and the data source data received.
The defect of the general implementation of current techniques is specific as follows:
1, access speed is slow, and access complexity is high, participates in the degree of coupling between module (data source is applied and display layer application) It is excessively high, and with the increase for participating in module, problem is more prominent.
For example, if two applications individually docking display, data source (applying A) needs to realize the module and group for the service of being similar to Dress data pass to display layer by interprocess communication (using C).Display layer (applying C) is receiving data source (using A) It needs to parse data after data, and is rendered by interface engine and finally show the content for applying A.Two moulds of this implementation The participation and implementation complexity of block are all very big, and the case where if it is multi-to-multi, since participate in module increases its complexity It can be higher.
2, iteratively faster cost is very high
When there is new demand needs to go change UI (data are also required to do corresponding adaptation), that is to say, that all participation modules (using A, using B, using C, using D) require to participate in corresponding demand and change.
3, poor compatibility
Because new demand pushes each module to update, there are compatibling problem (as being upgraded to new version using A to meet new demand, But although have a new version using B but user but selects not update), and the case where if it is multi-to-multi, difference in version causes Compatibling problem can more protrude.
Summary of the invention
The embodiment of the present invention provides a kind of data sharing method and terminal, to solve between different application in the prior art The problems such as existing application degree of coupling of data sharing is high, access speed is slow, iteration is at high cost.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows: a kind of data sharing method, is applied to terminal, The terminal include the Software Development Kit SDK and access SDK at least one first application and at least one second Using, which comprises
The topology file to sharing data is generated by first application;
The topology file is rendered to the display page relevant to the layout of second application by SDK, and is passed through The display page is passed to second application by SDK interprocess communication;
The display page is shown by second application.
The embodiment of the invention also provides a kind of terminal, the terminal includes Software Development Kit SDK and access institute State at least one first application and at least one second application of SDK, the terminal further include:
Generation module, for generating the topology file to sharing data by first application;
Processing module, it is relevant aobvious to the layout of second application for being rendered to the topology file by SDK Show the page, and the display page is passed to by second application by SDK interprocess communication;
Display module, for showing the display page by second application.
The embodiment of the invention also provides a kind of terminal, including processor, memory and it is stored on the memory simultaneously The computer program that can be run on the processor is realized as described above when the computer program is executed by the processor Data sharing method the step of.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium The step of storage computer program, the computer program realizes data sharing method as described above when being executed by processor.
In embodiments of the present invention, the topology file to sharing data is generated by the first application, text will be laid out by SDK Part is rendered to the display page relevant to the layout of second application, and passes to the second application by SDK interprocess communication, Second application does not re-define specific display content and layout, and the degree of coupling between the first application and the second application is low, realizes Decoupling between different application;And in the topology file for only needing to update the first application side when sharing data changes, quickly repeatedly For at low cost, scalability is strong.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows the step flow charts of data sharing method provided in an embodiment of the present invention;
Fig. 2 indicates the schematic illustration of data sharing method provided in an embodiment of the present invention;
Fig. 3 indicates one of the structural schematic diagram of terminal provided in an embodiment of the present invention;
Fig. 4 indicates the second structural representation of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
Terminal provided in an embodiment of the present invention can calculate for mobile phone, tablet computer, laptop, super mobile personal Machine (Ultra-Mobile Personal Computer, UMPC), net book, wearable device (Wearable Device), Mobile unit or personal digital assistant (Personal Digital Assistant, PDA) etc..It should be noted that at this The concrete type of terminal is not limited in inventive embodiments.In the embodiment of the present invention by taking LTE and NR system as an example, so it is not limited to This system, technical solution provided by the invention can be applied to the other systems there are same problem.
As shown in Figure 1, a kind of data sharing method, be applied to terminal, the terminal include Software Development Kit SDK with And at least one first application and at least one second application of the access SDK, comprising:
Step 101, the topology file to sharing data is generated by first application.
Wherein, the first application can also be known as data source application, be defined as the producer;By first in the embodiment of the present invention Required topology file is entirely laid out using providing.
Step 102, the topology file is rendered to by display page relevant to the layout of second application by SDK Face, and the display page is passed to by second application by SDK interprocess communication.
Wherein, the second application can also be known as display layer application.As shown in Fig. 2, SDK obtains the layout text to sharing data Part, and topology file is rendered to the display page relevant to the layout of second application;Further by leading between SDK process The display page that rendering obtains is transferred to the second application by letter;It should be noted that the first application and the second application are both needed to access The SDK.Further, which can know display layer using the description of required layout or layout type in advance, it may be assumed that the SDK The relevant display page of display layer application layout can be known in advance, so that the topology file that data source application provides is rendered to Display layer applies the required display page.
Step 103, the display page is shown by second application.
In this step, the second application only needs to provide corresponding Page Container (i.e. View Container) Lai Rongna SDK It renders the obtained display page and shows.Second application does not need to obtain specific display content and layout, realizes the first application With the decoupling of the second application.
Optionally, in the above embodiment of the present invention, the topology file to sharing data includes: layout description (Layout Description) and topology data (Layout Data).
Wherein, layout description (Layout Description) describes the layout of full page, topology data (Layout Data the content filled required for each page, such as text, picture etc.) are described.
As an alternative embodiment, it is described by it is described first application generate to the topology file of sharing data after, It is described by SDK by the topology file be rendered to before the relevant display page of layout of second application, the side Method further include:
The topology file that first application generates is obtained by the application programming interface API of SDK.
In the embodiment of the present invention, described SDK interprocess communication specifically be can be through SDK bottom interprocess communication.
As shown in Fig. 2, topology file is inputted the SDK by the producer API between SDK by the first application.
Optionally, the display page is passed to by second application, packet by SDK interprocess communication in step 102 It includes:
The topology file is rendered to and second application by the interface engine (UI engine) of the SDK It is laid out the relevant display page.
In the embodiment of the present invention, topology file transmits between SDK process and is rendered to the main purpose that the page is the SDK. The embodiment of the present invention provides one kind and is easier to realization and easy extension way: topology file is existed using object representation Json description It is transmitted between process, and completes rendering.The display page is passed to described by SDK interprocess communication i.e. in step 102 Two applications, comprising:
The constitution element of the display page is converted into character string based on object representation;
The character string is passed into second application by SDK interprocess communication.
In the embodiment of the present invention, interface engine is rendered to and described the by the attribute and content dynamic of parsing topology file The relevant display page of layout of two applications, while the content of the display page is updated by filling data to complete entire interface Rendering.It shows that important element required for the page can be transmitted with character string as a result, enormously simplifies the complexity of transmitting Degree.
Further, in the above embodiment of the present invention, the method also includes:
Call notification information is passed into the second application by SDK interprocess communication, the call notification information is for leading to Know that second application goes to obtain the updated display page.
Optionally, after SDK completes rendering, before the second application shows that it shows the page, if the display page has more Newly, then call notification information is transferred to by the second application by SDK interprocess communication;Alternatively, showing its display in the second application After the page, if the display page has update, call notification information is transferred to by the second application by SDK interprocess communication.
It should be noted that the difference of the transfer mode of SDK interprocess communication according to demand is including but not limited to following several Kind mode:
Database is used for store historical data information;
Android Interface Definition Language (AIDL) such as notifies display layer for the call notification information between different application Using going to obtain the newest display page;
Anonymous memory, the transmitting data mode more more efficient than AIDL can be used for transmitting layout description (Layout ) and topology data (Layout Data) Description.
It should be noted that the implementation procedure of above-mentioned SDK is without perception for the first application and the second application.
To sum up, data sharing method at least has the advantage that in the above embodiment of the present invention
1. access speed is fast, complexity is low, and the degree of coupling is low between different application, and will not increase access more application Add excessive workload;
2. iteratively faster cost is extremely low, the layout of more source of new data side is only needed to describe when showing page variation (Layout Description) and topology data (Layout Data), scalability is extremely strong;
3. more than kinds of interprocess communication mode and selection optimum way, can be improved communication efficiency, reduce power consumption;
4. compatibility is fabulous, because of layout description (Layout Description) and topology data (Layout Data) It is encapsulated in source side, therefore there is no source side and shows the incompatible situation in side.
To sum up, in embodiments of the present invention, the topology file to sharing data is generated by the first application, it will by SDK Topology file be rendered to the relevant display page of layout of second application, and pass to the by SDK interprocess communication Two applications, the second application do not re-define specific display content and layout, and the degree of coupling between the first application and the second application is low, Realize the decoupling between different application;And in the topology file for only needing to update the first application side when sharing data changes, Iteratively faster is at low cost, and scalability is strong.
As shown in figure 3, the embodiment of the present invention also provides a kind of terminal 300, the terminal includes Software Development Kit SDK And at least one first application and at least one second application of the access SDK, the terminal 300 further include:
Generation module 301, for generating the topology file to sharing data by first application;
Processing module 302, it is relevant to the layout of second application for being rendered to the topology file by SDK It shows the page, and the display page is passed to by second application by SDK interprocess communication;
Display module 303, for showing the display page by second application.
Optionally, in the above embodiment of the present invention, the terminal further include:
Module is obtained, obtains the cloth that first application generates for the application programming interface API by SDK Office file.
Optionally, in the above embodiment of the present invention, the processing module includes:
Transform subblock, for the constitution element of the display page to be converted to character string based on object representation;
Submodule is transmitted, for the character string to be passed to second application by SDK interprocess communication.
Optionally, in the above embodiment of the present invention, the processing module includes:
Submodule is rendered, the topology file is rendered to for the interface engine by the SDK and is answered with described second The relevant display page of layout.
Optionally, in the above embodiment of the present invention, the terminal further include:
Sending module, for call notification information to be passed to the second application by SDK interprocess communication, described call is led to Know information for notifying second application to go to obtain the updated display page.
Terminal provided in an embodiment of the present invention can be realized each mistake that terminal is realized in the embodiment of the method for Fig. 1 and Fig. 2 Journey, to avoid repeating, which is not described herein again.
To sum up, in embodiments of the present invention, the topology file to sharing data is generated by the first application, it will by SDK Topology file be rendered to the relevant display page of layout of second application, and pass to the by SDK interprocess communication Two applications, the second application do not re-define specific display content and layout, and the degree of coupling between the first application and the second application is low, Realize the decoupling between different application;And in the topology file for only needing to update the first application side when sharing data changes, Iteratively faster is at low cost, and scalability is strong.
It should be noted that terminal provided in an embodiment of the present invention is to be able to carry out the terminal of above-mentioned data sharing method, Then all embodiments of above-mentioned data sharing method are suitable for the terminal, and can reach the same or similar beneficial effect.
A kind of hardware structural diagram of Fig. 4 terminal of each embodiment to realize the present invention, the terminal 400 include but not It is limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, the components such as user input unit 407, interface unit 408, memory 409, processor 410 and power supply 411.This field Technical staff is appreciated that the restriction of the not structure paired terminal of terminal structure shown in Fig. 4, and terminal may include than illustrating more More or less component perhaps combines certain components or different component layouts.In embodiments of the present invention, terminal includes But be not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 410, for generating the topology file to sharing data by first application;It will be described by SDK Topology file is rendered to the display page relevant to the layout of second application;
Wherein, radio frequency unit 401 are answered for the display page to be passed to described second by SDK interprocess communication With;
Processor 410, for showing the display page by second application.
Wherein, the terminal include the Software Development Kit SDK and access SDK at least one first application and At least one second application.
To sum up, in embodiments of the present invention, the topology file to sharing data is generated by the first application, it will by SDK Topology file be rendered to the relevant display page of layout of second application, and pass to the by SDK interprocess communication Two applications, the second application do not re-define specific display content and layout, and the degree of coupling between the first application and the second application is low, Realize the decoupling between different application;And in the topology file for only needing to update the first application side when sharing data changes, Iteratively faster is at low cost, and scalability is strong.
It should be noted that terminal provided in an embodiment of the present invention is to be able to carry out the terminal of above-mentioned data sharing method, Then all embodiments of above-mentioned data sharing method are suitable for the terminal, and can reach the same or similar beneficial effect.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 401 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by wireless communication system and network and other set Standby communication.
Terminal provides wireless broadband internet by network module 402 for user and accesses, and such as user is helped to receive and dispatch electricity Sub- mail, browsing webpage and access streaming video etc..
Audio output unit 403 can be received by radio frequency unit 401 or network module 402 or in memory 409 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also provide and end The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 400 executes.Sound Frequency output unit 403 includes loudspeaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor (Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 401 is converted in the case where telephone calling model.
Terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 4061, and proximity sensor can close display panel when terminal 400 is moved in one's ear 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify terminal posture (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor 405 can be with Including fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensor etc., details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generates and set with the user of terminal It sets and the related key signals of function control inputs.Specifically, user input unit 407 include touch panel 4071 and other Input equipment 4072.Touch panel 4071, also referred to as touch screen, collect user on it or nearby touch operation (such as User is using any suitable objects or attachment such as finger, stylus on touch panel 4071 or near touch panel 4071 Operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receives processor 410 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments 4072. Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button, switch Key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touching The type for touching event provides corresponding visual output on display panel 4061.Although in Fig. 4, touch panel 4071 and display Panel 4061 is the function that outputs and inputs of realizing terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of terminal is realized so that touch panel 4071 and display panel 4061 is integrated, is not limited herein specifically It is fixed.
Interface unit 408 is the interface that external device (ED) is connect with terminal 400.For example, external device (ED) may include it is wired or Wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, memory card port, For connecting port, the port audio input/output (I/O), video i/o port, ear port of the device with identification module Etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will One or more elements that the input received is transferred in terminal 400 or can be used for terminal 400 and external device (ED) it Between transmit data.
Memory 409 can be used for storing software program and various data.Memory 409 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to It crosses operation or executes the software program and/or module being stored in memory 409, and call and be stored in memory 409 Data execute the various functions and processing data of terminal, to carry out integral monitoring to terminal.Processor 410 may include one Or multiple processing units;Preferably, processor 410 can integrate application processor and modem processor, wherein application processing The main processing operation system of device, user interface and application program etc., modem processor mainly handles wireless communication.It can manage Solution, above-mentioned modem processor can not also be integrated into processor 410.
Terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411 can be with It is logically contiguous by power-supply management system and processor 410, thus by power-supply management system realize management charging, electric discharge, with And the functions such as power managed.
In addition, terminal 400 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal, including processor, and memory stores on a memory simultaneously The computer program that can be run on the processor, the computer program realize above-mentioned data sharing side when being executed by processor Each process of method embodiment, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process of above-mentioned data sharing method embodiment, and energy when being executed by processor Reach identical technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (12)

1. a kind of data sharing method, is applied to terminal, the terminal includes described in Software Development Kit SDK and access At least one first application and at least one second application of SDK, which is characterized in that the described method includes:
The topology file to sharing data is generated by first application;
By SDK by the topology file be rendered to the relevant display page of layout of second application, and by SDK into The display page is passed to second application by communication between journey;
The display page is shown by second application.
2. the method according to claim 1, wherein described generated by first application to sharing data It is described that the topology file is rendered to by display page relevant to the layout of second application by SDK after topology file Before face, the method also includes:
The topology file that first application generates is obtained by the application programming interface API of SDK.
3. the method according to claim 1, wherein it is described by SDK interprocess communication by the display page Pass to second application, comprising:
The constitution element of the display page is converted into character string based on object representation;
The character string is passed into second application by SDK interprocess communication.
4. the method according to claim 1, wherein described be rendered to the topology file and institute by SDK State the relevant display page of layout of the second application, comprising:
The topology file is rendered to display page relevant to the layout of second application by the interface engine of the SDK Face.
5. the method according to claim 1, wherein the method also includes:
Call notification information is passed into the second application by SDK interprocess communication, the call notification information is for notifying institute The second application is stated to go to obtain the updated display page.
6. a kind of terminal, the terminal includes at least one first application of the Software Development Kit SDK and access SDK With at least one the second application, which is characterized in that the terminal further include:
Generation module, for generating the topology file to sharing data by first application;
Processing module, for the topology file to be rendered to display page relevant to the layout of second application by SDK Face, and the display page is passed to by second application by SDK interprocess communication;
Display module, for showing the display page by second application.
7. terminal according to claim 6, which is characterized in that the terminal further include:
Module is obtained, obtains the layout text that first application generates for the application programming interface API by SDK Part.
8. terminal according to claim 6, which is characterized in that the processing module includes:
Transform subblock, for the constitution element of the display page to be converted to character string based on object representation;
Submodule is transmitted, for the character string to be passed to second application by SDK interprocess communication.
9. terminal according to claim 6, which is characterized in that the processing module includes:
Submodule is rendered, is rendered to the topology file and second application for the interface engine by the SDK It is laid out the relevant display page.
10. terminal according to claim 6, which is characterized in that the terminal further include:
Sending module, for call notification information to be passed to the second application, the call notification letter by SDK interprocess communication Breath is for notifying second application to go to obtain the updated display page.
11. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory and can be at the place The computer program run on reason device is realized when the computer program is executed by the processor as appointed in claim 1 to 5 The step of data sharing method described in one.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence, the data sharing method as described in any one of claims 1 to 5 is realized when the computer program is executed by processor Step.
CN201910457300.5A 2019-05-29 2019-05-29 Data sharing method and terminal Pending CN110196745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910457300.5A CN110196745A (en) 2019-05-29 2019-05-29 Data sharing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910457300.5A CN110196745A (en) 2019-05-29 2019-05-29 Data sharing method and terminal

Publications (1)

Publication Number Publication Date
CN110196745A true CN110196745A (en) 2019-09-03

Family

ID=67753369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910457300.5A Pending CN110196745A (en) 2019-05-29 2019-05-29 Data sharing method and terminal

Country Status (1)

Country Link
CN (1) CN110196745A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090530A (en) * 2019-12-09 2020-05-01 维沃移动通信有限公司 Distributed cross-interprocess communication bus system
CN112181341A (en) * 2020-10-10 2021-01-05 珠海格力电器股份有限公司 Remote synchronization method for display picture

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831150A (en) * 2012-06-28 2012-12-19 宇龙计算机通信科技(深圳)有限公司 Interactive method, system and terminal for browser and local application
CN104023069A (en) * 2014-06-13 2014-09-03 可牛网络技术(北京)有限公司 Method and equipment of sharing information
CN104683961A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Name card interaction method and device and terminal
CN104954581A (en) * 2015-06-30 2015-09-30 上海海漾软件技术有限公司 Mobile terminal data sharing method, device and system
CN106779810A (en) * 2016-11-25 2017-05-31 北京金山安全软件有限公司 Advertisement display method and device and terminal equipment
CN107885825A (en) * 2017-11-07 2018-04-06 维沃移动通信有限公司 A kind of five application page sharing method and mobile terminal
CN109684580A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of methods of exhibiting and electronic equipment of dynamic page

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102831150A (en) * 2012-06-28 2012-12-19 宇龙计算机通信科技(深圳)有限公司 Interactive method, system and terminal for browser and local application
CN104683961A (en) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 Name card interaction method and device and terminal
CN104023069A (en) * 2014-06-13 2014-09-03 可牛网络技术(北京)有限公司 Method and equipment of sharing information
CN104954581A (en) * 2015-06-30 2015-09-30 上海海漾软件技术有限公司 Mobile terminal data sharing method, device and system
CN106779810A (en) * 2016-11-25 2017-05-31 北京金山安全软件有限公司 Advertisement display method and device and terminal equipment
CN109684580A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of methods of exhibiting and electronic equipment of dynamic page
CN107885825A (en) * 2017-11-07 2018-04-06 维沃移动通信有限公司 A kind of five application page sharing method and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090530A (en) * 2019-12-09 2020-05-01 维沃移动通信有限公司 Distributed cross-interprocess communication bus system
CN111090530B (en) * 2019-12-09 2024-03-05 维沃移动通信有限公司 Distributed inter-process communication bus system
CN112181341A (en) * 2020-10-10 2021-01-05 珠海格力电器股份有限公司 Remote synchronization method for display picture
CN112181341B (en) * 2020-10-10 2022-08-16 珠海格力电器股份有限公司 Remote synchronization method for display picture

Similar Documents

Publication Publication Date Title
CN106933525B (en) A kind of method and apparatus showing image
CN109814968A (en) A kind of data inputting method, terminal device and computer readable storage medium
CN109889348A (en) A kind of images share method and device
CN110391867A (en) DCI detection method, DCI sending method, terminal and base station
CN109491738A (en) A kind of control method and terminal device of terminal device
CN109327672A (en) A kind of video call method and terminal
CN109032468A (en) A kind of method and terminal of adjustment equipment parameter
CN107277630A (en) The display methods and device of information of voice prompt
CN109358931A (en) A kind of interface display method and terminal
CN110046015A (en) Using sharing method and terminal
CN108600078A (en) A kind of method and terminal of communication
CN108391123A (en) A kind of method and terminal generating video
CN109522278A (en) A kind of file memory method and terminal device
CN109388456A (en) A kind of head portrait selection method and mobile terminal
CN110460894A (en) A kind of video image display method and terminal device
CN109085963A (en) A kind of interface display method and terminal device
CN110278587A (en) Cell configuring method, terminal and network node
CN110035503A (en) Configuration method, activation or the anti-activating method of resource status, base station and terminal
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109888928A (en) A kind of terminal and wireless charging control method
CN109816679A (en) A kind of image processing method and terminal device
CN109951373A (en) A kind of document sending method and terminal device
CN108833684A (en) A kind of information cuing method and terminal device
CN110196745A (en) Data sharing method and terminal
CN107992378B (en) A kind of document handling method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190903