Homepage upgrading method and terminal
By displaying the upgrade interface during the homepage upgrade process, the problem of poor user experience is solved, and a user-friendly experience without a black screen is achieved during the homepage upgrade process.
Patent Information
- Application Number
- CN201910483438.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-04
- Publication Date
- 2025-10-14
- Estimated Expiration
- 2039-06-04
AI Technical Summary
During the homepage upgrade process, when returning to the homepage from the application, the terminal screen is black because there is no available homepage, which results in a poor user experience.
By receiving the user's instruction to exit the target application, the target task is obtained from the application stack, and it is determined whether the homepage is in the upgrade state. When it is determined that the homepage is in the upgrade state, the upgrade interface is displayed to avoid directly returning to an invalid homepage.
Improves user experience, avoids terminal black screen issues caused by unavailable homepage, and ensures that users have available interface prompts during the upgrade process.
Smart Images

Figure CN112035133B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of homepage upgrading, and in particular to a homepage upgrading method and terminal. Background Art
[0002] Currently, the homepage is the core part of the system installed on the terminal, mainly responsible for application launch, content display, etc. The homepage can be the entrance or exit of the application, that is, the application can be entered through the homepage, and the application can be returned to the homepage after exiting.
[0003] In the prior art, homepage upgrades are performed along with the entire device using Over-the-Air Technology (OTA) upgrades. However, since the download package for the entire device upgrade is large, the upgrade success rate is low.
[0004] To improve the success rate of upgrades, the homepage can be separated from the system and upgraded independently to meet the needs of Internet operations and achieve rapid homepage launch. During the homepage upgrade process, there will be a period of time when the original homepage is deleted and the new homepage is not yet installed. If you return to the homepage from the application during this period, the terminal screen will be black due to the lack of an available homepage, resulting in a poor user experience. Summary of the Invention
[0005] The present invention provides a homepage upgrading method and terminal, which solves the problem of a terminal black screen due to no available homepage when returning to the homepage from an application during the homepage upgrading process.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a homepage upgrade method, which may include: receiving an instruction from a user to exit a target application; obtaining a target task corresponding to the target application from an application stack; if the bottom of the target task is a return to homepage attribute, determining whether the homepage is in an upgrade state, and when it is determined that the homepage is in an upgrade state, displaying an upgrade interface; wherein the return to homepage attribute is used to mark the return to the homepage after exiting the target application, and the upgrade interface is used to prompt the user that the homepage is in an upgrade state.
[0008] In combination with the first aspect, in a possible implementation method, when it is determined that the homepage is in an upgrade state, an upgrade interface is displayed. Specifically, it may include: when it is determined that the homepage is in an upgrade state, creating an upgrade interface task at the bottom of the target task, and the upgrade interface task encapsulates the upgrade interface; according to the upgrade interface task, the upgrade interface is displayed.
[0009] With reference to the first aspect and the possible implementation manners above, in a possible implementation manner, before receiving the instruction of the user exiting the target application, the method further includes: receiving an instruction of the user entering the target application from the home page; and creating a target task corresponding to the target application in the application stack, the target task including a return-to-home attribute.
[0010] With reference to the first aspect and the possible implementation manners above, in a possible implementation manner, the method further includes: after the home page is upgraded, if the current interface is the upgrade interface, deleting the upgrade task and calling a home page activity in the home page stack, and updating the upgrade interface to the upgraded home page.
[0011] In a second aspect, the present application provides a terminal, which can include: a receiving unit, an obtaining unit, a judging unit and a display unit. The receiving unit is configured to receive an instruction of a user exiting a target application. The obtaining unit is configured to obtain a target task corresponding to the target application from an application stack. The judging unit is configured to judge whether a home page is in an upgrade state if a bottom of the target task is a return-to-home attribute, wherein the return-to-home attribute is used to indicate that the target application returns to the home page after exiting. The display unit is configured to display an upgrade interface when it is determined that the home page is in the upgrade state, wherein the upgrade interface is used to prompt the user that the home page is in the upgrade state.
[0012] With reference to the second aspect, in a possible implementation manner, the display unit is specifically configured to: create an upgrade interface task in the bottom of the target task when it is determined that the home page is in the upgrade state, wherein the upgrade interface task encapsulates the upgrade interface; and display the upgrade interface according to the upgrade interface task.
[0013] With reference to the second aspect and the possible implementation manners above, in a possible implementation manner, the terminal further includes a creating unit. The receiving unit is further configured to receive an instruction of the user entering the target application from the home page. The creating unit is configured to create a target task corresponding to the target application in the application stack, the target task including a return-to-home attribute.
[0014] With reference to the second aspect and the possible implementation manners above, in a possible implementation manner, the terminal further includes a deleting unit. The deleting unit is configured to delete the upgrade task if the current interface is the upgrade interface after the home page is upgraded. The display unit is further configured to call a home page activity in the home page stack and update the upgrade interface to the upgraded home page.
[0015] The specific implementation manners can refer to the behaviors and functions of the terminal in the home page upgrade method provided by the first aspect or the possible implementation manners of the first aspect.
[0016] In a third aspect, a terminal is provided, and the terminal comprises at least one processor, a memory, a communication interface and a communication bus. The processor is connected with the memory and the communication interface through the communication bus. The memory is configured to store computer-executable instructions. When the terminal is running, the processor executes the computer-executable instructions stored in the memory, so that the terminal executes the homepage upgrading method according to the first aspect or any one of the possible implementation manners of the first aspect.
[0017] In a fourth aspect, a computer storage medium is provided, and the computer storage medium stores computer-executable instructions. When the computer-executable instructions are running on a terminal, the terminal executes the homepage upgrading method according to the first aspect or any one of the possible implementation manners of the first aspect.
[0018] The homepage upgrading method provided by the present application can determine whether the homepage is in an upgrading state after receiving the instruction of the user exiting the target application, and display an upgrading interface when it is determined that the homepage is in the upgrading state, if the bottom of the target task corresponding to the target application is the return homepage attribute. In this way, when the user needs to exit the target application to the homepage, the terminal can determine whether the homepage is in the upgrading state, and display the upgrading interface when it is determined that the homepage is in the upgrading state, so as to prompt the user that the current homepage is being upgraded, thereby avoiding the problem of black screen due to no available homepage, and improving the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0019] Figure 1 A composition schematic diagram of a terminal provided by an embodiment of the present application is provided.
[0020] Figure 2 A flowchart of a homepage upgrading method provided by an embodiment of the present application is provided.
[0021] Figure 3 Another composition schematic diagram of a terminal provided by an embodiment of the present application is provided.
[0022] Figure 4 Another composition schematic diagram of a terminal provided by an embodiment of the present application is provided.
[0023] Figure 5 Another composition schematic diagram of a terminal provided by an embodiment of the present application is provided. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative labor fall within the protection scope of the present application.
[0025] Figure 1 A schematic diagram of a terminal according to an embodiment of the present application is shown in Figure 1 The terminal can include at least one processor 11, a memory 12, a communication interface 13, and a communication bus 14.
[0026] The various components of the terminal will be described in detail below. Figure 1 The various components of the terminal will be described in detail below.
[0027] The processor 11 is the control center of the terminal and can be one processor or a plurality of processing elements. For example, the processor 11 can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement one or more embodiments of the present application, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).
[0028] In a specific implementation, as one embodiment, the processor 11 can include one or more CPUs, such as the CPU0 and CPU1 shown in Figure 1 As one embodiment, the terminal can include a plurality of processors, such as the processor 11 and processor 15 shown in Figure 1 Each of these processors can be a single-CPU or a multi-CPU. The processor can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0029] The memory 12 can be a Read-Only Memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, a magnetic disk storage or other magnetic storage devices, or any other medium capable of storing desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited thereto. The memory 12 can exist independently, and is connected to the processor 11 through the communication bus 14. The memory 12 can also be integrated with the processor 11.
[0030] In a specific implementation, the memory 12 is configured to store data and software programs for implementing the present application. The processor 11 can execute various functions of the terminal by running or executing the software programs stored in the memory 12, and calling the data stored in the memory 12.
[0031] The communication interface 13 is configured to communicate with other devices or communication networks, such as a Radio Access Network (RAN), a Wireless Local Area Networks (WLAN), etc., using any transceiver-like mechanism. The communication interface 13 can include a receiving unit configured to perform a receiving function, and a transmitting unit configured to perform a transmitting function.
[0032] The communication bus 14 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 1 Only one thick line is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.
[0033] It should be noted that in the embodiments of the present application, the terminal can be a television, a tablet computer, a mobile phone, a computer or the like, which can display a home page including icons of a plurality of applications.
[0034] In order to solve the problem that the terminal is black-screened due to no available home page when returning to the home page from an application during the home page upgrading process, the embodiments of the present application provide a home page upgrading method, as shown in the figure, which can include the following steps. Figure 2
[0035] 201, receiving an instruction of a user exiting a target application.
[0036] Wherein, the user can operate a back key after using the target application to exit the target application, at this time, the terminal can receive the instruction of the user exiting the target application.
[0037] 202, obtaining a target task corresponding to the target application from an application stack.
[0038] Wherein, the application stack is used to manage tasks corresponding to non-home page applications in a running state. Since the system installed in the terminal, such as the Android system, the home page occupies a stack as an application, which is called a home page stack, and other applications occupy a stack, which is called an application stack, when the user uses a certain non-home page application, the terminal can create a task corresponding to the application in the application stack, which includes different activities of the application, therefore, the terminal can obtain the target task corresponding to the target application from the application stack according to the instruction of the user exiting the target application, so as to execute subsequent operations according to the target task.
[0039] 203, if the bottom of the target task is a return home page attribute, judging whether the home page is in an upgrading state.
[0040] The return home attribute is used to indicate that the target application exits and returns to the home page. After obtaining the target task, the terminal can end the activity by the Activity Manager Service module, and send a request message to the Activity Stack Application module. The Activity Stack Application module determines the return attribute at the bottom of the target task according to the request message. If the return attribute is the return home attribute, that is, the target application needs to return to the home page, the Activity Stack Manager module can determine whether the home page is in the upgrading state. If yes, it indicates that the user enters the target application, and the home page enters the upgrading process. At this time, the terminal Update Service module can perform the following step 204, that is, creating an upgrading interface task at the bottom of the target task. The upgrading interface task encapsulates the upgrading interface. According to the upgrading interface task, the upgrading interface is displayed to prompt the user that the home page is currently being upgraded, instead of displaying the home page, so as to avoid the terminal black screen due to no available home page. If no, that is, the bottom of the target task is the return home attribute, the terminal Activity Stack Manager module can return to the home page stack, call the home page activity, and display the home page.
[0041] It should be noted that in the embodiment of the application, the return attribute included in the target task is determined by the terminal according to the entry of the target application when the target task is created. For example, if the target application is started from the home page, the terminal can create a target task including the return home attribute in the application stack according to the instruction of the user entering the target application from the home page, indicating that the target application exits and returns to the home page.
[0042] 204. When it is determined that the home page is in the upgrading state, the upgrading interface is displayed.
[0043] For example, it is assumed that the home page interface of the terminal displays three applications, namely, applications A, B and C. If the user enters the application A from the home page, the terminal can create a corresponding task A including the return home attribute in the application stack. If the user clicks the back key in the application A, the terminal can return to the home page stack to call the home page activity according to the return home attribute in the task A, and display the home page. If the user enters the application B from the home page, the terminal can create a corresponding task B including the return home attribute in the application stack. If the terminal receives an instruction of the user exiting the application B, the terminal can create an upgrading interface task at the bottom of the task B when it is determined that the home page is in the upgrading state, and display the upgrading interface according to the upgrading interface task.
[0044] Further, in the embodiment of the present application, after the terminal completes the homepage upgrade, the terminal can determine whether the interface currently displayed is an upgrade interface. If yes, it indicates that the user is waiting for the homepage upgrade to complete, at this time, the terminal can delete the upgrade task and call the homepage activity in the homepage stack, and update the upgrade interface to the upgraded homepage to complete the homepage upgrade. If no, it indicates that the user is using a non-homepage application, at this time, the terminal can delete the upgrade task.
[0045] The homepage upgrade method provided by the present application, after receiving the instruction of the user exiting the target application, obtains the target task corresponding to the target application from the application stack, if the bottom of the target task is the return homepage attribute, determines whether the homepage is in the upgrade state, and displays the upgrade interface when it is determined that the homepage is in the upgrade state. In this way, when the user needs to exit the target application to the homepage, since the terminal can determine whether the homepage is in the upgrade state, and display the upgrade interface after it is determined that the homepage is in the upgrade state, the user is prompted that the current homepage is being upgraded, avoiding the problem of black screen due to no available homepage, and improving the user experience.
[0046] The above mainly introduces the scheme provided by the embodiment of the present application from the perspective of the terminal. It can be understood that the terminal includes the hardware structure and / or software module corresponding to the execution of each function in order to realize the above functions. Those skilled in the art should easily realize that the algorithm steps of each example described in combination with the embodiments disclosed in the present application can be realized in the form of hardware or the combination of hardware and computer software. Whether a certain function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical scheme. Professional technicians can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0047] The embodiment of the present application can divide the functional modules of the terminal according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated in one processing module. The integrated module can be realized in the form of hardware or software functional module. It should be noted that the division of modules in the embodiment of the present application is illustrative, and is only a logical function division. Actual implementation can have another division method.
[0048] In the case of dividing each functional module corresponding to each function, Figure 3 Another possible composition schematic diagram of the terminal involved in the above embodiment is shown, as shown in the figure, Figure 3 The terminal can include a receiving unit 31, an obtaining unit 32, a determining unit 33, and a display unit 34.
[0049] The receiving unit 31 is configured to support the terminal to perform step 201 in the home page upgrading method. Figure 2 The receiving unit 31 is configured to support the terminal to perform step 201 in the home page upgrading method.
[0050] The obtaining unit 32 is configured to support the terminal to perform step 202 in the home page upgrading method. Figure 2 The obtaining unit 32 is configured to support the terminal to perform step 202 in the home page upgrading method.
[0051] The determining unit 33 is configured to support the terminal to perform step 203 in the home page upgrading method. Figure 2 The determining unit 33 is configured to support the terminal to perform step 203 in the home page upgrading method.
[0052] The displaying unit 34 is configured to support the terminal to perform step 204 in the home page upgrading method. Figure 2 The displaying unit 34 is configured to support the terminal to perform step 204 in the home page upgrading method.
[0053] Further, in the embodiment of the present application, as shown in the home page upgrading method, Figure 4 The terminal can further include a creating unit 35 and a deleting unit 36.
[0054] The creating unit 35 is configured to support the terminal to perform the step of creating a target task corresponding to the target application in the application stack in the home page upgrading method. Figure 2 The creating unit 35 is configured to support the terminal to perform the step of creating a target task corresponding to the target application in the application stack in the home page upgrading method.
[0055] The deleting unit 36 is configured to support the terminal to perform the step of deleting the upgrading task if the current interface is the upgrading interface after the home page upgrading is completed in the home page upgrading method. Figure 2 The deleting unit 36 is configured to support the terminal to perform the step of deleting the upgrading task if the current interface is the upgrading interface after the home page upgrading is completed in the home page upgrading method.
[0056] It should be noted that all related contents of each step involved in the above method embodiments can be cited to the function description of the corresponding function module, which will not be repeated here.
[0057] The terminal provided by the embodiment of the present application is used to execute the above-mentioned home page upgrading method, and thus the same effect as the above-mentioned home page upgrading method can be achieved.
[0058] In the case of using integrated units, Figure 5 Another possible composition of the terminal involved in the above embodiment is shown. As shown in the home page upgrading method, Figure 5 The terminal includes a processing module 41, a communication module 42, and a storage module 43.
[0059] The processing module 41 is used to control and manage the actions of the terminal, for example, the processing module 41 is used to support the terminal to perform steps 201, 202, 203, and 204 in the home page upgrading method, and / or other processes of the technology described herein. The communication module 42 is used to support the communication of the terminal with other network entities. The storage module 43 is used to store the program code and data of the terminal. Figure 2
[0060] Among them, the processing module 41 can be Figure 1 The processor in the embodiment of the present invention can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessor, etc. The communication module 42 can be Figure 1 The storage module 43 may be a communication interface. Figure 1 The memory in.
[0061] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0062] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0063] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0064] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0065] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the method described in various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various storage medium capable of storing program codes.
[0066] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any change or replacement within the technical scope disclosed by the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A homepage upgrade method, characterized in that: The method comprises: Receive a user's instruction to exit the target application; Obtaining a target task corresponding to the target application from an application stack; If the bottom of the target task is a return to homepage attribute, then determine whether the homepage is in an upgraded state; wherein the return to homepage attribute is used to mark the return to the homepage after the target application exits; When it is determined that the homepage is in an upgrade state, creating an upgrade interface task at the bottom of the target task, wherein the upgrade interface is encapsulated in the upgrade interface task; According to the upgrade interface task, the upgrade interface is displayed, and the upgrade interface is used to prompt the user that the homepage is in an upgrade state.
2. The homepage upgrade method according to claim 1, characterized in that: Before receiving the instruction from the user to exit the target application, the method further includes: receiving a user instruction to enter the target application from the homepage; The target task corresponding to the target application is created in the application stack, where the target task includes the return to home page attribute.
3. The homepage upgrade method according to claim 2, characterized in that: The method further comprises: After the homepage upgrade is completed, if the current interface is the upgraded interface, the upgrade task is deleted, and the homepage activity in the homepage stack is called to update the upgraded interface to the upgraded homepage.
4. A terminal, characterized in that: The terminal includes: a receiving unit, an acquiring unit, a judging unit and a display unit; The receiving unit is configured to receive a user instruction to exit the target application; The acquiring unit is configured to acquire the target task corresponding to the target application from the application stack; The judgment unit is configured to judge whether the homepage is in an upgraded state if the bottom of the target task has a return to homepage attribute; wherein the return to homepage attribute is used to indicate that the target application returns to the homepage after exiting; The display unit is configured to, when determining that the homepage is in an upgrade state, create an upgrade interface task at the bottom of the target task, wherein the upgrade interface task encapsulates the upgrade interface; According to the upgrade interface task, the upgrade interface is displayed, and the upgrade interface is used to prompt the user that the homepage is in an upgrade state. The terminal according to claim 4 , wherein: The terminal further includes: a creation unit; The receiving unit is further configured to receive an instruction from a user to enter the target application from the homepage; The creation unit is configured to create the target task corresponding to the target application in the application stack, wherein the target task includes the return to home page attribute. The terminal according to claim 5 , wherein: The terminal further includes: a deletion unit; The deleting unit is configured to delete the upgrade task if the current interface is the upgrade interface after the homepage upgrade is completed; The display unit is further configured to call a homepage activity in a homepage stack and update the upgrade interface to the upgraded homepage.
7. A terminal, characterized in that: The terminal includes: a processor, a memory, a communication interface and a communication bus; The processor is connected to the memory and the communication interface via the communication bus. The memory is used to store computer-executable instructions. When the terminal is running, the processor executes the computer-executable instructions stored in the memory, so that the terminal executes the homepage upgrading method according to any one of claims 1 to 3.
8. A computer storage medium, characterized in that The computer storage medium includes computer execution instructions, and when the computer execution instructions are executed on the terminal, the terminal executes the homepage upgrading method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Intelligent terminal homepage upgrading method and device
CN108363582A