CN106201508B - Information display method and device and electronic equipment - Google Patents

Information display method and device and electronic equipment Download PDF

Info

Publication number
CN106201508B
CN106201508B CN201610539000.8A CN201610539000A CN106201508B CN 106201508 B CN106201508 B CN 106201508B CN 201610539000 A CN201610539000 A CN 201610539000A CN 106201508 B CN106201508 B CN 106201508B
Authority
CN
China
Prior art keywords
client
code
page
sdk
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610539000.8A
Other languages
Chinese (zh)
Other versions
CN106201508A (en
Inventor
桑小杰
李冠毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610539000.8A priority Critical patent/CN106201508B/en
Publication of CN106201508A publication Critical patent/CN106201508A/en
Application granted granted Critical
Publication of CN106201508B publication Critical patent/CN106201508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing 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
    • G06F9/547Remote procedure calls [RPC]; Web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an information display method, an information display device and electronic equipment, which are used for solving the problem that two applications need to run simultaneously when one application displays a page and page logic of the other application, and the method comprises the following steps: creating an interface of a first client; creating information including a context object of the second client and a name of the first client through the interface; creating a component of the second client according to the information; the page and page logic of the second client is displayed on the page of the first client according to the information and the component. By implementing the embodiment of the invention, the power consumption can be saved.

Description

Information display method and device and electronic equipment
Technical Field
The invention relates to the technical field of computers, in particular to an information display method and device and electronic equipment.
Background
With the continuous development of computer technology, more and more applications are installed on operating systems such as Android, and a common inter-application call is to display a page and page logic of one application on another application. Assuming that one application is an a application and the other application is a B application, when the page and page logic of the a application need to be exposed on the B application, the B application may store the code of the a application in order to display the page and page logic of the a application. However, since the a application and the B application may belong to different vendors, the update frequency of the a application and the B application may be different. When the update frequency of the B application is lower than that of the a application, the page and the page logic of the a application exposed on the B application may not be the latest page and the page logic of the a application, so that the B application cannot timely expose the page and the page logic of the a application. To solve the above problem, when the B application needs to expose the page and page logic of the a application, the B application will acquire the code of the a application, but this requires the a application to start, so that the a application and the B application need to run simultaneously, thereby increasing power consumption.
Disclosure of Invention
The embodiment of the invention discloses an information display method, an information display device and electronic equipment, which are used for solving the problem that two applications need to run simultaneously when one application displays a page and page logic of another application.
The first aspect of the embodiments of the present invention discloses an information display method, including:
creating an interface of a first client;
creating, through the interface, information including a context object of a second client and a name of the first client;
creating a component of the second client according to the information;
and displaying the page and the page logic of the second client on the page of the first client according to the information and the component.
In one embodiment, the first client stores a software development kit, SDK, having first code stored therein for creating a context object for the second client;
the creating, through the interface, information including a context object of a second client and a name of the first client includes:
acquiring the first code from the SDK through the interface;
adding the name of the first client in the first code;
executing the first code after adding the name to create information including a context object of the second client and a name of the first client.
In one embodiment, the first client further stores a jar package;
the obtaining the first code from the SDK through the interface includes:
establishing the connection between the interface and the jar packet;
and acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK.
In one embodiment, the SDK further has stored therein second code for creating a component of the second client;
the creating the component of the second client according to the information comprises:
acquiring the second code from the SDK through the interface according to the information;
adding the name of the first client in the second code;
executing the second code with the name added to create a component of the second client.
In one embodiment, the SDK further stores third code for invoking the code of the second client;
said displaying the page and page logic of the second client on the page of the first client according to the information and the component comprises:
when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected, establishing the connection between the interface and the jar packet according to the information;
acquiring the third code from the SDK through the mapping relation between the jar packet and the SDK;
executing the third code to obtain the code of the second client;
executing the code of the second client in the first client according to the component to display the page and the page logic of the second client on the page of the first client.
A second aspect of the embodiments of the present invention discloses an information display device, including:
the first establishing unit is used for establishing an interface of a first client;
a second creating unit configured to create, through the interface created by the first creating unit, information including a context object of a second client and a name of the first client;
a third creating unit configured to create a component of the second client according to the information created by the second creating unit;
and the display unit is used for displaying the page and the page logic of the second client on the page of the first client according to the information created by the second creation unit and the component created by the third creation unit.
In one embodiment, the first client stores a software development kit, SDK, having first code stored therein for creating a context object for the second client;
the second creating unit includes:
a first obtaining subunit, configured to obtain the first code from the SDK through the interface;
a first adding subunit, configured to add the name of the first client to the first code acquired by the first acquiring subunit;
a first execution subunit, configured to execute the first code after the name is added by the first adding subunit, so as to create information including a context object of the second client and a name of the first client.
In one embodiment, the first client further stores a jar package;
the first obtaining subunit is specifically configured to:
establishing the connection between the interface and the jar packet;
and acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK.
In one embodiment, the SDK further has stored therein second code for creating a component of the second client;
the third creating unit includes:
the second obtaining subunit is configured to obtain the second code from the SDK through the interface according to the information;
a second adding subunit, configured to add the name of the first client to the second code acquired by the second acquiring subunit;
a second execution subunit, configured to execute the second code after the name is added by the second adding subunit, so as to create a component of the second client.
In one embodiment, the SDK further stores third code for invoking the code of the second client;
the display unit includes:
the establishing subunit is used for establishing the connection between the interface and the jar packet according to the information when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected;
a third obtaining subunit, configured to obtain the third code from the SDK through a mapping relationship between the jar packet and the SDK that are connected by the establishing subunit;
a third execution subunit, configured to execute the third code acquired by the third acquisition subunit to acquire the code of the second client;
and the fourth execution subunit is configured to execute, in the first client according to the component, the code of the second client acquired by the third execution subunit, so as to display the page and the page logic of the second client on the page of the first client.
A third aspect of an embodiment of the present invention discloses an electronic device, including: a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface are connected through the bus and complete mutual communication;
the memory stores an executable program;
the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing an information display method;
the information display method comprises the following steps:
creating an interface of a first client;
creating, through the interface, information including a context object of a second client and a name of the first client;
creating a component of the second client according to the information;
and displaying the page and the page logic of the second client on the page of the first client according to the information and the component.
In the embodiment of the invention, the interface of the first client is created, the information comprising the name of the first client and the context object of the second client is created through the interface, the component of the second client is created according to the information, and the page logic of the second client are displayed on the page and the page logic of the first client according to the information and the component. In addition, when the page and the page logic of the second client are displayed, if the component of the second client is called, the second client is started, but the component of the second client is created by the first client, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a schematic flow chart of an information display method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another information display method disclosed in the embodiment of the invention;
FIG. 3 is a schematic structural diagram of an information display device according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another information display device disclosed in the embodiments of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses an information display method, an information display device and electronic equipment, which are used for solving the problem that two applications need to run simultaneously when one application displays a page and page logic of another application. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flow chart of an information display method according to an embodiment of the present invention. The information display method is described from the perspective of an electronic device, such as a mobile phone or a tablet computer, in which a first client and a second client are installed. As shown in fig. 1, the information display method may include the following steps.
101. An interface of a first client is created.
In this embodiment, when the user needs to display the page and the page logic of the second client on the page of the first client, the user may enable the electronic device to create the interface of the first client by operating the electronic device, that is, the first client may provide a proxyclie class, and the proxyclie class provides an interface.
102. Information is created through the interface that includes a context object of the second client and a name of the first client.
In this embodiment, the first client may store a Software Development Kit (SDK), and the SDK stores a first code that may create a Context object (i.e., a Context object) of the second client. Therefore, after the interface of the first client is created, the information including the context object of the second client and the name of the first client is created through the interface, that is, the first code is obtained from the SDK through the interface, the name of the first client is added to the first code, and then the first code with the name added is executed, so that the information including the context object of the second client and the name of the first client can be obtained, and the information, that is, the context object of the second client including the name of the first client is obtained by performing createPackageContext () on the context object of the second client, and is transmitted to the name of the first client.
In this embodiment, the first client further stores a jar package, and the jar package and the SDK have a mapping relationship, where the SDK stores program codes, and if the program code of a certain function needs to be acquired from the SDK, the program code of the function needs to be known, and the code of the function can be acquired from the code stored in the SDK, so that the acquisition efficiency is low. Therefore, in order to improve the code obtaining efficiency, the jar packet is introduced to include the function names of each part of codes in the SDK, and a one-to-one mapping relation exists between the function names and the corresponding codes in the SDK, so that the codes in the SDK can be quickly obtained through the function names in the jar packet. Therefore, the first code is obtained from the SDK through the interface, namely the connection between the interface and the jar packet is established, and the first code is quickly obtained from the SDK through the mapping relation between the jar packet and the SDK.
103. Components of the second client are created from the information.
In this embodiment, in the process of displaying the page and the page logic of the second client on the page of the first client, if components such as a view (activity) of the second client are needed, these components may be directly called from the second client, but an application (application) of these components on the first client will cause the second client to start. Since the SDK further stores a second code for creating a component of the second client, in order to avoid the second client starting, the component of the second client is created according to the information, that is, the second code is obtained from the SDK through the interface according to the information, the name of the first client is added to the second code, and the second code after the name is added is executed to create the component of the second client.
104. The page and page logic of the second client is displayed on the page of the first client according to the information and the component.
In this embodiment, the SDK further stores a third code for invoking a code of the second client, after the component of the second client is created according to the information, the page and the page logic of the second client are displayed on the page of the first client according to the information and the component, i.e. when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected, establishing connection between the interface and the jar packet according to the information (namely the context object of the second client side including the name of the first client side), quickly acquiring a third code from the SDK through the mapping relation between the jar packet and the SDK, executing the third code, to obtain the code of the second client, and then execute the code of the second client in the first client according to the component, so as to display the page and the page logic of the second client on the page of the first client. Wherein the page logic is based on responses to the operation of the page, such as: when a message on a page is clicked, the details of the message will be displayed in the target area.
In one embodiment, it is further necessary to select a target area from the display area of the first client and allocate the target area to the second client, so as to display the page and the page logic of the second client on the target area of the page of the first client.
In the information display method described in fig. 1, an interface of a first client is created, information including a name of the first client and a context object of a second client is created through the interface, a component of the second client is created according to the information, and a page logic of the second client are displayed on the page and the page logic of the first client according to the information and the component. In addition, when the page and the page logic of the second client are displayed on the page of the first client, if the component of the second client is called, the second client is started, but the component of the second client is created, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another information display method according to an embodiment of the present invention. The information display method is described from the perspective of a first client installed in an electronic device such as a mobile phone or a tablet computer. As shown in fig. 2, the information display method may include the following steps.
201. The first client creates an interface.
In this embodiment, when the first client needs to display the page and the page logic of the second client on the page of the first client, the first client creates an interface, that is, the first client provides a ProxyClient class, and the ProxyClient class provides an interface (IProxy).
202. The first client creates information including a context object of the second client and a name of the first client through the interface.
In this embodiment, the first client may store an SDK, where the SDK stores a first code that may create a context object of the second client. Therefore, after the first client creates the interface, the first client acquires the context object of the second client and the information of the name of the first client through the interface, namely, the first code is acquired from the SDK through the interface, the name of the first client is added into the first code, and then the first code after the name is added is executed, so that the information including the context object of the second client and the name of the first client can be obtained, the information is the context object of the second client including the name of the first client, the information has the function of enabling the code of the second client to be executed on the first client, and the information can be obtained by performing createPackageContext () on the context object of the second client and transferring the createpart () into the name of the first client.
In this embodiment, the first client further stores a jar package, and the jar package and the SDK have a mapping relationship, where the SDK stores program codes, and if the program code of a certain function needs to be obtained from the SDK, the program code of the function needs to be cleared to obtain the code of the function from the codes stored in the SDK, so that the obtaining efficiency is low. Therefore, in order to improve the code obtaining efficiency, the jar packet is introduced to include the function names of each part of codes in the SDK, and a one-to-one mapping relation exists between the function names and the corresponding codes in the SDK, so that the codes in the SDK can be quickly obtained through the function names in the jar packet. Therefore, the first code is obtained from the SDK through the interface, namely the connection between the interface and the jar packet is established, and the first code is quickly obtained from the SDK through the mapping relation between the jar packet and the SDK.
203. The first client creates a component of the second client from the information.
In this embodiment, in the process of displaying the page and the page logic of the second client on the page of the first client by the first client, if components such as a view (activity) of the second client are needed, these components may be directly called from the second client, but an application (application) of these components on the first client will cause the second client to start. Since the SDK further stores a second code for creating a component of the second client, in order to avoid the second client starting, the component of the second client is created according to the information, that is, the second code is obtained from the SDK through the interface according to the information, the name of the first client is added to the second code, and the second code after the name is added is executed to create the component of the second client.
204. The first client displays the page and page logic of the second client according to the information and the component.
In this embodiment, the SDK further stores a third code for invoking a code of the second client, and after the component of the second client is created according to the information, the page and the page logic of the second client are displayed according to the information and the component, that is, when a display instruction for displaying the page and the page logic of the second client is detected, the connection between the interface and the jar package is established according to the information (i.e., the context object of the second client including the name of the first client), the third code is obtained from the SDK through the mapping relationship between the jar package and the SDK, the third code is executed to obtain the code of the second client, and then the code of the second client is executed according to the component, so that the page and the page logic of the second client are displayed.
In one embodiment, it is also necessary to allocate a target area for the second client in order to display the page and page logic of the second client on the target area of the page of the first client.
In the information display method described in fig. 2, the first client creates an interface, creates information including a name of the first client and a context object of the second client through the interface, creates a component of the second client according to the information, and displays a page and page logic of the second client according to the information and the component, and thus, the context object of the second client is created by the first client, but not acquired from the second client, and therefore, the second client does not need to be started, and power consumption can be saved. In addition, when the page and the page logic of the second client are displayed, if the component of the second client is called, the second client is started, but the component of the second client is created by the first client, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an information display device according to an embodiment of the present invention. The information display device can be an electronic device such as a mobile phone and a tablet computer provided with a first client and a second client. As shown in fig. 3, the information display apparatus may include:
a first creating unit 301, configured to create an interface of a first client;
a second creating unit 302 for creating information including a context object of the second client and a name of the first client through the interface created by the first creating unit 301;
a third creating unit 303, configured to create a component of the second client according to the information created by the second creating unit 302;
a display unit 304, configured to display the page of the second client and the page logic on the page of the first client according to the information created by the second creating unit 302 and the component created by the third creating unit 303.
In the information display apparatus described in fig. 3, an interface of a first client is created, information including a name of the first client and a context object of a second client is created through the interface, a component of the second client is created based on the information, and a page logic of the second client are displayed on the page and the page logic of the first client based on the information and the component, and thus, the context object of the second client is created instead of being acquired from the first client, and therefore, the second client does not need to be started, and power consumption can be saved. In addition, when the page and the page logic of the second client are displayed on the page of the first client, if the component of the second client is called, the second client is started, but the component of the second client is created, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another information display device according to an embodiment of the disclosure. The information display device can be an electronic device such as a mobile phone and a tablet computer provided with a first client and a second client. The information display apparatus shown in fig. 4 is optimized from the information display apparatus shown in fig. 3, in which:
the first client stores an SDK, and the SDK stores a first code used for creating a context object of the second client;
the second creating unit 302 may include:
a first acquiring subunit 3021, configured to acquire the first code from the SDK through the interface;
an adding subunit 3022, configured to add the name of the first client to the first code acquired by the first acquiring subunit 3021;
a first execution subunit 3023, configured to execute the first code after the adding subunit 3022 adds the name, to create information including the context object of the second client and the name of the first client.
As a possible implementation manner, the first client further stores a jar packet;
the first obtaining subunit 3021 is specifically configured to:
establishing the connection between the interface and the jar packet;
and acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK.
As a possible implementation manner, the SDK further stores a second code for creating a component of the second client;
the third creating unit 303 may include:
a second obtaining subunit 3031, configured to obtain, according to the information, the second code from the SDK through the interface;
a second adding subunit 3032, configured to add the name of the first client to the second code acquired by the second acquiring subunit 3031;
a second execution sub-unit 3033, configured to execute the second code added with the name by the second adding sub-unit 3032, so as to create a component of the second client.
As a possible implementation manner, the SDK further stores a third code for invoking a code of the second client;
the display unit 304 may include:
the establishing subunit 3041, configured to, when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected, establish a connection between the interface and the jar packet according to the information;
a third obtaining subunit 3042, configured to obtain the third code from the SDK by establishing a mapping relationship between the jar packet and the SDK that are connected by the establishing subunit 3041;
a third executing subunit 3043, configured to execute the third code acquired by the third acquiring subunit 3042, so as to acquire the code of the second client;
a fourth execution subunit 3044, configured to execute, in the first client according to the component, the code of the second client obtained by the third execution subunit 3043, so as to display the page and the page logic of the second client on the page of the first client.
In the information display apparatus described in fig. 4, an interface of a first client is created, information including a name of the first client and a context object of a second client is created through the interface, a component of the second client is created based on the information, and a page logic of the second client are displayed on the page and the page logic of the first client based on the information and the component, and thus, the context object of the second client is created instead of being acquired from the first client, and therefore, the second client does not need to be started, and power consumption can be saved. In addition, when the page and the page logic of the second client are displayed on the page of the first client, if the component of the second client is called, the second client is started, but the component of the second client is created, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure. The electronic device can be a mobile phone, a tablet computer and the like provided with a first client and a second client. As shown in fig. 5, the electronic device may include a processor 501, a memory 502, a communication interface 503 and a bus 504, where the memory 502 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory 502 may also be at least one storage device located remotely from the aforementioned processor 501. The processor 501, the memory 502 and the communication interface 503 are connected through a bus 504 and complete mutual communication; the communication interface 503 is used for communication with other devices; the memory stores an executable program; the processor 501 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 502 for executing an information display method;
the information display method may include:
creating an interface of a first client;
creating information including a context object of the second client and a name of the first client through the interface;
creating a component of the second client according to the information;
the page and page logic of the second client is displayed on the page of the first client according to the information and the component.
In one embodiment, the electronic device may further comprise an input device 505, such as a touch screen, keys, a microphone, etc., an output device 506, such as a display screen, a microphone, etc., wherein:
an input device 505 for receiving information input by a user;
and an output device 506 for outputting information.
In the electronic device described in fig. 5, an interface of the first client is created, information including a name of the first client and a context object of the second client is created through the interface, a component of the second client is created according to the information, and a page logic of the second client are displayed on the page and the page logic of the first client according to the information and the component. In addition, when the page and the page logic of the second client are displayed on the page of the first client, if the component of the second client is called, the second client is started, but the component of the second client is created, so that the starting of the second client can be further avoided, and the power consumption can be saved.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The information display method, the information display device and the electronic device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (7)

1. An information display method, comprising:
creating an interface of a first client, wherein the first client stores a Software Development Kit (SDK), the SDK stores a first code for creating a context object of a second client, and the first client also stores a jar package;
establishing the connection between the interface and the jar packet;
acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK;
adding the name of the first client in the first code;
executing the first code after adding the name to create information including a context object of the second client and a name of the first client;
creating a component of the second client according to the information;
and displaying the page and the page logic of the second client on the page of the first client according to the information and the component.
2. The method of claim 1, wherein the SDK further has stored therein second code for creating a component of the second client;
the creating the component of the second client according to the information comprises:
acquiring the second code from the SDK through the interface according to the information;
adding the name of the first client in the second code;
executing the second code with the name added to create a component of the second client.
3. The method of claim 2, wherein the SDK further stores third code for invoking the code of the second client;
said displaying the page and page logic of the second client on the page of the first client according to the information and the component comprises:
when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected, establishing the connection between the interface and the jar packet according to the information;
acquiring the third code from the SDK through the mapping relation between the jar packet and the SDK;
executing the third code to obtain the code of the second client;
executing the code of the second client in the first client according to the component to display the page and the page logic of the second client on the page of the first client.
4. An information display device characterized by comprising:
the system comprises a first creating unit, a second creating unit and a third creating unit, wherein the first creating unit is used for creating an interface of a first client, the first client stores a Software Development Kit (SDK), the SDK stores a first code used for creating a context object of a second client, and the first client also stores a jar package;
a second creating unit configured to create, through the interface created by the first creating unit, information including a context object of the second client and a name of the first client;
a third creating unit configured to create a component of the second client according to the information created by the second creating unit;
the display unit is used for displaying the page and the page logic of the second client on the page of the first client according to the information created by the second creation unit and the component created by the third creation unit;
the second creating unit includes:
a first obtaining subunit, configured to obtain the first code from the SDK through the interface;
a first adding subunit, configured to add the name of the first client to the first code acquired by the first acquiring subunit;
a first execution subunit, configured to execute the first code after the name is added by the first adding subunit to create information including a context object of the second client and a name of the first client;
the first obtaining subunit is specifically configured to:
establishing the connection between the interface and the jar packet;
and acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK.
5. The apparatus of claim 4, wherein the SDK further has stored therein second code for creating a component of the second client;
the third creating unit includes:
the second obtaining subunit is configured to obtain the second code from the SDK through the interface according to the information;
a second adding subunit, configured to add the name of the first client to the second code acquired by the second acquiring subunit;
a second execution subunit, configured to execute the second code after the name is added by the second adding subunit, so as to create a component of the second client.
6. The apparatus of claim 5, wherein the SDK further stores third code for invoking the code of the second client;
the display unit includes:
the establishing subunit is used for establishing the connection between the interface and the jar packet according to the information when a display instruction for displaying the page and the page logic of the second client on the page of the first client is detected;
a third obtaining subunit, configured to obtain the third code from the SDK through a mapping relationship between the jar packet and the SDK that are connected by the establishing subunit;
a third execution subunit, configured to execute the third code acquired by the third acquisition subunit to acquire the code of the second client;
and the fourth execution subunit is configured to execute, in the first client according to the component, the code of the second client acquired by the third execution subunit, so as to display the page and the page logic of the second client on the page of the first client.
7. An electronic device, comprising: a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface are connected through the bus and complete mutual communication;
the memory stores an executable program;
the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing an information display method;
the information display method comprises the following steps:
creating an interface of a first client, wherein the first client stores a Software Development Kit (SDK), the SDK stores a first code for creating a context object of a second client, and the first client also stores a jar package;
establishing the connection between the interface and the jar packet;
acquiring the first code from the SDK through the mapping relation between the jar packet and the SDK;
adding the name of the first client in the first code;
executing the first code after adding the name to create information including a context object of the second client and a name of the first client;
creating a component of the second client according to the information;
and displaying the page and the page logic of the second client on the page of the first client according to the information and the component.
CN201610539000.8A 2016-07-08 2016-07-08 Information display method and device and electronic equipment Active CN106201508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610539000.8A CN106201508B (en) 2016-07-08 2016-07-08 Information display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610539000.8A CN106201508B (en) 2016-07-08 2016-07-08 Information display method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN106201508A CN106201508A (en) 2016-12-07
CN106201508B true CN106201508B (en) 2020-06-05

Family

ID=57473233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610539000.8A Active CN106201508B (en) 2016-07-08 2016-07-08 Information display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN106201508B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733395B (en) * 2018-05-14 2022-02-01 广州虎牙信息科技有限公司 Software application program service updating method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Page presenting system and page presenting method
CN104021039A (en) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 Calling method for APP and browser
CN104063071A (en) * 2014-07-18 2014-09-24 百度在线网络技术(北京)有限公司 Content input method and device
CN104267977A (en) * 2014-09-16 2015-01-07 小米科技有限责任公司 Application program running method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9003361B2 (en) * 2012-11-30 2015-04-07 Red Hat Israel, Ltd. Generating a restful web service software development kit client
US20140181984A1 (en) * 2012-12-21 2014-06-26 International Business Machines Corporation Method and apparatus for authentication of solution topology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902774A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Page presenting system and page presenting method
CN104021039A (en) * 2014-05-30 2014-09-03 北京金山网络科技有限公司 Calling method for APP and browser
CN104063071A (en) * 2014-07-18 2014-09-24 百度在线网络技术(北京)有限公司 Content input method and device
CN104267977A (en) * 2014-09-16 2015-01-07 小米科技有限责任公司 Application program running method and device

Also Published As

Publication number Publication date
CN106201508A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US20180285053A1 (en) Screenshot method and apparatus
US8639749B2 (en) Platform independent information handling system, communication method, and computer program product thereof
CN103345405A (en) Application program starting method and device and client
CN107688529B (en) Component debugging method and device
CN111259037B (en) Data query method and device based on rule configuration, storage medium and terminal
CN110007936B (en) Data processing method and device
CN109582317B (en) Method and apparatus for debugging hosted applications
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN107273226B (en) Method and device for integrating components in android system and calling integrated components
EP3637257A1 (en) View switching
CN106201508B (en) Information display method and device and electronic equipment
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN113419649A (en) Method for operating electronic device and device thereof
CN106095886B (en) Data processing method and device
CN111124874B (en) Method for debugging webpage, debugging server and main control equipment
CN104142824A (en) Code generator based on class library and realization method of code generator
CN108616657B (en) Method and device for realizing soft phone dialing in mobile terminal
CN108009084B (en) Testing method, device and system for hybrid mobile application
CN110088750B (en) Method and system for providing context function in static webpage
WO2018121652A1 (en) Method and device for connecting wireless access point through application in user equipment
CN107704279B (en) Data loading method and device
CN112073505B (en) Method for unloading on cloud server, control device and storage medium
CN111813407B (en) Game development method, game running device and electronic equipment
CN110968383B (en) Message frame display method and device, terminal and storage medium
CN113950034A (en) Bluetooth behavior simulation method, device and equipment

Legal Events

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