CN111949339B - Method, apparatus, device and computer readable storage medium for displaying information - Google Patents

Method, apparatus, device and computer readable storage medium for displaying information Download PDF

Info

Publication number
CN111949339B
CN111949339B CN201910360725.4A CN201910360725A CN111949339B CN 111949339 B CN111949339 B CN 111949339B CN 201910360725 A CN201910360725 A CN 201910360725A CN 111949339 B CN111949339 B CN 111949339B
Authority
CN
China
Prior art keywords
display
interface
application
display content
displaying
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
CN201910360725.4A
Other languages
Chinese (zh)
Other versions
CN111949339A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910360725.4A priority Critical patent/CN111949339B/en
Publication of CN111949339A publication Critical patent/CN111949339A/en
Application granted granted Critical
Publication of CN111949339B publication Critical patent/CN111949339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The present disclosure provides a method, apparatus, device, and computer-readable storage medium for displaying information. The method for displaying information includes: a method for displaying information, comprising the steps performed by a first application of: obtaining display data from a second application running in the first application; creating a second interface located above a first interface created by the second application; and displaying display content provided by the display data on the second interface based on the display data, wherein the display on the second interface is controlled by the first application.

Description

Method, apparatus, device and computer readable storage medium for displaying information
Technical Field
The present disclosure relates to the field of information display, and in particular, to a method, apparatus, device, and computer-readable storage medium for displaying information.
Background
An interface for displaying information may be created on an interface of an application or in a web page. In the interface for displaying information, information such as text, pictures, video and the like may be added. In the existing implementation, the control on the displayed information is weak, and the method is not applicable to an application scene for displaying information in another application running in a certain application.
Disclosure of Invention
The present disclosure provides a method, apparatus, device, and computer-readable storage medium for displaying information for implementing a function of displaying information in a second application, wherein the second application is running in a first application.
According to an aspect of the present disclosure, there is provided a method for displaying information, comprising the following steps performed by a first application: obtaining display data from a second application running in the first application; creating a second interface located above a first interface created by the second application; and displaying display content provided by the display data on the second interface based on the display data, wherein the display on the second interface is controlled by the first application.
According to an embodiment of the present disclosure, in a case where the display content is of a picture type, the display data further provides a display position, and the creating a second interface located above the first interface includes: a second interface is created over the first interface based on the display position.
According to an embodiment of the present disclosure, in a case where the display content is of a video type, the display data further provides the display content of a picture type and a display position thereof, and the method further includes: and creating a third interface positioned above the second interface based on the display position, and displaying the display content of the picture type on the third interface.
According to an embodiment of the present disclosure, the method further comprises: and acquiring display parameters for displaying the display content on the second interface based on the second application program, and analyzing the validity of the display based on the display parameters.
According to an embodiment of the present disclosure, the display parameter includes a display duration, and the analyzing the validity of the display based on the display parameter includes: and determining that the display is invalid under the condition that the display duration is smaller than a time threshold.
According to an embodiment of the present disclosure, the display parameters include a runtime of the first application program and a time of displaying the display content, and analyzing the validity of the display based on the display parameters includes: and determining that the display is invalid in the case that the running time of the first application program is less than the time of displaying the display content.
According to an embodiment of the present disclosure, the display parameter includes a type of the second application program and a type of display content, and the analyzing the validity of the display based on the display parameter includes: in the event that the type of the second application is different from the type of the display content, the display is determined to be invalid.
According to an embodiment of the present disclosure, creating a second interface located above a first interface includes: a second interface is created over the first interface using a native control of a programming language corresponding to the first application.
According to another aspect of the present disclosure, there is provided an apparatus for displaying information, including: an acquisition unit configured to acquire display data from a second application running in the first application; a creation unit configured to create a second interface located above a first interface created by the second application; and a display unit configured to display content provided by the display data on the second interface based on the display data, wherein display on the second interface is controlled by the first application program.
According to an embodiment of the present disclosure, in a case where the display content is of a picture type, the display data further provides a display position, and the creation unit creates a second interface above the first interface based on the display position.
According to an embodiment of the present disclosure, in a case where the display content is of a video type, the display data further provides a display content of a picture type and a display position thereof, the creation unit is further configured to create a third interface located above the second interface based on the display position, and the display unit is further configured to display the display content of the picture type on the third interface.
According to an embodiment of the present disclosure, the obtaining unit is further configured to obtain, based on the second application program, a display parameter for displaying the display content on the second interface, and the apparatus further includes an analyzing unit configured to analyze validity of the display based on the display parameter.
According to an embodiment of the disclosure, the display parameter includes a display duration, and the analysis unit determines that the display is invalid if the display duration is less than a time threshold; the display parameters comprise the running time of a first application program and the time for displaying the display content, and the analysis unit determines that the display is invalid when the running time of the first application program is less than the time for displaying the display content; and the display parameter includes a type of the second application program and a type of display content, and the analysis unit determines that the display is invalid in a case where the type of the second application program is different from the type of display content.
According to an embodiment of the present disclosure, the creating unit creates a second interface located above the first interface based on a native control of a programming language corresponding to the first application.
According to still another aspect of the present disclosure, there is provided an apparatus for displaying information, including: one or more processors; and one or more memories, wherein the memories have stored therein a computer executable program that, when executed by the one or more processors, performs the method for displaying information as described above.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon instructions that, when executed by a processor, cause the processor to perform the method for displaying information as described above.
According to the method for displaying information, the first application program is utilized to create the second interface above the first interface, display content acquired from the second application program is displayed on the created second interface, and the first application program controls the display on the second interface, so that the safety and the effectiveness of the display controlled by the first application program can be realized, the displayed display content is ensured not to be blocked, and the method can be suitable for application scenes of displaying information in the second application program.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
FIG. 1 shows a schematic flow chart of displaying information in an application;
FIG. 2 shows a schematic flow chart of displaying information in a web page;
FIG. 3 illustrates a flow chart of a method for displaying information in accordance with an embodiment of the present disclosure;
FIG. 4A illustrates a flowchart of a method of displaying a picture according to an embodiment of the present disclosure;
FIG. 4B shows a schematic diagram of a picture displayed by a method according to an embodiment of the present disclosure;
FIG. 5A illustrates a flowchart of a method of displaying video according to an embodiment of the present disclosure;
FIG. 5B shows a schematic diagram of a video displayed by a method according to an embodiment of the present disclosure;
FIG. 6 shows a schematic block diagram of an apparatus for displaying information according to an embodiment of the present disclosure;
FIG. 7 shows a schematic diagram of an apparatus for displaying information according to an embodiment of the present disclosure;
FIG. 8 illustrates a schematic diagram of an architecture of an exemplary computing device, according to an embodiment of the present disclosure;
fig. 9 shows a schematic diagram of a storage medium according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It will be apparent that the described embodiments are merely embodiments of a portion, but not all, of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without the need for inventive faculty, are intended to be within the scope of the present disclosure, based on the embodiments in this disclosure.
The terms "first," "second," and the like, as used in this disclosure, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
A flowchart is used in this disclosure to describe the steps of a method according to an embodiment of the present disclosure. It should be understood that the steps that follow or before do not have to be performed in exact order. Rather, the various steps may be processed in reverse order or simultaneously. Also, other operations may be added to or removed from these processes.
Information may be displayed on a display interface (View) or a web Page (Page) of the device for viewing by a user. For example, an application installed in a mobile device may have a Window (Window) corresponding to the application. The window may include one or more layers of the interface for displaying information such as display content that may be of the type of pictures, text, or video.
Fig. 1 shows a schematic flow chart of displaying information in an application. As shown in fig. 1, first, in step S101, an application program may be created. For example, the window of the application may include 3 interfaces for displaying information. Next, in step S102, a component for displaying information may be inserted. Wherein the component may be a piece of dedicated code for implementing the function of displaying information. Next, in step S103, an interface for displaying information is created in the window of the application program. For example, the interface for displaying information may be created in an application by the component. Then, at step S104, information may be displayed on the created interface. For example, the information may be a picture or video type of display content, such as an advertisement. For example, the components may be implemented by a software development kit (Software Development Kit, SDK). The SDK may be a collection of development tools for implementing specific functions. For example, an advertisement SDK may be inserted in an application. Through the advertising SDK, information can be displayed on the created interface.
Fig. 2 shows a schematic flow chart of displaying information in a web page. As shown in fig. 2, first, in step S201, a web page may be created. Next, in step S202, a code for displaying information is inserted, and in step S203, display content to be displayed is acquired. In step S204, the acquired display content may be displayed in a page of the web page. For example, the code for displaying information may be a script program based on a programming language (such as JavaScript). The script program may download display content to be displayed from a server, for example, during a user's access to a web page.
In both of the above schemes of displaying information, there is a disadvantage in that the control of the display is weak. For example, in the case where the information displayed is an advertisement, a customized advertisement effect cannot be achieved, and the SDK component or the introduced script program cannot control the display process of the advertisement. For example, a cheating act may occur in which a large number of repeated click operations on an advertisement are implemented with a piece of program code, thereby increasing the amount of clicks on the advertisement. In addition, since the interface where the display content displayed by the SDK component is located and the interface in the application program where other information is displayed belong to the same level, that is, are all interfaces belonging to the window of the application program, it cannot be ensured that the interface for displaying the display content is located at the uppermost layer of the multiple layers of interfaces included in the window, that is, it cannot be ensured that the display content currently displayed can be effectively presented for viewing, such as a user. For example, when the interface for displaying advertisements is not located at the uppermost interface, the displayed advertisements are likely to be obscured by other interfaces of the application and not effectively presented to the user. This drawback also exists in schemes where information is displayed in pages of a web page.
Currently, there are application scenarios that require information to be displayed in a second application running in a first application. Specifically, the first application may be an application installed and run in the device, for example, may be an application for implementing a chat interaction function. The second application running in the first application may have the following features: the method can be operated in the first application program without downloading and installing in the device. For example, in a first application, the second application may be run in a plug-and-play manner. For example, the second application may be an applet. For example, the first application may be based on the Android programming language and the applet may be based on the Java Script programming language.
As described above, the window of the first application may include a multi-layer interface. The applet running in the first application may have one of the multiple layers of interfaces and may display information on the one layer of interface.
Based on the above, it is desirable to provide a method that can realize information display in the application scenario of the applet as described above, and that has high control over both the security and the effectiveness of the display, so as to ensure the security and the effectiveness of the displayed display content.
Fig. 3 shows a flowchart of a method for displaying information according to an embodiment of the present disclosure. The method may be performed by a first application and used to enable display of information, such as advertisements, in a second application. The first application may control the security and validity of the display. For example, the first application may be an application for implementing a chat interaction function as described above, and the second application may be an applet running in the first application as described above. Hereinafter, the method according to the embodiment of the present disclosure will be described in detail taking an example of displaying advertisements in an applet. It should be noted that the second application may be any program running in the first application, such as a mini-game, and the information may be other display contents, such as a notification message, and the like, which is not limited herein.
As shown in fig. 3, first, in step S301, display data is acquired from a second application program. The display data may provide display content to be displayed. For example, the display data may directly comprise display content provided by an applet, such as an advertisement, in particular a picture or video type. For another example, the display data may also provide a Uniform Resource Locator (URL) corresponding to the display content such that the display content may be downloaded over a network using the URL of the display content.
Next, at step S302, a second interface is created that is located above the first interface created by the second application. For clarity of description herein, the first interface created by the second application may be referred to as a base interface, and information displayed on the base interface may be referred to as base information. For example, the first interface may be a base interface that is an applet of a second application, and the second interface may be a new interface created by the first application for displaying advertisements, and located above the base interface.
According to an embodiment of the present disclosure, the creating the second interface located above the first interface may include: a second interface is created over the first interface using a native control of a programming language corresponding to the first application. For example, step S302 shown in fig. 3 above may be implemented with a native control corresponding to the programming language of the first application.
For example, in the case that the application is based on the Android programming language, the above step S302 may be implemented by using a native control of the Android programming language. Specifically, the native control of the Android programming language may include a Button (Button), a Text interface (Text View), a picture interface (Image View), and the like, for implementing a function corresponding to the control.
In particular, where the display content is an advertisement, a component for displaying the advertisement may be built based on the native controls of the Android programming language as described above, the component being run by the first application. The first application may also provide a corresponding interface, for example, which may be invoked by the applet to cause the first application to run the component for displaying advertisements, thereby enabling the step of creating a second interface located above the applet's underlying interface. The applet may also provide display data for providing advertising content and display location, among other data. Thus, the first application may implement the functionality of creating a second interface located above the base interface by running components built from native controls, and displaying advertisements on the second interface.
Next, in step S303, display content provided by display data is displayed on the second interface based on the display data. According to embodiments of the present disclosure, the first interface and the second interface are independent of each other, or may be referred to as being separate from each other. Further, the created second interface is located above the first interface, whereby the display content displayed on the second interface is located above the display content displayed on the first interface. The second interface above the first interface is independent of the first interface, so that the display content displayed on the second interface can be free from the shielding of the first interface, and the effectiveness of the display content can be ensured.
According to an embodiment of the present disclosure, the display on the second interface is controlled by the first application program, and in this regard, will be described in detail later.
In some embodiments according to the present disclosure, the display content may be a picture type, i.e., the display content to be displayed is a picture. In this case, the display data may also provide a display position. For example, the display data may include data such as coordinates or the like corresponding to a display position. The creating of the second interface located above the first interface may be implemented as: a second interface is created over the first interface based on the display position. In other words, the second interface may correspond to a rectangular region having an area smaller than that of the base interface, and the rectangular region may be created above the base interface based on the display position, for example, the display position may correspond to an upper portion, a middle portion, or a lower portion of the base interface, or the like.
In other embodiments according to the present disclosure, the display content may be of a video type, i.e. the display content to be displayed is video. In some examples, a rectangular region having an area smaller than the base interface of the application may be created above the base interface and the video may be displayed in the rectangular region. In other examples, a rectangular region having an area equal to the base interface may also be created for displaying the video, in other words, the displayed video overlays the base interface. The display data may also provide a display location. For example, the display data may include data such as coordinates or the like corresponding to a display position.
In other embodiments as described above, the display data may further provide display content of a picture type and a display position thereof, and the method for displaying information may further include: and creating a third interface positioned above the second interface based on the display position, and displaying the display content of the picture type on the third interface. For example, in the case where the display content is of a video type, a second interface located above the base interface may be created to display the video. In addition, a third interface may be created above the second interface to display information, which may be, for example, of the same type as the picture type, i.e., the type corresponding to the picture. In other words, in a method according to the present disclosure, a new third interface may be created over the second interface of the displayed video to display a picture.
It should be noted that the picture type is a type corresponding to a picture and the video type is a type corresponding to a video are only exemplary. The above method for displaying contents of the picture type may also be applied to displaying contents of a video type, and the above method for displaying contents of the video type may also be applied to displaying contents of a picture type. Alternatively, the display content may have other types than the picture type and the video type, such as text, buttons, and the like.
As shown in fig. 3, the method for displaying information according to an embodiment of the present disclosure may further include step S304 of acquiring display parameters for displaying the display content on the second interface based on the second application program, and analyzing the validity of the display based on the display parameters. For example, corresponding rules may be formulated for analyzing the validity of the display based on the acquired display parameters. For example, in an application scenario in which an advertisement is displayed, based on the display parameters, the effectiveness of displaying the advertisement may be analyzed.
According to some embodiments of the disclosure, the display parameter may include a display duration, and the analyzing the validity of the display based on the display parameter includes: and determining that the display is invalid under the condition that the display duration is smaller than a time threshold. For example, the time threshold may be specifically set according to an actual application scenario. In this embodiment, the validity of the display may be analyzed based on the acquired display duration. For example, in a scene in which an advertisement is displayed, the time threshold may be set to 0.1 seconds, and the acquired advertisement whose display duration is less than 0.1 seconds may be determined as invalid advertisement display.
According to other embodiments of the present disclosure, the display parameters may also include a runtime of the first application program and a time of displaying the display content, and analyzing the validity of the display based on the display parameters includes: and determining that the display is invalid in the case that the running time of the first application program is less than the time of displaying the display content. In this embodiment, it may be determined that the display is invalid, assuming that the first application is acquired to have a running time of 3 hours on a certain day and the total duration of acquiring the display content displayed in the second application is 10 hours.
According to further embodiments of the present disclosure, the display parameters include a type of the second application and a type of display content, and the analyzing the validity of the display based on the display parameters includes: in the event that the type of the second application is different from the type of the display content, the display is determined to be invalid. In this embodiment, the display content may be analyzed based on the type of the display content to ensure the security of the display content, such as to mask the display content with a tendency to violence. Further, assuming that the type of the acquired display content is a cosmetic advertisement and the type of the acquired second application is a mini-game, since the type of the second application is different from the type of the display content, it may also be analytically determined that the display of the cosmetic advertisement may be invalid. In other words, the user of the mini-game may not be interested in the presentation of the cosmetic advertisement.
Further, as an example, the display parameters may also include other data, such as a number of displays, and the method may further include analyzing the validity of the display based on the obtained number of displays. For example, a display in which the number of display times per day in the second application is more than 10000 may be determined as an invalid display.
The above has been given with respect to an example of analyzing the validity of a display based on display parameters, it should be noted that other rules than those given in the above examples may also be formulated to analyze the validity of the display, which is not exemplified here.
As described above, in an embodiment according to the present disclosure, the display on the second interface is controlled by the first application program. In other words, the display on the second interface may not be controlled by the second application. For example, in displaying advertisements using the method according to the present disclosure, an applet as a second application only provides data including display contents, display positions, etc., but cannot control the displaying process, nor operate the created second interface for displaying the display contents. That is, the applet is isolated from the second interface of the created display information. For example, the applet cannot interrupt or shut down the display. Based on this, the cheating behavior of the applet itself on the displayed advertisement can be avoided, for example, by a large number of repeated clicks to increase the advertisement play amount.
In the above embodiment in which the creation of the second interface above the first interface is implemented with a native control corresponding to the programming language of the first application, since the native control is based on the programming language corresponding to the first application and the applet running in the first application is based on the Java Script programming language, the applet cannot operate on the second interface created by the native control and is only used to provide data including, for example, display content, display location, etc., whereby advertisements displayed on the created second interface can mask false click behavior from the applet, further guaranteeing the effectiveness of the advertisements.
As described above, it is possible with the method according to the present disclosure to determine the validity of the display by analyzing the acquired display parameters after displaying the display content. In addition, the security of the display content can also be determined by analyzing the display content provided by the applet. Thus, based on the method of the present disclosure, control of the effectiveness and safety of the display may be enhanced.
Fig. 4A shows a flowchart of a method of displaying a picture according to an embodiment of the present disclosure, and fig. 4B shows a schematic diagram of a picture displayed according to a method of an embodiment of the present disclosure. Hereinafter, a process of implementing the method of displaying a picture according to the present disclosure will be described in detail with reference to fig. 4A and 4B, taking an advertisement of a picture type displayed in an applet as an example.
As shown in fig. 4A, first, in step S401, a developer may create an applet based on the Java Script programming language. It should be noted that the above step S401 of creating an applet is not an essential step, and the applet may also already exist in the first application. In step S402, the applet may call an interface, which may be, for example, the interface built based on native controls of the Android programming language as described above. The interface may be invoked by the applet to cause the first application to run the components described above. The components run by the first application may be used to implement the following steps.
Next, in step S403, display data is acquired, which may be provided by an applet, for example. In step S404, display content may be acquired according to the display data. For example, the display data may provide a uniform resource locator (url) corresponding to the picture, and the first application may download the picture based on the url. Alternatively, the pictures may also be stored in a local database of the applet, i.e. the display data may directly provide the locally stored pictures for display. In the application scenario where the second application program is a mini-game, the mini-game may also provide display content accordingly according to the game scenario of the mini-game. For example, in a game scenario where a game accessory (such as an energy replenishment pack) needs to be acquired, the mini-game may provide display content for acquiring the game accessory, which may then be provided after the display content is displayed. For another example, the mini-game may also provide the user who uses the mini-game for the first time with display content corresponding to the basic operational knowledge of the game.
Next, in step S405, the first application program may create a second interface located above the applet' S basic interface based on the display position included in the data. The second interface is not obscured by the base interface. Next, in step S406, the picture is added to the second interface and displayed. As described above, the applet cannot operate on the picture displayed on the second interface itself, i.e., the second interface is isolated from the applet, thereby avoiding false advertisement click through operation of the displayed advertisement by the applet developer.
As shown in fig. 4B, 410 may correspond to an initial second interface created by the first application program, which may represent an interface created by step S405 and to which display content is not added. For example, a first application may implement creating a second interface over the applet's base interface by running the component. In the second interface, for example, a display content of a picture type, a display content of a text type, or a button for providing a download function may be displayed. 420 in fig. 4B may correspond to the display effect after step S406 is performed, that is, the first application adds the display content acquired from the applet in the created second interface.
Optionally, as shown in fig. 4A, after step S406, step S407 may be further included to obtain a display parameter. Based on the display parameters, the effectiveness of the display, etc., may be analyzed, for example, based on the display duration of the advertisement, whether the advertisement is effectively presented may be analyzed. For example, an advertisement having a display duration less than 0.1 seconds may be determined to be an invalid advertisement presentation.
Fig. 5A shows a flowchart of a method of displaying video according to an embodiment of the present disclosure, and fig. 5B shows a schematic diagram of a video displayed according to a method of an embodiment of the present disclosure. In the following, a process of implementing the method according to the present disclosure to display video will be described with reference to fig. 5A and 5B, taking an example of displaying advertisements in the applet. It should be noted that some of the steps shown in fig. 5A are similar in function to those shown in fig. 4A, and will not be described in detail herein.
As shown in fig. 5A, first, in step S501, a developer may create an applet. In step S502, an interface is called. Next, in step S503, data is acquired, for example, display data may be provided by an applet. In step S504, display content may be acquired according to the display data. For example, the display data may provide a uniform resource locator (url) corresponding to the video, and the first application may download the video based on the url. Alternatively, the video may also be stored in a local database of the applet, i.e. the display data may directly provide locally stored video for display.
Next, in step S505, in response to the applet invoking the interface, the first application may run the component created, for example, by the native control, to create a second interface located above the applet' S base interface, the display content displayed on the second interface being unobstructed by the base interface. For example, the area of the second interface may be equal to the area of the base interface. For example, the second interface may display the video full screen.
Next, in step S506, the video is added to the second interface and displayed. As described above, the applet cannot operate on the video displayed on the second interface, i.e., the second interface is isolated from the applet, so that it is possible to avoid a developer of the applet from obtaining a false advertisement click through operation of the displayed advertisement.
Optionally, as shown in fig. 5A, the method may further include steps S508-S511 for displaying a picture over the video. Specifically, in step S508, data is acquired. The data may include a picture to be displayed and a display location. In step S509, the picture is downloaded according to the data. In step S510, the first application may create a third interface located above the second interface according to the display position, and in step S511, add the picture to the third interface and display it. The above procedure of creating the third interface for displaying the picture over the second interface for displaying the video is similar to the procedure as shown in fig. 4A, and will not be repeated here.
As shown in fig. 5B, a video is presented over the applet's base interface, the video being located in the created second interface. And a third interface is also created at the left lower part of the video and is used for displaying pictures, and text type display contents and buttons are also displayed on the third interface. Optionally, the first application may further add a close button for closing the video and a mute button for closing the sound of the video at the upper right of the second interface.
Optionally, as shown in fig. 5A, step S507 may be further included after step S506, and step S512 may be further included after step S511, for acquiring the display parameter. Based on the display parameters, the effectiveness of the display, etc., may be analyzed, for example, based on the display duration of the advertisement or video, whether the advertisement is effectively presented may be analyzed.
It should be noted that the flowcharts shown in fig. 4A-4B and the schematic diagrams of the display effects in fig. 5A-5B above are merely exemplary and do not constitute a limitation of the present disclosure.
As described above, a method for displaying information according to the present disclosure may acquire display data from a second application program, create a second interface located above a first interface created by the second application program, and display content provided by the display data on the second interface based on the display data, wherein the display on the second interface is not controlled by the second application program. The first interface may be the base interface of the applet and the second interface may be the interface created to display information. According to the method, the interface for displaying information is isolated from the applet by creating the interface for displaying information above the applet base interface, so that the display on the second interface is not controlled by the second application program, and the safety and effectiveness of the display are ensured.
According to another aspect of the present disclosure, there is also provided an apparatus for displaying information. Fig. 6 shows a schematic block diagram of an apparatus for displaying information according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus 1000 for displaying information may include an acquisition unit 1010, a creation unit 1020, and a display unit 1030.
According to some embodiments of the present disclosure, the obtaining unit 1010 may be configured to obtain display data from running a second application in the first application. The creation unit 1020 may be configured to create a second interface located above a first interface created by the second application. The display unit 1030 may be configured to display content provided by the display data on the second interface based on the display data. According to an embodiment of the present disclosure, the display on the second interface is controlled by the first application. The second interface located above the first interface and the first interface are separated from each other, so that display content displayed on the second interface is not blocked by display content displayed on the first interface.
According to some embodiments of the present disclosure, in a case where the display content is of a picture type, the display data further provides a display position, and the creation unit 1020 creates a second interface above the first interface based on the display position.
According to some embodiments of the present disclosure, in a case where the display content is of a video type, the display data further provides a display content of a picture type and a display position thereof, the creation unit 1020 is further configured to create a third interface located above the second interface based on the display position, and the display unit 1030 is further configured to display the display content of the picture type on the third interface.
According to some embodiments of the present disclosure, the obtaining unit 1010 may be further configured to obtain, based on the second application program, a display parameter for displaying the display content on the second interface, and the analyzing unit is configured to analyze validity of the display based on the display parameter.
According to some embodiments of the disclosure, the display parameter includes a display duration, and the analysis unit determines that the display is invalid if the display duration is less than a time threshold.
According to some embodiments of the disclosure, the display parameter includes a runtime of a first application and a time to display the display content, and the analysis unit determines that the display is invalid if the runtime of the first application is less than the time to display the display content.
According to some embodiments of the disclosure, the display parameter includes a type of the second application and a type of display content, and the analysis unit determines that the display is invalid in a case where the type of the second application is different from the type of display content.
According to an embodiment of the present disclosure, the apparatus may further comprise an analysis unit (not shown) configured to analyze the validity of the display based on the display parameters.
According to an embodiment of the present disclosure, the creating unit 1020 creates a second interface located above the first interface using a native control corresponding to a programming language of the first application.
According to yet another aspect of the present disclosure, there is also provided an apparatus for displaying information. Fig. 7 shows a schematic diagram of an apparatus 2000 for displaying information according to an embodiment of the present disclosure.
As shown in fig. 7, the device 2000 may include one or more processors 2010, and one or more memories 2020. Wherein said memory 2020 has stored therein a computer executable program which, when executed by said one or more processors 2010, can perform a method for displaying information as described above.
Methods or apparatus according to embodiments of the present disclosure may also be implemented by way of the architecture of computing device 3000 shown in fig. 8. As shown in fig. 8, computing device 3000 may include a bus 3010, one or more CPUs 3020, a Read Only Memory (ROM) 3030, a Random Access Memory (RAM) 3040, a communication port 3050 connected to a network, an input/output component 3060, a hard disk 3070, and the like. A storage device in the computing device 3000, such as a ROM 3030 or hard disk 3070, may store various data or files for processing and/or communication use of the methods for displaying information provided by the present disclosure and program instructions executed by the CPU. The computing device 3000 may also include a user interface 3080. Of course, the architecture shown in FIG. 8 is merely exemplary, and one or more components of the computing device shown in FIG. 8 may be omitted as may be practical in implementing different devices.
According to yet another aspect of the present disclosure, a computer-readable storage medium is also provided. Fig. 9 shows a schematic diagram 4000 of a storage medium according to the present disclosure.
As shown in fig. 9, computer-readable instructions 4010 are stored on a computer storage medium 4020. The method for displaying information according to the embodiments of the present disclosure described with reference to the above drawings may be performed when the computer readable instructions 4010 are executed by a processor. The computer-readable storage medium includes, but is not limited to, for example, volatile memory and/or nonvolatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like.
Those skilled in the art will appreciate that various modifications and improvements can be made to the disclosure. For example, the various devices or components described above may be implemented in hardware, or may be implemented in software, firmware, or a combination of some or all of the three.
Further, while the present disclosure makes various references to certain elements in a system according to embodiments of the present disclosure, any number of different elements may be used and run on a client and/or server. The units are merely illustrative and different aspects of the systems and methods may use different units.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the methods described above may be implemented by a program that instructs associated hardware, and the program may be stored on a computer readable storage medium such as a read-only memory, a magnetic or optical disk, etc. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiment may be implemented in the form of hardware, or may be implemented in the form of a software functional module. The present disclosure is not limited to any specific form of combination of hardware and software.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The foregoing is illustrative of the present disclosure and is not to be construed as limiting thereof. Although a few exemplary embodiments of this disclosure have been described, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of this disclosure. Accordingly, all such modifications are intended to be included within the scope of this disclosure as defined in the claims. It is to be understood that the foregoing is illustrative of the present disclosure and is not to be construed as limited to the specific embodiments disclosed, and that modifications to the disclosed embodiments, as well as other embodiments, are intended to be included within the scope of the appended claims. The disclosure is defined by the claims and their equivalents.

Claims (15)

1. A method for displaying information, comprising the steps performed by a first application of:
obtaining display data from a second application running in the first application;
creating a second interface located above a first interface created by the second application; and
displaying display content provided by the display data on the second interface based on the display data,
wherein the display on the second interface is controlled by the first application.
2. The method of claim 1, wherein, in the case where the display content is a picture type, the display data further provides a display position,
the creating a second interface located above the first interface includes: a second interface is created over the first interface based on the display position.
3. The method of claim 1, wherein, in the case where the display content is of a video type, the display data further provides a display content of a picture type and a display position thereof, the method further comprising:
and creating a third interface positioned above the second interface based on the display position, and displaying the display content of the picture type on the third interface.
4. The method of claim 1, further comprising:
acquiring display parameters for displaying the display content on the second interface based on the second application program, and
and analyzing the validity of the display based on the display parameters.
5. The method of claim 4, wherein the display parameter comprises a display duration, and the analyzing the validity of the display based on the display parameter comprises: and determining that the display is invalid under the condition that the display duration is smaller than a time threshold.
6. The method of claim 4, wherein the display parameters include a runtime of a first application and a time at which the display content is displayed, the analyzing the validity of the display based on the display parameters comprising: and determining that the display is invalid in the case that the running time of the first application program is less than the time of displaying the display content.
7. The method of claim 4, wherein the display parameters include a type of the second application and a type of display content, and analyzing the validity of the display based on the display parameters includes: in the event that the type of the second application is different from the type of the display content, the display is determined to be invalid.
8. The method of claim 1, wherein creating a second interface located above the first interface comprises: a second interface is created over the first interface using a native control of a programming language corresponding to the first application.
9. An apparatus for displaying information, comprising:
an acquisition unit configured to acquire display data from a second application running in the first application;
a creation unit configured to create a second interface located above a first interface created by the second application; and
a display unit configured to display content provided by the display data on the second interface based on the display data,
wherein the display on the second interface is controlled by the first application.
10. The apparatus according to claim 9, wherein in a case where the display content is a picture type, the display data further provides a display position, the creation unit creates a second interface above the first interface based on the display position.
11. The apparatus according to claim 9, wherein in case the display content is of a video type, the display data further provides a display content of a picture type and a display position thereof, the creation unit is further configured to create a third interface located above the second interface based on the display position, and the display unit is further configured to display the display content of the picture type on the third interface.
12. The apparatus according to claim 9, the acquisition unit further configured to acquire display parameters for displaying the display content on the second interface based on the second application,
the apparatus further comprises an analysis unit configured to analyze the validity of the display based on the display parameters.
13. The apparatus of claim 12, wherein,
the display parameters comprise display duration, and the analysis unit determines that the display is invalid when the display duration is smaller than a time threshold;
the display parameters comprise the running time of a first application program and the time for displaying the display content, and the analysis unit determines that the display is invalid when the running time of the first application program is less than the time for displaying the display content; and
the display parameter includes a type of the second application program and a type of display content, and the analysis unit determines that the display is invalid in a case where the type of the second application program is different from the type of display content.
14. An apparatus for displaying information, comprising:
one or more processors; and
one or more memories, wherein the memories have stored therein a computer executable program that, when executed by the one or more processors, performs the method for displaying information of any of claims 1-8.
15. A computer readable storage medium having stored thereon instructions which, when executed by a processor, cause the processor to perform the method for displaying information according to any of claims 1-8.
CN201910360725.4A 2019-04-30 2019-04-30 Method, apparatus, device and computer readable storage medium for displaying information Active CN111949339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910360725.4A CN111949339B (en) 2019-04-30 2019-04-30 Method, apparatus, device and computer readable storage medium for displaying information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910360725.4A CN111949339B (en) 2019-04-30 2019-04-30 Method, apparatus, device and computer readable storage medium for displaying information

Publications (2)

Publication Number Publication Date
CN111949339A CN111949339A (en) 2020-11-17
CN111949339B true CN111949339B (en) 2023-10-20

Family

ID=73335416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910360725.4A Active CN111949339B (en) 2019-04-30 2019-04-30 Method, apparatus, device and computer readable storage medium for displaying information

Country Status (1)

Country Link
CN (1) CN111949339B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834440A (en) * 2014-02-10 2015-08-12 联想(北京)有限公司 Interface display method and electronic equipment
CN107423012A (en) * 2017-03-31 2017-12-01 掌阅科技股份有限公司 A kind of data display method, device and electronic equipment
CN107861759A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Window control method, apparatus, terminal device and storage medium
CN108287647A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of application operation method and device
CN109358788A (en) * 2018-10-19 2019-02-19 北京小米移动软件有限公司 Interface display method, device and terminal
CN109558182A (en) * 2018-11-29 2019-04-02 掌阅科技股份有限公司 Information popularization method, electronic equipment and computer storage medium based on plug-in unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8521966B2 (en) * 2007-11-16 2013-08-27 Vmware, Inc. VM inter-process communications
US9996246B2 (en) * 2013-03-27 2018-06-12 Samsung Electronics Co., Ltd. Device and method for displaying execution result of application

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834440A (en) * 2014-02-10 2015-08-12 联想(北京)有限公司 Interface display method and electronic equipment
CN108287647A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 A kind of application operation method and device
CN107423012A (en) * 2017-03-31 2017-12-01 掌阅科技股份有限公司 A kind of data display method, device and electronic equipment
CN107861759A (en) * 2017-11-21 2018-03-30 广东欧珀移动通信有限公司 Window control method, apparatus, terminal device and storage medium
CN109358788A (en) * 2018-10-19 2019-02-19 北京小米移动软件有限公司 Interface display method, device and terminal
CN109558182A (en) * 2018-11-29 2019-04-02 掌阅科技股份有限公司 Information popularization method, electronic equipment and computer storage medium based on plug-in unit

Also Published As

Publication number Publication date
CN111949339A (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN111552473B (en) Application processing method, device and equipment
US20210117081A1 (en) Presenting Buttons for Controlling an Application
CN113590995B (en) Page display method, device and storage medium
US20170160883A1 (en) Implementing application jumps
WO2011163655A2 (en) Systems and methods for dynamic content distribution
CN106155654B (en) Method and device for shielding webpage operation and electronic equipment
CN111796799B (en) Sub-application development method and device, computer equipment and storage medium
EP3161598A1 (en) Light dismiss manager
CN112764871B (en) Data processing method, data processing device, computer equipment and readable storage medium
US20140245227A1 (en) Method and terminal device for displaying dynamic icon
CN113902491A (en) Resource acquisition information display method and device, electronic equipment and storage medium
TW201826109A (en) Method and apparatus for page presentation
WO2017095955A1 (en) Implementing application jumps
CN113411664A (en) Video processing method and device based on sub-application and computer equipment
US7584411B1 (en) Methods and apparatus to identify graphical elements
CN113891140A (en) Material editing method, device, equipment and storage medium
CN111752535A (en) Web page development method and device, computer equipment and readable storage medium
CN111078325B (en) Application program running method and device, electronic equipment and storage medium
US9870116B1 (en) Controlling actions for browser extensions
CN109948088B (en) Advertisement blocking method and system
WO2016118142A1 (en) In-line editor insertion
CN111949339B (en) Method, apparatus, device and computer readable storage medium for displaying information
CN111008050B (en) Page task execution method, device, terminal and storage medium
CN108268298B (en) Desktop icon generation method and device, storage medium and electronic equipment
US20220192559A1 (en) Electronic device, method of determining mental state of user in consideration of external mental level according to input behavior of user, and computer program

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
GR01 Patent grant
GR01 Patent grant