CN112383663B - Display method and device - Google Patents

Display method and device Download PDF

Info

Publication number
CN112383663B
CN112383663B CN202010983358.6A CN202010983358A CN112383663B CN 112383663 B CN112383663 B CN 112383663B CN 202010983358 A CN202010983358 A CN 202010983358A CN 112383663 B CN112383663 B CN 112383663B
Authority
CN
China
Prior art keywords
widget
server
electronic device
user
authentication credential
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
CN202010983358.6A
Other languages
Chinese (zh)
Other versions
CN112383663A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority claimed from CN201910430945.XA external-priority patent/CN111917916B/en
Publication of CN112383663A publication Critical patent/CN112383663A/en
Application granted granted Critical
Publication of CN112383663B publication Critical patent/CN112383663B/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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Abstract

The application relates to the field of terminals, and discloses a display method and display equipment, which are used for improving user experience of a user using a widget. The method comprises the following steps: the electronic equipment receives the operation of a user, and the operation is used for controlling and displaying a second user interface comprising the widget; sending a first authentication acquisition request to a first server, wherein the first authentication acquisition request comprises first identity authentication credentials distributed by the first server, the first authentication acquisition request is used for acquiring second identity authentication credentials for accessing a second server, and the first identity authentication credentials are associated with the second identity authentication credentials; after receiving a second identity authentication credential sent by a first server, the electronic device sends a first content obtaining request including the second identity authentication credential to a second server, wherein the first content obtaining request is used for obtaining content information to be displayed in the widget; and receiving the content information sent by the second server, and displaying a second user interface comprising the widget. The experience of the user in using the widget is improved.

Description

Display method and device
The present application claims priority from the chinese patent office filed on 2019, 08/05/78, chinese patent application No. 201910380047.8, the entire contents of which are incorporated herein by reference.
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a display method and display equipment.
Background
With the continuous development of communication technology, electronic devices (such as smart phones) are becoming more popular and diversified, and usability and friendliness of human-computer interaction interfaces for interaction between electronic devices and users are getting more and more concerned. Therefore, widgets (widgets) are becoming more and more widely used, one widget is a piece of executable and rendered page script embedded in other Applications (APPs), and the widget is loaded and run by other APPs, and the widgets may be, for example: clock widget, weather widget, search widget, stock widget, ball widget, and the like. widgets are generally small, very convenient to embed and fast to operate, so widgets are widely applied to various electronic devices such as mobile phones, televisions, video devices and the like, and have diversified forms such as slides, videos, maps, news, mini games and the like. The widget directly shows the service or content most concerned by the user to the user.
Based on this, a method for displaying widget content is needed to be provided, so that a variety of content is displayed to a user through the widget, and the experience of the user in using the widget is improved.
Disclosure of Invention
The embodiment of the application provides a display method and display equipment, which are used for providing a display method and improving the experience of a user in using a widget.
In a first aspect, an embodiment of the present application provides a display method, where the method includes:
the method comprises the steps that the electronic equipment displays a first user interface, and first operation of a user is received on the first user interface, wherein the first operation is used for controlling the electronic equipment to display a second user interface which comprises a widget; the electronic device responds to a first operation of a user, and sends a first authentication acquisition request to a first server, wherein the first authentication acquisition request comprises a first identity authentication credential distributed to the electronic device by the first server, and the first authentication acquisition request is used for acquiring a second identity authentication credential for accessing a second server; and the second identity authentication credential needing to be acquired is associated with the first identity authentication credential, and the second server is used for serving as a Content Provider (CP) server of the widget. The first server receives a first authentication acquisition request from the electronic device, determines a second authentication credential associated with the first authentication credential according to a pre-stored association relationship between the authentication credential legally allocated to the electronic device by the first server and the authentication credential used for accessing the second server, and transmits the second authentication credential to the electronic device by carrying the second authentication credential in a response of the first authentication acquisition request. After receiving a response of a first authentication acquisition request sent by a first server, the electronic device sends a first content acquisition request to a second server, wherein the first content acquisition request comprises the second identity authentication credential, and the first content acquisition request is used for acquiring content information to be displayed in the widget. The second server receives a first content acquisition request from the electronic equipment; and the second server determines second configuration information corresponding to the second identity authentication credential according to the configuration information corresponding to each identity authentication credential, acquires content information corresponding to the second configuration information, carries the content information in a first acquisition success response of the first content acquisition request, and sends the content information to the electronic equipment. And after receiving a first acquisition success response of the first content acquisition request sent by the second server, the electronic equipment displays a second user interface according to the content information included in the first acquisition success response, wherein the second user interface includes a widget, and the widget displays corresponding content information.
In the embodiment of the application, the electronic device can acquire the second identity authentication credential for accessing the second server from the first server, and then can acquire the resource information of the second server according to the second identity authentication credential, so that the content information displayed in the widget is more diversified, and the experience of a user in using the widget is improved.
In a possible design, after the electronic device displays the second user interface, the electronic device receives, on the second user interface, a second operation of the user on the displayed widget, where the second operation is used to control the electronic device to update content information displayed in the widget; the electronic device sends a second content obtaining request to a second server, wherein the second content obtaining request comprises the second identity authentication credential and operation information of a second operation, and the second content obtaining request is used for obtaining content information corresponding to the operation information of the second operation. The second server receives a second content acquisition request from the electronic equipment; and after determining that the second identity authentication credential is valid, the second server executes the operation information, carries the content information corresponding to the operation information in a second acquisition success response of the second content acquisition request, and sends the second content acquisition success response to the electronic device. And after receiving a second acquisition success response of the second content acquisition request sent by the second server, the electronic device updates the content information displayed in the widget according to the content information included in the second acquisition success response.
In the embodiment of the application, the user further interacts on the widget, so that the experience of the user in using the widget is improved.
In a possible design, the first identity authentication credential of the electronic device is assigned to the first user account by the first server when the electronic device registers or logs in according to the first user account. The electronic device displaying a third user interface; the third user interface includes a user account input area; the electronic equipment responds to an operation completed by a first user account input by a user in the user account input area, and sends a first request to the first server, wherein the first request is used for the electronic equipment to log in or register the first server, and the first request comprises the first user account; the electronic device receives a response of a first request sent by the first server, wherein the response of the first request comprises the first identity authentication credential, and the first identity authentication credential is allocated to the electronic device by the first server according to the first user account.
In a possible design, if the second authentication credential included in the second content obtaining request is invalid, the second server sends a content obtaining failure response of the second content obtaining request to the electronic device, and the electronic device receives the content obtaining failure response sent by the second server, then sends a second authentication obtaining request to the first server, where the second authentication obtaining request includes the first authentication credential, and the second authentication obtaining request is used to obtain a second authentication credential for accessing the second server again; the first server receives a second authentication acquisition request sent by the electronic device, and according to the pre-stored association relationship between the authentication credential legally distributed to the electronic device by the first server and the authentication credential used for accessing the second server, the first server re-determines the second authentication credential associated with the first authentication credential, and carries the re-determined second authentication credential in a response of the second authentication acquisition request to send the response to the electronic device. And after receiving a response of the second authentication acquisition request sent by the first server, the electronic device resends the second content acquisition request to the second server, wherein the response of the second content acquisition request comprises a redistributed second identity authentication credential, and the resent second content acquisition request comprises the redistributed second identity authentication credential and operation information of the second operation.
In a possible design, the first authentication obtaining request or the second authentication request further includes an identifier of the second server; when the first server determines the second authentication credential according to the first authentication credential and the pre-stored association relationship between the authentication credential allocated to the electronic device for the first server and the authentication credential used for accessing the second server, the first server may determine the authentication credential associated with the first authentication credential according to the first authentication credential and the pre-stored association relationship between the authentication credential allocated to the electronic device for the first server and the authentication credential used for accessing the second server;
the first server determines the second authentication credential from the authentication credentials associated with the first authentication credential based on the identity of the second server.
In the embodiment of the application, the first server sends the second identity authentication credential required by the electronic device to the electronic device, so that the waste of transmission resources is avoided.
In a second aspect, an apparatus provided in an embodiment of the present application includes: one or more processors and memory, wherein the memory has stored therein program instructions that, when executed by the apparatus, implement the various aspects of the embodiments of the present application and any of the possible design approaches to which the various aspects pertain.
In a third aspect, a chip provided in this embodiment of the present application is coupled to a memory in a device, so that the chip invokes, when running, program instructions stored in the memory to implement the method according to any one of the above aspects and possible designs related to the aspects of this embodiment of the present application.
In a fourth aspect, a computer storage medium of an embodiment of the present application stores program instructions that, when executed on an electronic device, cause the device to perform the various aspects of the embodiments of the present application and any of the designed methods related to the various aspects.
In a fifth aspect, a computer program product according to embodiments of the present application, when run on an electronic device, causes the electronic device to perform a method that implements the above aspects of embodiments of the present application and any possible design related to the aspects.
In a sixth aspect, an embodiment of the present application provides a system for content display, where the system includes an electronic device, a first server, and a second server, where the electronic device performs the method according to any one of the possible designs of the first aspect and the first aspect.
In addition, the technical effects brought by any one of the possible design manners in the second aspect to the sixth aspect can be referred to the technical effects brought by different design manners in the association of the method part, and are not described herein again.
Drawings
Fig. 1 is an electronic device provided in an embodiment of the present application;
FIG. 2A is a schematic diagram of a user interface provided in an embodiment of the present application;
FIG. 2B is a schematic diagram of a user interface provided in an embodiment of the present application;
FIG. 2C is a schematic illustration of a user interface provided in an embodiment of the present application;
FIG. 2D is a schematic illustration of a user interface provided in an embodiment of the present application;
FIG. 2E is a schematic illustration of a user interface provided in an embodiment of the present application;
FIG. 2F is a schematic illustration of a user interface provided in an embodiment of the present application;
FIG. 2G is a schematic diagram of a user interface provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a content display process provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a content display process provided in an embodiment of the present application;
FIG. 5 is an apparatus provided in an embodiment of the present application;
FIG. 6 is a system diagram of a content display provided in an embodiment of the present application;
fig. 7 is an apparatus provided in an embodiment of the present application.
Detailed Description
It should be understood that the embodiments of the present application refer to a plurality of two or more.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified. Moreover, in the description of the embodiments of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and not for purposes of indicating or implying relative importance, nor for purposes of indicating or implying order.
Some terms of the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
1) Widgets, may be referred to as widgets, may also be referred to as widgets, and the like. In the embodiment of the application, the widget can be located on a minus one screen (-1 screen), a main interface or a user interface of an APP. For example, the main interface may be a user interface 200 as in FIG. 2A, the user interface 200 including a weather and time widget 202. For another example, the negative screen may be the user interface 210 in fig. 2A, and the user interface 210 includes a calendar widget212, a smart home 213, and the like. It is to be appreciated that the electronic device may display the user interface 210 in response to a user sliding operation to the right on the user interface 200. For another example, taking APP as a calendar, the user interface of the calendar may be the user interface 220 as in fig. 2B, and the user interface 220 includes a weather widget 222. It will be appreciated that the electronic device may display the user interface 220 in response to user manipulation of a calendar icon on the user interface 200.
It should be noted that, in the embodiment of the present application, the electronic device may set one or more widgets on a certain user interface in response to a certain operation of a user. Such as: according to the method and the device, the clock widget is set on the main interface, so that the electronic equipment can display the current time when the main interface is displayed; for another example, the weather widget is set on the negative screen, so that the electronic device can display the weather forecast of a certain area when displaying the negative screen; for another example, the CPU widget may be set on a user interface of an application, so that the electronic device may display an occupation ratio of the CPU when displaying the user interface of the application. In addition, the widget in the embodiment of the present application may also be a search widget, a stock widget, a ball game widget, and the like.
In the embodiment of the application, the widget may display the content in the form of a card, and may also display the corresponding content in other forms, which is not limited.
2) And the host APP is an APP capable of loading and operating the widget. For example, when a widget is located at a user interface of a first APP, the host APP of the widget is the first APP. For example, if the user interface of the calendar in FIG. 2B includes weather widget222, then the host APP of weather widget222 is the calendar. For another example, when the widget is located in the negative screen, the host APP of the widget is the APP to which the negative screen belongs. Wherein, the APP to which the negative screen belongs can be referred to as the negative screen APP for short. For example, the negative one-screen is the user interface 210 shown in fig. 2A, specifically, the user interface 210 includes a calendar widget212 and an intelligent home widget213, and host APPs of the calendar widget212 and the intelligent home widget213 are both negative one-screen APPs. For another example, when the widget is located on the main interface, the host APP of the widget is the APP to which the main interface belongs, and for example, the APP to which the main interface belongs may be a desktop APP. For example, the main interface is the user interface 200 shown in fig. 2A, the user interface 200 includes a weather and time widget202, and the host APP of the weather and time widget202 is a desktop APP.
It should be noted that, in the embodiment of the present application, the widget content and the host APP content may be provided by the same Content Provider (CP) or may be provided by different content providers. For example, when the widget and the host APP are developed by the same vendor, the widget content and the host APP content are provided by the same content provider. For another example, when the widget and the host APP are developed by different vendors, the widget content and the host APP content are provided by different content providers.
3) Native APP, which may include the contents of a corresponding widget. For example, native APP of a WeChat widget is WeChat. As another example, the native APP of the pay treasure widget is a pay treasure. As another example, the native APP of a weather widget is weather. It should be noted that, for a certain widget, the native APP of the widget and the host APP of the widget may be the same or different, and this is not limited. For example, the host APP of the payment widget may be a negative one-screen APP, and the native APP of the payment widget is the payment widget. For another example, the host APP of the weather widget is a desktop APP, and the native APP of the weather widget is weather. For another example, both the host APP and the native APP of a calendar widget are calendars.
4) The authentication credential may also be referred to as an "authentication credential" or an "authentication credential" for authenticating the validity of the electronic device. For example, the identity authentication credential may be used to determine whether the electronic device has the resource access and/or resource usage right, so as to prevent an attacker from impersonating a legitimate user to obtain the resource access right, and ensure the security of the system and the data.
The following describes electronic devices, Graphical User Interfaces (GUIs) for such electronic devices, and embodiments for using such electronic devices. Hereinafter, the GUI will be simply referred to as a user interface for description.
The embodiment of the application can be applied to the electronic equipment supporting the widget function. The electronic device in the embodiment of the present application may also be referred to as a terminal, a terminal device, a user equipment, and the like. For example, the electronic device according to the embodiment of the present application may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (e.g., a smart watch) with a wireless communication function, an in-vehicle device, and the like. Exemplary embodiments of the portable electronic device include, but are not limited to, a mount
Figure BDA0002688268050000051
Or other operating system.
It should be understood that the electronic device in the embodiment of the present application generally provides various functions for the user through an application program (e.g., APP) installed by the electronic device. For example, the application program may be a system application or a third party application. Such as drawing, presentation, word processing, gaming, telephony, video player, music player, email, instant messaging, photo management, camera, browser, calendar, clock, payment, application marketplace, desktop, minus one screen, and health management applications. For example, the electronic device 100 in the embodiment of the present application may run a plurality of applications simultaneously.
It should be noted that, in the embodiment of the present application, the host APP is a certain application installed on the electronic device, for example, the host APP may be a system application installed on the electronic device, and may also be a third-party application installed on the electronic device, and the like, which is not limited herein. It should be further noted that, in this embodiment of the application, when the electronic device displays a certain widget on a certain host APP, the native APP of the widget may be installed on the electronic device, or may not be installed on the electronic device, which is not limited to this.
Exemplarily, as shown in fig. 1, the electronic device is a schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application. Specifically, as shown in fig. 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, an audio module 170, a speaker 170A, a microphone 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a SIM card interface 160, and the like. Wherein the sensor module 180 may include a pressure sensor 181 and a touch sensor 182. In other embodiments, the sensor module 180 further includes one or more of a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, and the like.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
In this embodiment, the display screen 194 may be an integrated flexible display screen, or may be a spliced display screen formed by two rigid screens and a flexible screen located between the two rigid screens.
The cameras 193 (front camera or rear camera, or one camera may be both front camera and rear camera) are used to capture still images or video. In general, the camera 193 may include a photosensitive element such as a lens group including a plurality of lenses (convex lenses or concave lenses) for collecting an optical signal reflected by an object to be photographed and transferring the collected optical signal to an image sensor, and an image sensor. And the image sensor generates an original image of the object to be shot according to the optical signal.
The internal memory 121 may include a program storage area and a data storage area. The storage program area may store program instructions such as an operating system, an application program (e.g., a camera, a WeChat, etc.), and the like. The data storage area may store data created during the use of the electronic device 100 (e.g., images, videos, content in the user interface of APP, content in widget), and the like. For example, the internal memory 121 may be used to store widget-related information, host APP-related information, and the like. It should be noted that, in this application, the memory space in the internal memory 121 for storing the relevant information of the host APP may be referred to as a memory space corresponding to the host APP, a memory space of the host APP, or a storage space of the host APP, and the memory space in the internal memory 121 for storing the relevant information of the widget may be referred to as a memory space corresponding to the widget, a memory space of the widget, or a storage space of the widget. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing program instructions stored in the internal memory 121. For example, the processor 110 may execute the display method of the embodiment of the present application by executing the program instructions in the internal memory 121. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
Of course, the codes of the algorithms provided in the embodiments of the present application may also be stored in the external memory. The external memory interface 120 may be used to connect an external memory card (e.g., a Micro SD card) to extend the memory capability of the electronic device 100. In this case, the processor 110 may execute the code of the algorithm stored in the external memory through the external memory interface 120, thereby performing various functional applications of the electronic device 100 and data processing.
The sensor module 180 includes a pressure sensor 181 for sensing a pressure signal and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 181 may be disposed on the display screen 194. The pressure sensor 181 may be of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like.
The sensor module 180 includes a touch sensor 182, also referred to as a "touch panel". The touch sensor 182 may be disposed on the display screen 194, and the touch sensor 182 and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 182 is used to detect a touch operation applied thereto or nearby. The touch sensor 182 may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display screen 194. In other embodiments, the touch sensor 182 may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 151 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 151 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 151 may receive electromagnetic waves from the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 151 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 151 may be provided in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 151 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 151 or other functional modules, independent of the processor 110.
The wireless communication module 152 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 152 may be one or more devices integrating at least one communication processing module. The wireless communication module 152 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 152 may also receive a signal to be transmitted from the processor 110, frequency-modulate it, amplify it, and convert it into electromagnetic waves via the antenna 2 to radiate it.
In addition, the electronic device 100 may implement an audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. Such as music playing, recording, etc.
The keys 190 may include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic device 100 may receive key 190 inputs, generating key signal inputs related to user settings and function control of the electronic device 100. Electronic device 100 may generate a vibration alert (e.g., an incoming call vibration alert) using motor 191. The indicator 192 in the electronic device 100 may be an indicator light, and may be used to indicate a charging status, a power change, or a message, a missed call, a notification, etc. The SIM card interface 160 in the electronic device 100 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 160 or being pulled out from the SIM card interface 160.
The electronic device 100 may implement display functionality via the GPU, the display screen 194, and the application processor, among other things. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
In other embodiments, processor 110 may also include one or more interfaces. For example, the interface may be a SIM card interface 160. Also for example, the interface may be a USB interface 130. For example, the interface may also be an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, or the like. It is understood that the processor 110 may interface with different modules of the electronic device 100 according to the embodiment of the present application, so that the electronic device 100 can implement different functions. Such as taking a picture, processing, etc. In the embodiment of the present application, the connection method of the interface in the electronic device 100 is not limited.
The SIM card interface 160 may be used to connect a SIM card, among other things. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 160 or being pulled out from the SIM card interface 160. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 160 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 160 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 160 may also be compatible with different types of SIM cards. The SIM card interface 160 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 may also employ esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100. For example, when only one SIM card can be inserted into the SIM card interface 160, the electronic device 100 can access a cellular network through the SIM card inserted into the SIM card interface 160. For another example, when two SIM cards can be inserted into the SIM card interface 160, the electronic device 100 can access a cellular network through the two SIM cards inserted into the SIM card interface 160.
The USB interface 130 is an interface conforming to the USB standard specification. For example, the USB interface 130 may include a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, to transmit data between the electronic device 100 and a peripheral device, or to connect an earphone to play audio through the earphone.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives an input of the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the mobile communication module 151, the wireless communication module 152, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
In some embodiments of the present application, the electronic device 100 shown in fig. 1 may be a portable electronic device, such as a mobile phone, a tablet computer, a wearable device (e.g., a smart watch) with wireless communication function, and the like, that also includes other functions, such as personal digital assistant and/or music player functions. Exemplary embodiments of the portable electronic device include, but are not limited to, a mount
Figure BDA0002688268050000092
Figure BDA0002688268050000091
Or other operating system. The portable electronic device may also be other portable electronic devices such as laptop computers (laptop) with touch sensitive surfaces (e.g., touch panels), etc. It should also be understood that in some other embodiments of the present application, the electronic device 100 may not be a portable electronic device, but may be a desktop computer with a touch-sensitive surface (e.g., a touch panel).
Illustratively, fig. 2A is a schematic diagram of a user interface provided in an embodiment of the present application. Wherein the electronic device 100 displays the user interface through the display screen 194. Specifically, the user interface may be a main interface, a negative screen, or a user interface of an application. For example, the main interface may be the user interface 200 shown in FIG. 2A. As shown, the user interface 200 may include a status bar 201, a time and weather Widget202, and icons for a plurality of applications, e.g., a calendar icon 203, a settings icon 204, etc. The status bar 201 may include the name of the operator (china mobile), the mobile network (e.g. 4G), the time and the remaining power. In some other embodiments of the present application, the status bar 201 may include one or more of a signal strength of a mobile network, a bluetooth icon, a WiFi icon, a screen lock icon, an add-on icon, and the like.
It will also be appreciated that in other embodiments, the user interface 200 may also include a Dock bar. Icons of common applications, such as a telephone icon, a short message icon, a mail icon, a weather icon and the like, can be included in the Dock bar. It should be understood that the user can set icons of common applications in the Dock bar according to the requirement of the user.
In other embodiments, as shown in fig. 2A, electronic device 100 may also include a home screen key 205. The home screen key 205 may be a physical key or a virtual key. The home screen key 205 is used to return a user interface of an application or a user interface such as a minus screen displayed on the display screen 194 to the main interface according to an operation by the user, so that the user can conveniently view the main interface at any time and operate a control (e.g., an icon or the like) on the main interface.
Taking fig. 2A as an example, when the user slides to the right on the user interface 200, the electronic device 100 jumps to the negative one screen in response to the user sliding to the right on the user interface 200, that is, the negative one screen is displayed on the display screen 194. For example, the negative screen may be a user interface 210 as shown in fig. 2A, where the user interface 210 includes a search box 211, and may further include one or more widgets, for example, a calendar widget212 and a smart home widget 213.
As shown in fig. 2B, when the display screen 194 of the electronic device 100 displays the user interface 200, the user interface 220 of the calendar may be displayed in the display screen 194 in response to the touch operation of the user on the calendar icon 203, a specific date may be displayed in the user interface 220 of the calendar, for example, a specific year, month and day is displayed, the user interface 220 may further include a fortune widget221, and the fortune widget221 may display a situation of the same day (2011, 8, month and 12 days), for example, "better". User interface 220 may also include a weather widget222, where widget222 may display weather conditions for the current day (8/12/2011).
As described above, the widget may be displayed on a negative screen or on a user interface of a certain application, and the widget directly displays the service or content most concerned by the user to the user, and introduces the content display manner of the widget in the following.
The user can configure what contents are displayed by the widget on the user interface of the host APP of the widget, the electronic device 100 stores configuration information of what contents are displayed by the widget configured by the user into the memory space of the widget through the host APP, and after the widget is loaded, the electronic device can obtain the corresponding contents of the widget from the CP server according to the configuration information stored in the memory space of the widget and display the contents of the widget obtained from the CP server on the display screen 194. Taking the example of showing the content of the team concerned in the widget as an example, as shown in fig. 2F, the electronic device 100 displays a user interface 260 on a display 194, where the user interface 260 includes a widget261 and a virtual button 262, and the widget261 shows the ball game information of the teams named rocket and horse thorn. For example, electronic device 100 may display user interface 270 on display screen 194 in response to user manipulation of virtual button 262. Where the user interface 270 includes options for a plurality of team names, such as rocket, spurs, teddy bear, sun, talent, etc., the user may select a team via the virtual buttons 272. In other embodiments, the user interface 270 may further include a virtual button 271, and the user may operate the virtual button 271 by selecting one or more options of the team names in the user interface 270, so that the electronic device 100 may display, in response to the operation of the virtual button 271, the match condition of the corresponding team name selected by the user in the widget 261. For example, the user may operate the virtual button 271 after selecting one or more of the team names in the user interface 270, so that the electronic device 100 may store the corresponding team name selected by the user in a corresponding memory (e.g., the internal memory 121, the external memory, or the dedicated memory) in response to the operation of the virtual button 271, and display the user interface 260 on the display screen 194 according to the corresponding team name selected by the user stored in the memory. The user interface 260 includes a widget261, and the widget261 displays a ball game situation of a corresponding team name selected by the user. For example, when the user selects the option of the team names rocket and sun, the user operates the virtual button 271, and the electronic apparatus 100 displays the user interface 260 on the display screen 194 in response to the user operating the virtual button 271. Where user interface 260 includes widget261, where widget261 displays ball game information for team names rocket and sun.
Because the ball game information of the team is public, widget261 in electronic device 100 may obtain, according to the team name selected by the user, the ball game information corresponding to the team name selected by the user from the CP server for providing the content of widget261, and display the ball game information corresponding to the team name selected by the user through widget 261.
However, when the content displayed in the widget is non-public content information (for example, the state of the device in the smart home, etc.), the widget in the electronic device 100 may send an identity authentication credential to the CP server for providing the content displayed by the widget, and after the CP server passes the identity authentication of the electronic device 100 according to the identity authentication credential, send the content that the corresponding widget needs to be displayed to the electronic device 100, and after the electronic device 100 acquires the content that the corresponding widget needs to be displayed, the corresponding content is displayed by the CP server. The mode of obtaining the corresponding content through the identity authentication credential is beneficial to improving the security.
In some embodiments, when the content of the widget and the content of the host APP of the widget are provided by the same CP server, the electronic device 100 may obtain the authentication credential based on the following manner:
electronic device 100 may obtain an identity authentication credential from the CP server, where the identity authentication credential is allocated to electronic device 100 by the CP server according to a user account of the registered or logged host APP in the process of registering or logging in the user account of the CP server, and electronic device 100 stores the identity authentication credential in a memory space of the host APP and may also store the identity authentication credential in a memory space of the widget. When a widget in the electronic device 100 acquires corresponding content from the CP server, the identity authentication credential may be acquired from a memory space of the widget or a memory space of a host APP of the widget. For example, if the negative one screen includes widget1, the host APP of widget1 is a negative one screen APP, the user account of the negative one screen APP is a device account, and corresponding registration may be performed on the system setting interface, the authentication credential may be allocated to the electronic device 100 by the CP server according to the device account, and when widget1 needs to obtain corresponding content, the authentication credential may be obtained from the memory space corresponding to the negative one screen.
However, in some embodiments, the content of the widget and the content of the host APP of the widget are provided by different CP servers, in this case, based on security considerations, the electronic device 100 may not store the authentication credential obtained according to the user account of the host APP into the storage space of the widget, and may not allow the widget to use the authentication credential obtained by the user account of the host APP, so that the widget may not obtain the non-public content information according to the authentication credential. In view of this, an embodiment of the present application provides a display method, which can enable a widget in electronic device 100 to obtain an authentication credential for accessing a CP server providing content of the widget by binding an account of a native APP of the widget and a frame number of a host APP, so as to improve security and diversity of obtaining the content of the widget.
The method and the electronic device are based on the same technical concept, and because the principles of solving the problems of the method and the electronic device are similar, embodiments of the method and the electronic device can be referred to each other, and repeated parts are not described again.
With reference to the foregoing embodiments and the accompanying drawings, embodiments of the present application provide a content display method, which can be implemented in an electronic device 100 having a hardware structure shown in fig. 1. It should be noted that, for convenience of description, the CP server for providing the content of the host APP is referred to as a first server, and the CP server for providing the content of the widget is referred to as a second server. If the host APP and the widget belong to different manufacturers, for convenience of description, any user account registered from a first server of the host APP may be referred to as a first user account, an identity authentication credential corresponding to the first user account is referred to as a first identity authentication credential, any user account registered from a second server of the native APP of the widget is referred to as a second user account, and an identity authentication credential corresponding to the second user account is referred to as a second identity authentication credential. The user can access the second server by adopting the second user account through logging in the native APP or the webpage of the second server to perform personalized configuration, and the second server stores personalized configuration information aiming at the second user account. Because the widget does not have the independent login capability, in order to display the content of the personalized configuration information in the widget, the widget of the electronic device 110 may access the second server according to the second identity authentication credential of the second user account, and obtain the content corresponding to the personalized configuration information of the second user account to display, so as to improve user experience.
Illustratively, as shown in fig. 3, a flow diagram of a content display method provided in an embodiment of the present application specifically includes the following steps.
At step 30, the electronic device 100 displays a first user interface on the display screen 194.
It should be noted that the first user interface may be a main user interface, may also be a negative one-screen, may also be a user interface of a certain application, and the like, which is not limited to this.
Step 31: the electronic device 100 receives a first operation of the user, wherein the first operation is used to control the electronic device 100 to display a second user interface on the display 194, and the second user interface includes a widget.
For example, the first operation may be, but is not limited to, a user operation on an application icon, a sliding operation on the main interface, a voice instruction, or a shortcut gesture operation.
For example, when the negative screen includes a widget, the first operation may be a right sliding operation of the user on the main interface. For example, the user interface 210 shown in fig. 2A, including the calendar widget212 and the smart home widget213, may be a first operation, which may be a sliding operation of the user to the right on the user interface 200. For another example, when the user interface of an application includes a widget, the first operation may be an operation of the application icon by the user. For example, the user interface of the calendar is the user interface 220 shown in fig. 2B, which includes a fortune widget221 and a weather widget, and the first operation may be a touch operation of the user on the calendar icon 203 on the user interface 200.
The first operation is an operation of a user on an application icon, or a touch operation such as a slide operation on the main interface, for example. The touch sensor 182 of the electronic device 100 detects a touch operation of a user on the display screen 194, reports touch position information of the user on the display screen 194 to the processor 110, and the processor 110 determines that the touch sensor 182 receives a first operation according to the touch position information reported by the touch sensor 182.
Step 32: in response to the first operation, the electronic device 100 sends a first authentication acquisition request to the first server, where the first authentication acquisition request includes at least one of a first user account and a first identity authentication credential, and the first authentication acquisition request may be used to acquire a second identity authentication credential that the widget to be displayed accesses the second server.
The first identity authentication credential is used for the first server to perform identity authentication on the electronic device, and the first server allocates the first identity authentication credential to the electronic device 100 according to the first user account of the host APP of the widget.
For example, a user may register with a first server through a first user account on a host APP or a webpage of the first server, and a subsequent electronic device may log in the first server through the registered first user account and obtain resources of the first server after logging in the first server. The user account includes a username and password. Each user account which is successfully registered is stored in the first server, the first server may perform authentication on the electronic device according to each user account which is stored in advance, and after the authentication passes, the first server sends the corresponding resource to the electronic device 100.
Based on security considerations, the first server may generate a first authentication credential corresponding to the first user account according to the first user account, and transmit the generated first authentication credential corresponding to the first user account to the electronic device 100. It may be agreed that the first server performs identity verification on the electronic device 100 according to the first identity authentication credential, that is, when the electronic device 100 acquires resources of the first server through the first user account, the resources may be acquired through the first identity authentication credential corresponding to the first user account, for example, the electronic device 100 sends a first authentication acquisition request to the first server, where the first authentication acquisition request includes the first identity authentication credential corresponding to the first user account, the first server stores the first identity authentication credential corresponding to each user account, and after receiving the first authentication acquisition request, the first server may determine whether the first identity authentication credential is stored, if so, it is determined that the electronic device 100 passes the identity verification, and if not, it is determined that the identity verification of the electronic device 100 does not pass.
In some embodiments, it may be agreed that the first server performs the identity verification on the electronic device 100 according to the first user account and the first identity authentication credential, and the first authentication acquisition request may include the first user account and the first identity authentication credential corresponding to the first user account. Correspondingly, the first server determines whether the first user account and the first identity authentication credential corresponding to the first user account are stored according to each user account and the identity authentication credential corresponding to each user account which are pre-stored, and if so, determines that the first server passes the identity authentication of the electronic device 100, and the first server may send the corresponding resource to the electronic device 100.
Based on the security considerations, the situation that the resource of the first server is acquired after the user account is stolen by others is avoided, and the electronic device 100 may further send the identifier of the electronic device 100 to the first server when registering or logging in to the first server through the first user account. Correspondingly, the first server may further store an identifier of the electronic device corresponding to the first user account. In some embodiments, the first server may be provisioned to also authenticate the electronic device based on the identity of the electronic device. For example, it is agreed that the electronic device is authenticated according to the first user account, the first identity authentication credential corresponding to the first user account, and the identifier of the electronic device, and the electronic device 100 sends a first authentication acquisition request to the first server, where the first authentication acquisition request includes the first user account, the first identity authentication credential corresponding to the first user account, and the identifier of the electronic device 100. The first server determines whether the first user account, the first authentication credential corresponding to the first user account, and the identifier of the electronic device corresponding to the first user account are stored, and if yes, the identity verification of the electronic device 100 is passed. If the first user account and the first authentication credential are verified, but the identity of the electronic device is not verified, the first server may send a prompt to the electronic device 100 whether the first user account is stolen. The electronic device 100 may perform the user identity verification in other ways.
The first authentication credential may be assigned to the first user account by the first server when the first user account registers with the first server. After the user registers the first user account, the user may forget to use the first user account sometimes, and it is meaningless for the first server to allocate the first authentication credential to the first user account.
Illustratively, the electronic device displays a third user interface; the third user interface includes a user account input area; the electronic equipment responds to an operation completed by a first user account input by a user in the user account input area, and sends a first request to the first server, wherein the first request is used for the electronic equipment to log in or register the first server, and the first request comprises the first user account; the electronic device receives a response of a first request sent by the first server, wherein the response of the first request comprises the first identity authentication credential, and the first identity authentication credential is allocated to the electronic device by the first server according to the first user account.
As shown in fig. 2C, for the user to log in the third user interface 230 of the first server through the first user account on the electronic device 100, the user may input the first user account, i.e., the user name and the password, in the third user interface 230, and then click the "login" button, and the electronic device 100 responds to the operation of clicking the login button to send a login request to the first server, where the login request generally includes the user account for login. If the login is a first login, the first identity authentication credential corresponding to the first user account is sent to the electronic device 100, for example, the first server may determine whether the login is a first login according to whether the first identity authentication credential corresponding to the first user account is stored, and if the first identity authentication credential corresponding to the first user account is determined not to be stored, the login may be determined to be a first login, generate the first identity authentication credential corresponding to the first user account, and send the first identity authentication credential corresponding to the first user account to the electronic device 100, and the first server may also store the first user account and the first identity authentication credential corresponding to the first user account. If the login is not the first login, the login request generally includes the first user account and the first identity authentication credential corresponding to the first user account.
If the host APP is a minus one-screen APP or a desktop APP, the user may register or log in on a system setting interface of electronic device 100, after electronic device 100 receives the first user account and the first identity authentication credential corresponding to the first user account sent by the first server, electronic device 100 may share the first user account and the first identity authentication credential corresponding to the first user account with the host APP, for example, store the first user account and the identity authentication credential corresponding to the first user account in a storage space of the host APP, and then the host APP acquires the first user account and the first identity authentication credential corresponding to the first user account.
If the host APP is a third-party APP and the user can register or log in on the user interface of the third-party APP, the third-party APP of the electronic device 100 receives the first user account and the first identity authentication credential corresponding to the first user account sent by the first server, and the third-party APP stores the first user account, that is, the first identity authentication credential corresponding to the first user account, in its own storage space.
The process of obtaining the authentication credentials by the other APPs is the same as the process of obtaining the first authentication credentials by the host APP.
When the electronic device 100 sends the first authentication acquisition request to the first server, for example, the processor 110 of the electronic device 100 may send the first authentication acquisition request to the first server through the mobile communication module 151 and/or the wireless communication module 152 in response to the first operation. For example, the processor 110 of the electronic device 100 invokes the host APP in response to the first operation, and sends a first authentication acquisition request to the first server through the mobile communication module 151 and/or the wireless communication module 152.
Step 33: after receiving the first authentication acquisition request, the first server acquires a second authentication credential according to at least one of the first user account and the first authentication credential, and sends a response of the first authentication acquisition request to the electronic device 100, where the response of the first authentication acquisition request includes the second authentication credential, the second authentication credential is used for the second server to perform identity authentication on the electronic device, and the second authentication credential is generated according to the second user account of the native APP of the widget. The assignment is typically made by a second server, the first and second user accounts being associated user accounts.
On the server side, CP servers of two different manufacturers may associate two user accounts belonging to different manufacturers by using an account association technique, for example, a user account in huawei is associated with a user account in lattice strength.
The user account of one manufacturer can be simultaneously associated with two user accounts belonging to different manufacturers, for example, one user account of Huawei can be simultaneously associated with one user account of lattice force and one user account of Haire, but the user account of one manufacturer cannot be simultaneously associated with two user accounts belonging to the same manufacturer, for example, one user account of Huawei cannot be simultaneously associated with two user accounts of lattice force. In this application, account association may be performed between a first user account of a first server and a second user account of a second server, and the second server shares a second authentication credential that the second user account accesses the second server to the first server, so that the first server holds the authentication credential that the second user account accesses the second server.
The specific process of account association is described as follows:
as shown in fig. 2G, the user interface 300 of the host APP includes a button 301 for performing account binding, the electronic device may display the user interface 310 in response to an operation of the button 301 by a user, where the user interface 310 includes an identifier of a widget that can perform account binding, for example, text information, or icon information of a native APP of the widget, as shown in fig. 2G, the user interface 310 includes text information of a smart home widget311, and a button 312 for performing account binding, for example, displaying a bound or unbound state, may also be displayed in the user interface 310.
The electronic device identifies whether the first user account of the host APP is currently logged in response to user operation of button 312. If not, displaying a user interface 320 for account login, enabling a user to input a first user account, namely a user name and a password, in the user interface 320 for login, and if the user is a negative screen of the mobile phone, the first user account is a hua-shi user account, and the electronic device jumps to the user interface 330 after receiving response information of successful login sent by the first server. If the electronic device recognizes that the first user account of the host APP is currently logged in, it may jump directly to the user interface 330. The user interface 330 is a user interface for logging in the native APP of the widget, that is, a login interface of a second user account to be account-bound. When jumping to the user interface 330, the host APP may generate a link for logging in a user account of the native APP of the widget, and when the host APP opens the link, the user interface 330 jumps. The APP to which the user interface 330 belongs is called a native sub APP, and the host APP can also send the first user account to be account-bound to the native sub APP. The native daughter APP is part of the native APP.
The electronic device receives the operation of the user on the login button on the user interface 330, and the native sub APP in the electronic device responds to the operation of the user and sends a login request to the second server, wherein the login request comprises a second user account and indication information for indicating account association. After receiving the login request sent by the native sub APP, the second server may allocate, for the second user account, a third identity authentication credential corresponding to the second user account to the electronic device. And the second server stores a third identity authentication credential corresponding to the second user account.
For example, after the native sub APP in the electronic device receives the response of the login request, the native sub APP may send the third authentication credential to the host APP, and may also send the first user account to the host APP, so that the host APP knows that the third authentication credential is associated with the first user account. After receiving the third identity authentication credential and the first user account, the host APP of the electronic device may send a first account association request to the first server, where the first account association request includes the first user account, an identifier of the second server corresponding to the widget, and the third identity authentication credential.
For example, the host APP may send the first user account to be account-bound to the native sub APP, and may also send the access address of the first server of the host APP to the native sub APP. After receiving the response of the login request sent by the second server, the native sub-APP may directly send a first user account association request to the first server according to the access address of the first server without passing through the host APP, where the first user account association request sent by the native sub-APP to the first server includes the first user account, the identifier of the second server corresponding to the widget, and the third identity authentication credential. The subsequent host APP may query the first server whether the association of the first user account was successful.
The first server receives a first user account association request sent by the electronic device, and the first server sends a second account association request to the identified second server, wherein the second account association request comprises the third identity authentication credential and the first user account.
After receiving the second account association request sent by the first server, the second server may determine whether a third identity authentication credential in the second account association request is stored according to the pre-stored identity authentication credentials for performing account association corresponding to each user account, if so, identify the second user account corresponding to the third identity authentication credential, and send a response of the second account association request to the first server, where the response of the second account association request includes the first user account, the second identity authentication credential, and may also include the second user account.
After receiving the response of the second account association request sent by the second server, the first server may store the second authentication credential for the first user account, and may also store the second user account associated with the first user account.
The first server may also send a response to the first account association request to the electronic device to indicate that the account association is successful. An exemplary user interface 340, shown in fig. 2G, displays a prompt for successful account association.
After receiving the first authentication acquisition request, the first server may authenticate the identity of the electronic device according to at least one of the first user account and the first identity authentication credential, and the specific authentication process is described above and is not described herein again. If the identity verification of the electronic device passes, the second identity authentication credential may be obtained according to at least one of the first user account and the first identity authentication credential, and as an example of a specific process, it is determined whether a second user account associated with the first user account is stored according to a pre-stored associated user account, and if so, the second identity authentication credential of the second user account associated with the first user account is obtained. The first server sends the second authentication credential to the electronic device 100.
When the first server transmits the second authentication credential to the electronic device 100, the first server may transmit the second authentication credential and the first user account and/or the first authentication credential associated with the second user account corresponding to the second authentication credential to the electronic device 100 in pairs, so that the electronic device 100 recognizes which user account the second authentication credential transmitted by the first server is associated with. For example, the response of the first authentication acquisition request includes the second identity authentication credential, and may further include the first user account associated with the second user account and/or the first identity authentication credential corresponding to the first user account.
In some embodiments, there may be one or more second user accounts stored in the first server and associated with the first user account. And the first server stores the identifier of the second server to which the second user account belongs for each second user account. In order to accurately distinguish the authentication credentials of different manufacturers (second servers), the first server may transmit the second authentication credentials and the identifiers of the corresponding second servers to the electronic device 100 in pairs for each second authentication credential when transmitting the second authentication credentials to the electronic device 100. For example, the response of the first authentication obtaining request includes at least one second authentication credential, and each authentication credential corresponds to an identifier of a second server to which the authentication credential is allocated. The host APP of the electronic device 100 stores a manufacturer to which each widget belongs, that is, stores an identifier of the second server corresponding to each widget. The host APP can store each second identity authentication credential into the storage space of the corresponding widget according to the identifier of the second server corresponding to each second identity authentication credential sent by the first server.
After the electronic device 100 responds to the first operation of the user, there may be one or more widgets displayed on the display screen 194, and if a plurality of widgets are displayed, each widget may belong to a different manufacturer, that is, correspond to a different second server; it is also possible that two widgets shown belong to the same manufacturer and correspond to the same second server. Which widgets are displayed on the display screen 194 may be determined by the user's settings. That is, even if the first server stores a plurality of second user accounts associated with the first user account, the electronic device may not display the widget of the second server to which a certain second user account belongs, and thus, the first server sends the second authentication credential corresponding to the second user account of the widget, which is not displayed, to the host APP of the electronic device, which has no meaning and wastes transmission resources. Based on this, the first authentication acquisition request sent by the electronic device 100 to the first server may further include an identifier of the second server corresponding to the widget to be displayed, that is, an identifier of a manufacturer to which the widget belongs, it should be noted that the host APP knows the identifier of the second server to which each widget to be displayed belongs in the user interface. For example, the widget to be displayed includes an intelligent home widget of an american manufacturer, and the first authentication acquisition request includes an identifier "american". Correspondingly, the first server performs identity verification after receiving the first authentication acquisition request, and then obtaining a second identity authentication credential according to at least one of the first user account number and the first identity authentication credential and the identification of the second server, as exemplified by the specific process, determining whether a second user account associated with the first user account is saved according to a pre-saved associated user account, if so, determining second user accounts associated with the first user account, and further according to the pre-saved identification of the second server corresponding to each second user account, and screening out a second user account corresponding to the identifier of the second server included in the first authentication acquisition request from the determined second user account associated with the first user account, and then acquiring a second identity authentication credential corresponding to the screened second user account.
When the first server transmits the second authentication credential to the electronic device 100, the first server may transmit the second authentication credential and the identifier of the second server corresponding to the second authentication credential to the electronic device 100 in pairs, so that the electronic device 100 identifies which second server the second authentication credential transmitted by the first server belongs to. For example, the response of the first authentication obtaining request includes the second authentication credential, and may further include an identifier of the second server corresponding to the second user account.
Step 34: after receiving the response of the first authentication acquisition request, the electronic device 100 sends the first content acquisition request to the second server. The first content obtaining request is used for obtaining content information to be displayed by the widget, and the first content obtaining request comprises a second identity authentication credential.
The electronic device 100 receives the second authentication credential transmitted from the first server through the mobile communication module 151 and/or the wireless communication module 152. For example, processor 110 of electronic device 100 invokes host APP to receive the second authentication credential sent from the first server through mobile communication module 151 and/or wireless communication module 152. The host APP may store the second authentication credential in the memory space of the widget after loading the widget or before loading the widget. When the host APP stores the second authentication credential in the storage space of the widget, the host APP may store the second authentication credential by calling an interface setJsView Data (Data), where the Data is a true value of the second authentication credential.
Step 35: after receiving the first content acquisition request, the second server authenticates the electronic device 100 according to the second identity authentication credential, and if the authentication is passed, sends a first acquisition success response of the first content acquisition request to the electronic device 100. The first successful acquisition response comprises the content information to be displayed by the widget.
The electronic device 100 sends a first content obtaining request to a second server corresponding to the widget to be displayed, where the first content obtaining request includes a second identity authentication credential for the widget to be displayed to access the second server, and the first content obtaining request is used to obtain content information to be displayed in the widget.
For example, the processor 110 of the electronic device 100 may transmit the first content acquisition request to the second server through the mobile communication module 151 and/or the wireless communication module 152. For example, the processor 110 of the electronic device 100 invokes a program of a widget to be displayed in a user interface of the host APP, and sends a first content acquisition request to a second server corresponding to the widget through the mobile communication module 151 and/or the wireless communication module 152.
A host APP in the electronic device may load a widget, the widget acquires a memory variable data, that is, acquires a second identity authentication credential (data. cpaccesstoken) from a memory space of the widget, and then the widget may send a first content acquisition request to a second server, where the first content acquisition request includes the second identity authentication credential, and the first content acquisition request is used to acquire content information to be displayed in the widget.
For example, the widget may send a message to the second server using HTTPS protocol, and carry Authorization, Bearer ACCESS TOKEN, in the request header field, where ACCESS TOKEN represents the second authentication credential, and the field may be filled with a real value using data.
After receiving the first content acquisition request sent by the electronic device, the second server may perform identity authentication on the electronic device 100 according to the second identity authentication credential, that is, authenticate the identity of the user according to ACCESS _ TOKEN. For example, the second server determines whether a second user account corresponding to the second identity authentication credential is stored according to the pre-stored identity authentication credential corresponding to each user account, and if so, the identity authentication is passed. And then, according to the pre-stored configuration information corresponding to each user account, determining second configuration information corresponding to a second user account, extracting content information corresponding to the second configuration information, namely the content information to be displayed by the widget, and then sending the content information to be displayed by the widget to the electronic equipment.
It should be noted that the user may also access the second server through the second user account on the native APP of the widget or the webpage of the second server, and perform personalized configuration, for example, configure a logo of a team, a logo of a stock, and the like, and also configure a logo of one or more devices in the smart home. The second server may extract corresponding content information, such as game information of a team, trend information of stocks, switching information of devices, and the like, according to configuration information corresponding to the second user account, and send the content information to the widget.
It should be noted that one manufacturer may develop a plurality of widgets, each widget has a corresponding type, for example, the type of the air conditioner widget is an air conditioner, the type of the refrigerator widget is a refrigerator, and the like, and the type of the smart home widget is a smart home, and the like. Each widget has its type identifier, and the second server stores the corresponding relationship between the type identifier of each widget and the configuration information of the widget. For example, when a user logs in a second user account to access a second server through a native APP or a web page and performs personalized configuration of a widget, personalized configuration may be performed for different types of widgets, for example, a widget configuration device identifier identified as smart home and a widget configuration stock identifier identified as stock. A plurality of widgets may be displayed in a user interface of a host APP, and each widget may send a first content acquisition request to a second server corresponding to the widget. In order to clearly distinguish the types of widgets by the second server, in step 34, the electronic device 100 sends a first content obtaining request to the second server, where the first content obtaining request includes the second authentication credential and the type identifier of each widget to be displayed. The second server determines, in the second configuration information corresponding to the second user account, configuration information corresponding to the type identifier of each widget, extracts content information corresponding to the configuration information, and sends the type identifier of the widget and the content information corresponding to the type identifier of the widget in pairs to the electronic device 100.
Step 36: after receiving the response of the first content obtaining request, the electronic device 100 displays a second user interface on the display screen 194 according to information included in the first successful obtaining response of the first content obtaining request, where the second user interface includes a widget. And displaying the corresponding content information in each widget.
For example, the electronic device 100 may receive content information from the second server through the mobile communication module 151 and/or the wireless communication module 152. For example, the processor 110 of the electronic device 100 calls the widget to receive the content information transmitted by the second server through the mobile communication module 151 and/or the wireless communication module 152, and displays the content information.
For example, a developer of the second server develops the smart home widget and the ball game widget, and the user can configure, on the second server, the identifier of the main lying air conditioner, the identifier of the sub lying air conditioner, the identifier of the television, the identifier of the lamp, and the identifier of the team for the widget of which the type identifier is the ball game, through the second user account. After receiving the first content acquisition request, the second server can identify that the widget to acquire the content information is the smart home widget.
The second server identifies configuration information corresponding to the type identifier of the smart home widget: the method includes the steps that an identifier of a main lying air conditioner, an identifier of a secondary lying air conditioner, an identifier of a television, an identifier of a lamp and the like are obtained, then content information corresponding to currently stored information, namely configuration information, such as whether the main lying air conditioner is turned on or off, the working temperature of the secondary lying air conditioner, the room temperature detected by the main lying air conditioner, whether the television is turned on or off and the like is obtained, the obtained content information is sent to the electronic device 100, and a widget type identifier can be sent to identify the smart home.
As shown in fig. 2D, the content information sent by the second server to the electronic device 100 includes: the main lying air conditioner is in an on state, the working temperature of the air conditioner is 24 ℃, the room temperature is 26 ℃, the secondary lying air conditioner is in an off state, the television is in an off state, and the main lying lamp is in an on state. Further information may be included, which is not further enumerated herein. In the smart home widget213 of the negative one-screen user interface 240 of the electronic device, corresponding content information may be displayed.
In order to facilitate the user to control the state of the device in the smart home, the user interface 240 includes a key 241 for adjusting the on/off state of the device, and a display area of the key 241 may display words of "on" or "off", where on represents that the device is in an on state, and off represents that the device is in an off state, and the user may operate the key 241, and the electronic device changes the on or off state of the device in response to the user operating the key 241, for example, if the current display is "on", it indicates that the device is in the on state, and the user may click the key 241 displayed as "on", so that the state of the device is updated to the off state.
Buttons 242 and 243 for adjusting the operating temperature of the air conditioner may be further included in the user interface 240, wherein the button 242 (up arrow) may be used for increasing the operating temperature of the air conditioner, and the button 243 (down arrow) may be used for decreasing the operating temperature of the air conditioner.
The user interface 240 may further include a key 244, where a display area of the key 244 displays a word "refresh", and the key 244 may be used to refresh the content displayed in the smart home widget.
If the widget is displayed in the form of a card, the card comprises a folded state and an unfolded state, wherein the card in the folded state has a specified size, when a large number of devices are available, the card in the folded state generally cannot display the state information of all the devices, and when the card is in the unfolded state, the card can generally display the state of all the devices configured in advance regardless of the size of the user interface. The user interface 240 may further include a key 245, where the key 245 may be used to change the expansion or folding state of the card, and a display area of the key 245 displays a word "fold" or "expand", for example, when the displayed word is expanded, the displayed word indicates that the card is in the folding state, and when the displayed word is folded, the displayed word indicates that the card is in the expansion state.
According to the above process, the corresponding content that the electronic device 100 has acquired from the second server side is displayed in the widget, and the user may further interact on the widget.
Illustratively, as shown in fig. 4, a flow diagram of a content display method provided in the embodiment of the present application specifically includes the following steps.
Step 40, the electronic device 100 displays a second user interface on the display 194, where the second user interface includes a widget.
The second user interface is the second user interface displayed in step 36 above.
It should be noted that the first user interface may be a main user interface, may also be a negative one-screen, may also be a user interface of a certain application, and the like, which is not limited to this.
Step 41: and the electronic equipment receives a second operation of the user on the displayed widget, wherein the second operation is used for controlling the electronic equipment 100 to update the content information displayed in the widget.
For example, the second operation may be, without limitation, a user performing a widget operation, a sliding operation, a clicking operation, a double-clicking operation, a voice instruction, or a shortcut gesture operation on the second user interface.
In the following, the second operation is taken as an example of the operation of a certain widget by the user, and the second operation is used to control the electronic device 100 to update the content information of the widget displayed on the display screen 194 according to the operation information of the second operation.
If the second operation is a touch operation, the touch sensor 182 in the electronic device detects the touch operation of the user on the display screen 194, the touch sensor 182 reports the touch position information of the user on the display screen 194 to the processor 110, and the processor 100 determines that the touch sensor 182 receives the second operation according to the touch position information.
Step 42: in response to the second operation, the electronic device 100 sends a second content obtaining request to the second server, where the second content obtaining request includes a second identity authentication credential and operation information of the second operation, and the second content obtaining request is used to obtain content information corresponding to the operation information of the second operation, that is, content information to be updated and displayed by the widget.
The second content obtaining request may further include a widget type identifier, and if the second operation is a touch operation, the widget type identifier in the second content obtaining request is the widget type identifier displayed at the touch position of the second operation.
Specifically, the widget sends a control message to the second server (the request header carries Authorization: Bearer ACCESS TOKEN, where the ACCESS TOKEN is filled with the real value of data. The principle of the electronic device sending the second content obtaining request to the second server in step 42 is similar to the principle of the electronic device sending the first content obtaining request to the second server in step 34, and repeated details are omitted.
Step 43: after receiving the second content obtaining request sent by the electronic device, the second server may execute a process corresponding to the operation information after the electronic device 100 passes the authentication according to the second identity authentication credential, and the electronic device 100 sends a second obtaining success response of the second content obtaining request. The second successful acquisition response includes content information to be updated and displayed by the widget, that is, content information corresponding to the operation information of the second operation.
The execution process of the second server after receiving the second content obtaining request in step 43 is similar to the execution process of the second server after receiving the first content obtaining request in step 35, and repeated details are not repeated.
Step 44: after receiving the response of the second content acquisition request sent by the second server, the electronic device 100 updates the content information displayed in the widget according to the content information included in the second acquisition success response.
As shown in the user interfaces 240 and 250 shown in fig. 2E, for example, when the user performs a temperature raising operation on the temperature of the main-lying air conditioner, that is, clicks the key 242 (upward arrow), the operation of clicking the key 242 is a second operation, assuming that the temperature raising operation is 1 ℃ once, the second server receives the operation information of the second operation in the second content acquisition request sent by the electronic device 100, that is, the operation information of the second operation is to raise the working temperature of the main-lying air conditioner by 1 ℃, the second server may send a temperature raising instruction to the corresponding main-lying air conditioner, and return the working temperature of the main-lying air conditioner to 25 ℃ to the electronic device 100, or return the temperature of the main-lying air conditioner to 1 ℃, and the electronic device 100 may change the state of the device displayed by the smart home widget according to the content information sent by the second server, that is, that the working temperature is updated from the original 24 ℃ to 25 ℃.
The user's operation of the keys 244, 241, 243 may be all used as the second operation, for example, when the second operation is the operation of the key 243, the operation information of the second operation is to lower the operating temperature of the master-sleeper air conditioner by n degrees centigrade, and the value of n is related to the value corresponding to the preset operation according to the number of operations.
For example, when the second operation is an operation of the key 241 corresponding to the main-lying air conditioner, the information of the second operation is to close the main-lying space or open the main-lying space. For another example, when the second operation is an operation on the key 241 corresponding to the television, the information of the second operation is to turn off the television or turn on the television.
The authentication credential for accessing the second server to obtain the resource of the second server has a validity period, which is generally 24 hours, or 12 hours, or 72 hours, etc. After the validity period is over, the authentication credential becomes invalid and the resource of the server cannot be obtained through the authentication credential. The second server of the widget may record a generation time for each authentication credential used to access the second server and record a valid time, and when it is determined that the valid time of the authentication credential exceeds the valid time, the second server may generate a new authentication credential and update the previous authentication credential with the new authentication credential. The second server may actively share the new authentication credentials to the first server. Certainly, the first server may also generate time for the id authentication credential record used for accessing the second server, and record valid time, when it is determined that the valid time of the authentication credential exceeds the valid time, the second server may request a new id authentication credential from the second server, and the second server sends the new id authentication credential to the first server according to the request of the first server.
If the identity authentication credential acquired last time is invalid, the second server cannot find the second user account corresponding to the second identity authentication credential in the content acquisition request after receiving the content acquisition request sent by the electronic device 100, which indicates that the second identity authentication credential is invalid, and the second server may send content acquisition failure response information to the electronic device 100. When the electronic device 100 receives the content acquisition failure response, the electronic device may not update the content information displayed in the widget. The electronic device 100 may send a second authentication credential obtaining request to the first server, where the second authentication credential obtaining request includes a first authentication credential allocated by the first server to the electronic device, and the second authentication credential obtaining request is used to obtain a second authentication credential accessing the second server again. The process of the electronic device 100 sending the second authentication credential obtaining request to the first server is the same as the process of the electronic device 100 sending the first authentication obtaining request to the first server in step 32, and repeated details are not repeated.
The process executed by the first server after receiving the second credential obtaining request sent by the electronic device 100 is the same as the process in step 33, and repeated details are not repeated.
After receiving a response of the second authentication credential acquisition request sent by the first server, the electronic device resends the second content acquisition request to the second server, where the response of the second authentication credential request includes the updated second identity authentication credential, and the second content acquisition request includes operation information of the second operation and the updated second identity authentication credential, until the electronic device 100 successfully responds to the acquisition of the received second content acquisition request and updates the content information displayed in the widget.
For example, after receiving the response information that the identity authentication credential sent by the second server is invalid, the widget of the electronic device may send a message requesting for reloading to the host APP, and carry operation information corresponding to the second operation of the user.
The reloading message may be, for example:
sendMessage ("{ \\ \ command \ \ r \ load \ and \ context \ xxxx \ j \"), wherein end message represents that widget sends a message to host APP, command represents that the indicated action of the message is reloading (reload) widget, context represents context, the content of the context stores the incomplete action (incomplete operation), and "xxx" is the name of the specific incomplete operation, such as the temperature of the main horizontal air conditioner is raised to 1 ℃.
After receiving the message reloaded by the widget, as in step 32, the host APP sends a first authentication acquisition request to the first server, where the first authentication acquisition request includes a first authentication credential that is allocated by the first server for the first user account and used for accessing the first server, and when acquiring a new second authentication credential used for accessing the second server, the host APP stores the acquired new second authentication credential into a memory space of the widget, and may also send operation information corresponding to the second operation to the widget, where the operation information is not yet executed.
After acquiring the new second authentication credential, the widget may access the second server according to the previous unfinished second operation and the acquired new second authentication credential, execute the second operation, and display content information required by the second operation.
Currently, for some reason, the obtained new authentication credential may also be invalid, and in order to avoid repeated reloading of the widget, the host APP also needs to suppress the refresh frequency of the widget, for example, one widget is only allowed to be refreshed once or twice within 1 minute.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is described from the perspective of the electronic device, the first server, and the second server as execution subjects. In order to implement the functions in the method provided by the embodiment of the present application, the electronic device, the first server, the second server, and other devices may include a hardware structure and/or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
Based on the same concept, fig. 5 shows an apparatus 500 provided in the present application. Illustratively, the device 500 includes a transceiver module 501 and a processing module 502.
For example, when the device 500 is an electronic device, the device 500 may perform the steps performed by the electronic device in the display method shown in fig. 3, for example, the transceiver module 501 may be configured to perform the steps 32, 34, and the like, and the processing module 502 may be configured to perform the step 36. The device 500 may also perform the steps performed by the electronic device in the display method shown in fig. 4, for example, the transceiver module 501 may be configured to perform the steps 42 and 43, and the processing module 502 may be configured to perform the steps 40, 41, and 44.
For example, when the device 500 is the first server, the device 500 may perform the steps performed by the first server in the display method shown in fig. 3. For example, the transceiver module 501 may be used to perform the receiving and transmitting operations in step 33. The processing module 502 may be configured to perform the operation of obtaining the second authentication credential in step 33. The apparatus 500 may also perform the steps performed by the first server in the display method shown in fig. 4.
For example, when the device 500 is a second server, the device 500 may perform the steps performed by the second server in the display method shown in fig. 3. For example, the transceiver module 501 may be used to perform the receiving and transmitting operations in step 35. The processing module 502 may be used to perform the verification operation in step 35. The device 500 may also perform the steps performed by the second server in the display method shown in fig. 4.
Based on the same concept, fig. 7 shows an apparatus 700 provided by the present application. The device 700 includes at least one processor 710, memory 720, and transceiver 730. The processor 710 is coupled with the memory 720 and the transceiver 730, and the coupling in this embodiment is an indirect coupling or a communication connection between devices, units or modules, which may be electrical, mechanical or other, and is used for information interaction between the devices, units or modules. The connection medium among the transceiver 730, the processor 710 and the memory 720 is not limited in the embodiments of the present application. For example, in fig. 7, the memory 720, the processor 710, and the transceiver 730 may be connected by a bus, which may be divided into an address bus, a data bus, a control bus, and the like.
In particular, memory 720 is used to store program instructions.
The transceiver 730 is used for receiving or transmitting data.
Processor 710 is configured to invoke program instructions stored in memory 720 to cause device 700 to perform the steps performed by the electronic device of fig. 3 or 4, or to perform the steps performed by the first server or the second server of fig. 3 or 4.
In the embodiments of the present application, the processor 710 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
In the embodiment of the present application, the memory 720 may be a non-volatile memory, such as a Hard Disk Drive (HDD) or a solid-state drive (SSD), and may also be a volatile memory (RAM), for example, a random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
It should be understood that the apparatus 500 and the apparatus 700 may be used to implement the methods shown in fig. 3 and fig. 4 of the embodiments of the present application, and the related features may refer to the above description, which is not repeated herein.
As shown in fig. 6, the embodiment of the present application provides a content display system 600, which includes an electronic device 610, a first server 620 and a second server 630, which perform the content display process described above.
It is clear to those skilled in the art that the embodiments of the present application can be implemented in hardware, or firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: the computer-readable medium may include RAM, ROM, an Electrically Erasable Programmable Read Only Memory (EEPROM), a compact disc read-Only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, the method is simple. Any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or the wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium. Disk and disc, as used in accordance with embodiments of the present application, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
In short, the above description is only an example of the present application, and is not intended to limit the scope of the present application. Any modifications, equivalents, improvements and the like made in accordance with the disclosure of the present application are intended to be included within the scope of the present application.

Claims (12)

1. A method of displaying, comprising:
the method includes the steps that first operation of a user on a first user interface is detected by electronic equipment, the first operation is used for controlling the electronic equipment to display a second user interface of a host application program APP, and the second user interface comprises a first widget; the widget is a component loaded and operated by the host APP, and the content provider of the first widget is different from the content provider of the host APP;
the electronic device responds to the first operation, and sends a first authentication acquisition request to a first server, wherein the first authentication acquisition request comprises a first identity authentication credential, the first authentication acquisition request is used for acquiring a second identity authentication credential for accessing a second server, and the first identity authentication credential is associated with the second identity authentication credential, wherein the first server is a Content Provider (CP) server of the host APP, and the second server is a Content Provider (CP) server of the first widget; the first authentication credential is registered by the user with the first server through the host APP, and the second authentication credential is registered by the user with the second server through the native APP of the first widget;
after the electronic device receives a response of the first authentication acquisition request sent by the first server, the first widget sends a first content acquisition request to the second server according to a second identity authentication credential sent by the first server, wherein the first content acquisition request is used for acquiring content information to be displayed in the first widget;
after receiving a first acquisition success response of the first content acquisition request, the electronic equipment displays the second user interface according to the acquired content information;
the displaying the second user interface includes: and displaying the content information in a first widget of the second user interface.
2. The method of claim 1, wherein prior to the electronic device detecting a first operation by a user at a first user interface, the method further comprises:
the electronic device displaying a third user interface; the third user interface includes a user account input area;
the electronic equipment responds to an operation completed by a first user account input by a user in the user account input area, and sends a first request to the first server, wherein the first request is used for the electronic equipment to log in or register the first server, and the first request comprises the first user account;
the electronic device receives a response of a first request sent by the first server, wherein the response of the first request comprises the first identity authentication credential, and the first identity authentication credential is allocated to the electronic device by the first server according to the first user account.
3. The method of claim 1 or 2, wherein the second user interface further comprises a second widget.
4. The method of claim 3, wherein the electronic device sends a second authentication acquisition request to the first server in response to the first operation, the second authentication acquisition request including a first authentication credential, the second authentication acquisition request being used to acquire a third authentication credential for accessing a third server, the first authentication credential being associated with the third authentication credential, the third server being used to be a Content Provider (CP) server of the second widget.
5. The method of claim 3, wherein the second widget displays published content information.
6. The method of claim 3, wherein the second widget displays non-public content information.
7. The method of claim 5, wherein the second widget is a weather widget, a calendar widget, a fortune widget, or a widget that displays a team or a ball game.
8. The method of claim 6, wherein the second widget is a smart home widget, an air conditioner widget, a refrigerator widget, or a stock widget.
9. The method of claim 8, wherein if the second widget is a smart home widget, an air conditioner widget, or a refrigerator widget, the content information displayed in the second widget is a status of one or more devices.
10. A display device, characterized in that the device comprises a processor and a memory;
the memory has stored therein program instructions;
the program instructions, when executed, cause the apparatus to perform the method of any of claims 1 to 9.
11. A chip coupled to a memory in a device such that the chip, when executed, invokes program instructions stored in the memory to implement the method of any of claims 1 to 9.
12. A computer-readable storage medium, comprising program instructions which, when run on a device, cause the device to perform the method of any one of claims 1 to 9.
CN202010983358.6A 2019-05-08 2019-05-22 Display method and device Active CN112383663B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201910380047 2019-05-08
CN2019103800478 2019-05-08
CN201910430945.XA CN111917916B (en) 2019-05-08 2019-05-22 Display device method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910430945.XA Division CN111917916B (en) 2019-05-08 2019-05-22 Display device method and apparatus

Publications (2)

Publication Number Publication Date
CN112383663A CN112383663A (en) 2021-02-19
CN112383663B true CN112383663B (en) 2022-03-04

Family

ID=73051397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010983358.6A Active CN112383663B (en) 2019-05-08 2019-05-22 Display method and device

Country Status (4)

Country Link
US (1) US20220058037A1 (en)
EP (1) EP3944600A4 (en)
CN (1) CN112383663B (en)
WO (1) WO2020224478A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835347A (en) * 2021-09-15 2021-12-24 深圳Tcl新技术有限公司 Equipment state management method and device
CN114265662B (en) * 2022-03-03 2022-08-12 荣耀终端有限公司 Information recommendation method, electronic device and readable storage medium

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5147352B2 (en) * 2007-10-16 2013-02-20 株式会社日立製作所 Information providing method for data processing apparatus
KR20100086677A (en) * 2009-01-23 2010-08-02 삼성전자주식회사 Method and apparatus for providing community widget
CN102118651B (en) * 2010-01-06 2014-03-12 Lg电子株式会社 Display device and method of displaying content on display device
CN101827123B (en) * 2010-03-29 2013-04-03 北京掌中宽途科技有限公司 Method and system for realizing mobile widget engine with SNS function
CN101977219B (en) * 2010-10-19 2015-10-21 中兴通讯股份有限公司 A kind of widget application guard method and device
CN102096879A (en) * 2011-01-25 2011-06-15 中兴通讯股份有限公司 Method, system and terminal for releasing advertisement
CN102143219B (en) * 2011-01-25 2015-01-28 中兴通讯股份有限公司 Widget resource sharing method and system
CN102546648B (en) * 2012-01-18 2015-04-01 Ut斯达康通讯有限公司 Resource access authorization method
CN103049258A (en) * 2012-12-10 2013-04-17 乐视网信息技术(北京)股份有限公司 Method and system for controlling video playing based on android operating system
CN104243415B (en) * 2013-06-17 2017-11-14 中国移动通信集团公司 A kind of capacity calling method and equipment
CN105659558B (en) * 2013-09-20 2018-08-31 甲骨文国际公司 Computer implemented method, authorization server and computer-readable memory
CN104735021B (en) * 2013-12-18 2018-12-11 腾讯科技(深圳)有限公司 A kind of account number login method, device and system
US9838502B2 (en) * 2014-08-06 2017-12-05 Michael D. CROFT Systems and methods for RWD app store based collaborative enterprise information management
CN105763514B (en) * 2014-12-17 2019-11-29 华为技术有限公司 A kind of method, apparatus and system of processing authorization
CN105487392A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Device display method and apparatus
CN107786621B (en) * 2016-08-31 2020-10-16 阿里巴巴集团控股有限公司 User information management method, access processing method, device and system
CN111628971B (en) * 2017-02-09 2022-09-13 创新先进技术有限公司 Trust login method
CN106959878B (en) * 2017-03-31 2020-03-31 努比亚技术有限公司 Widget management method and mobile terminal
CN107291453A (en) * 2017-05-27 2017-10-24 广东欧珀移动通信有限公司 Component display methods and Related product
CN109726545B (en) * 2017-10-31 2020-09-04 中国移动通信集团公司 Information display method, equipment, computer readable storage medium and device
CN108182577A (en) * 2017-12-01 2018-06-19 阿里巴巴集团控股有限公司 A kind of method, apparatus and equipment for showing payment information
CN108038244B (en) * 2017-12-28 2020-02-21 北京达佳互联信息技术有限公司 Method and device for displaying cover of work by utilizing widget and mobile terminal
JP6997338B2 (en) * 2018-03-28 2022-01-17 華為技術有限公司 Video preview method and electronic device
KR102493861B1 (en) * 2018-04-02 2023-01-31 구글 엘엘씨 Methods, devices and systems for interactive cloud gaming
CN109525604B (en) * 2018-12-29 2021-04-20 香港乐蜜有限公司 Account number binding method and related equipment

Also Published As

Publication number Publication date
EP3944600A4 (en) 2022-05-18
WO2020224478A1 (en) 2020-11-12
CN112383663A (en) 2021-02-19
US20220058037A1 (en) 2022-02-24
EP3944600A1 (en) 2022-01-26

Similar Documents

Publication Publication Date Title
EP3340574B1 (en) Method for providing content corresponding to accessory and electronic device thereof
KR102371986B1 (en) Electronic device and method for providing a profile remotely to electronic device
US20200366516A1 (en) Electronic device and method for registering smart home device in smart home system
KR102468974B1 (en) Method and apparatus for controlling electronic device
CN110247887B (en) Electronic device and method for providing communication service based on user identity information
US10020832B2 (en) Method of controlling SIM card and SD card and electronic device for implementing the same
KR102226411B1 (en) Electronic device and method for managing reenrollment
KR102302350B1 (en) Method and apparatus for providing the security function
KR102194301B1 (en) Method and apparatus for connecting communication of electronic devices
CN109429102B (en) Electronic device and server for displaying applications
WO2020238728A1 (en) Login method for intelligent terminal, and electronic device
CN112055424B (en) Electronic device and method for switching electronic device
WO2019227450A1 (en) Application function implementation method and electronic device
US11395132B2 (en) Method for transferring subscription and electronic device for supporting the same
WO2020224447A1 (en) Method and system for adding smart home device to contacts
EP3817322A1 (en) Method for upgrading service application range of electronic identity card, and terminal device
WO2021159765A1 (en) Account data sharing method and electronic device
US11570611B2 (en) Electronic device, external electronic device, and method for managing eSIM of external electronic device
US20220058037A1 (en) Display Method and Device
US10257873B2 (en) Method and electronic device for providing tethering service
CN112261642B (en) Method for transferring subscription and electronic device for supporting the same
KR20220071482A (en) Electronic device for performing edge computing service and a method for the same
CN114692094A (en) Application program authority management method and electronic equipment
KR20150128482A (en) Apparatus and Method for operating communication service between electronic devices
WO2022042765A1 (en) Display method and electronic device

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