Page processing method and electronic equipment

By implementing page processing methods in terminal devices, the problem of errors in application homepage recognition is solved, ensuring the normal operation and user experience of split-screen technology in the application, and avoiding homepage recognition through stack operation and re-identification of the main page Errors improve the accuracy and efficiency of homepage recognition.

CN119225886AActive Publication Date: 2024-12-31HONOR DEVICE CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411290155.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-31
Estimated Expiration
2044-09-13

AI Technical Summary

Technical Problem

In the prior art, the homepage identification error of the application program results in the in-app split-screen technology that cannot be used normally, affecting the user experience and page display effect.

Method used

By implementing the page processing method in the terminal device, it includes determining the main page in response to the application startup, determining whether there are other pages in the data stack after the stack is released, and clearing the error home page record information, and re-identifying the main page to avoid home page recognition errors.

Benefits of technology

It effectively avoids home page recognition errors, improves the accuracy and efficiency of home page recognition, and ensures the normal use of split-screen technology in the application and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225886A_ABST
    Figure CN119225886A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a page processing method and electronic equipment, and relates to the technical field of terminals. The method comprises the steps that in response to starting of a first process of a first application, a first page is determined to be a main page of the first application through the first process, and the first process can be the main process of the first application. And in response to a user operation of exiting the first page, performing a popping operation on the first page recorded in the first data stack. And after the out-of-stack operation is executed, if the rest pages do not exist in the first data stack, the first page is cleared away as the recorded information of the main page of the first application. Therefore, after the first page is determined as the homepage of the first application, certain error correction measures can be provided in the process of exiting the first page. When it is confirmed that no remaining page exists in the first data stack after the first page is popped out, the first page is cleared away as the recorded information of the home page of the first application, and wrong home page information is prevented from being recorded for the first application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a page processing method and an electronic device. Background Art

[0002] With the continuous development of terminal device technology, the application functions in the terminal devices are increasing, and each application includes a variety of pages.

[0003] Among them, the application usually contains a home page, which can be defined as the main interface or default page presented when a user visits a website or application, and is usually the starting point for the user to interact with the system. Correctly identifying the home page of the application is the basis for the correct implementation of home page related services. However, in the current related implementation, errors in home page recognition may occur. Summary of the invention

[0004] The embodiments of the present application provide a page processing method and an electronic device, which are applied in the field of terminal technology to improve the accuracy of homepages identified by applications.

[0005] In a first aspect, an embodiment of the present application provides a page processing method. The method includes:

[0006] In response to the first process of the first application being started, determining, through the first process, the first page as a main page of the first application, wherein the first process may be the main process of the first application;

[0007] In response to a user operation of exiting the first page, performing a pop operation on the first page recorded in the first data stack;

[0008] After the pop operation is performed, if there are no other pages in the first data stack, the record information that the first page is the main page of the first application is cleared.

[0009] In this implementation, after a certain page (i.e., the first page) is determined as the homepage of the first application, in the process of exiting the first page, the first page will be popped from the first data stack used to record the opened pages, and then it can be further determined whether there are no other pages in the first data stack after the pop operation is performed. If so, it can be confirmed that this scenario may meet the scenario that causes the homepage identification error, so the record information that the first page is the homepage of the first application can be cleared. This avoids recording an erroneous homepage for the first application.

[0010] At the same time, it can be understood that in some scenarios, the first page may indeed be the homepage of the first application. Then when the user instructs to close the first page (that is, the homepage), it is usually the scenario of exiting the first application. In this scenario, even if the record information that the first page is the homepage of the first application is cleared (this information can be considered correct at this time), the main process itself will have to re-identify the homepage of the first application during the next startup of the first application. Therefore, even if the correct homepage record information is cleared, it does not affect the logical processing and business processing of the application itself. At the same time, this can effectively implement error correction of the homepage information (that is, delete the error information) when there are errors in the recorded homepage information, and avoid abnormal homepage-related services caused by erroneous homepage information recorded for the first application.

[0011] In a possible implementation, the method further includes:

[0012] After the pop operation is performed, if there is still a second page in the first data stack, and the page type of the second page is the first type, determining that the second page is the main page of the first application;

[0013] The first type is a page type other than the type of the detail page.

[0014] Through such an implementation method, after deleting the record information that the first page is the homepage of the first application, the pages whose page types are not details pages can be confirmed as the homepage of the first application among the remaining pages in the first data stack, which can improve the efficiency of homepage identification to a certain extent.

[0015] In a possible implementation, in response to starting a first process of a first application, determining, through the first process, that a first page is a main page of the first application includes:

[0016] In response to the first process of the first application being started, a first acquisition request is sent to a first module through the first process, the first module is a module for managing application homepages, and the first acquisition request is used to request to acquire a homepage preset for the first application;

[0017] The first module sends a first response message to the first process in response to the first acquisition request, where the first response message is used to instruct the first process to identify the main page;

[0018] In response to the first response message, the first process determines that the first page is the main page of the first application, and sends a first notification message to the first module, where the first notification message is used to indicate that the first page is the main page;

[0019] The first module records the first page as a main page of the first application in response to the first notification message.

[0020] Through the interaction process introduced above, the main page of the first application can be effectively identified.

[0021] In a possible implementation, after clearing the record information that the first page is the main page of the first application, the method further includes:

[0022] The first process is instructed to redefine the main page of the first application.

[0023] In a possible implementation, instructing the first process to redetermine the main page of the first application includes:

[0024] The first module sends a second notification message to the first process, where the second notification message is used to instruct the first process to redetermine the main page of the first application;

[0025] The first process re-determines the main page of the first application during the next startup process.

[0026] Through the implementation process introduced above, after clearing the record information that the first page is the home page of the first application, the first process can be further triggered to re-determine the home page of the first application during the next startup process, so that the home page identification process can be effectively triggered after the first application is started next time. This avoids the situation where there is no home page recorded for the first application after the home page record information is cleared.

[0027] In a possible implementation, the method further includes:

[0028] In response to the second process of the first application being started, the third page is determined as the main page corresponding to the second process through the second process. The second process may be a sub-process of the first application.

[0029] In this implementation, when the second process also identifies the main page, the main page identified by the second process is recorded as the main page corresponding to the second process, and the application homepage identified by the first process is not overwritten, thereby effectively avoiding the application homepage recording errors caused by homepage overwriting.

[0030] In a possible implementation, in response to the second process of the first application being started, determining, through the second process, the third page as the main page corresponding to the second process includes:

[0031] In response to the second process of the first application being started, sending a second acquisition request to the first module through the second process, the first module being a module for managing application homepages, and the second acquisition request being used to request acquisition of a homepage set for the first application;

[0032] The first module sends a third response message to the first process in response to the second acquisition request, where the third response message is used to instruct the first process to identify the main page;

[0033] In response to the third response message, the first process determines that the second page is the main page of the first application, and sends a second notification message to the first module, where the second notification message is used to indicate that the third page is the main page;

[0034] When the first module records the main page of the first application, the first module records the third page as the main page of the second process in response to the second notification message.

[0035] In this implementation, the main page identified by the second process can be effectively recorded as the main page corresponding to the second application in the terminal device.

[0036] In a possible implementation, the method further includes:

[0037] In response to the second process of the first application being started, if the first module has recorded the main page of the first application, the first module does not record the main page determined by the second process.

[0038] In this implementation, when the second process also identifies the main page, the main page identified by the second process is not recorded, so that the application homepage identified by the first process will not be overwritten, thereby effectively avoiding the application homepage recording errors caused by homepage overwriting.

[0039] In a second aspect, an embodiment of the present application provides a page processing device, which may be an electronic device, or a chip or chip system in an electronic device. The page processing device may include a display unit and a processing unit.

[0040] When the page processing device is an electronic device, the display unit may be a display screen. The display unit is used to perform the display step so that the electronic device implements a page processing method described in the first aspect or any possible implementation of the first aspect.

[0041] When the page processing device is an electronic device, the processing unit may be a processor. The page processing device may also include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the electronic device to implement a page processing method described in the first aspect or any possible implementation of the first aspect.

[0042] When the page processing device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes instructions stored in the storage unit so that the electronic device implements a page processing method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (e.g., a register, a cache, etc.), or a storage unit in the electronic device located outside the chip (e.g., a read-only memory, a random access memory, etc.).

[0043] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory being used to store code instructions, and the processor being used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0044] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instructions are stored. When the computer program or instructions are run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0045] In a fifth aspect, an embodiment of the present application provides a computer program product including a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect or any possible implementation manner of the first aspect.

[0046] In a sixth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0047] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0048] It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a split-screen display interface provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of an abnormal split-screen display provided in an embodiment of the present application;

[0051] Figure 3 A signaling interaction diagram for determining an application homepage provided in an embodiment of the present application;

[0052] Figure 4 Signaling interaction for abnormal homepage identification provided by the embodiment of the present application Figure 1 ;

[0053] Figure 5 Signaling interaction for abnormal homepage identification provided by the embodiment of the present application Figure 2 ;

[0054] Figure 6 A signaling interaction diagram for implementing split-screen display based on a homepage provided in an embodiment of the present application;

[0055] Figure 7 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0056] Figure 8 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;

[0057] Fig. 9 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 1 ;

[0058] Fig.10 A schematic diagram of an implementation of a first data stack provided in an embodiment of the present application;

[0059] Fig.11 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 2 ;

[0060] Fig.12 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 3 ;

[0061] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:

[0063] 1. Main page

[0064] The main page can also be called the home page. It usually refers to the initial page loaded when a user first enters the application through a web browser or application. This page may include a navigation menu or functional modules for accessing other pages. More specifically, the home page can be defined as the main interface or default page presented when a user visits a website or application. It is usually the starting point for the user to interact with the system. For example, the home page can be the interface displayed when a user first visits or starts an application, which is used to display the main functions or navigation options.

[0065] It can be understood that the homepage is the main interface of an application or website, which is usually used to display the most frequently visited functions, information flow or personalized recommended content, and serves as the starting point for users to navigate other functions or pages.

[0066] 2. Content Page

[0067] The user can enter different content pages by clicking on the corresponding controls in the homepage. Among them, the content page can be defined as a detailed information page that provides specific content, goods, services or functions. For example, the content page can be a page presented by the terminal device in response to the user clicking on a specific control on the homepage, and the page contains detailed information or interactive options related to the specific control. The content page may include but is not limited to text, images, videos and other multimedia content, or contain an interface for further operations. In this embodiment, the content page may also be called a details page.

[0068] For example, after a user clicks on an item on the homepage, the extended information, function description or purchase options of the item can be displayed in detail on the content page corresponding to the item, and the user can perform further operations (such as placing an order, making an appointment or viewing more content).

[0069] Compared with the home page, the content page is more specific and in-depth, and is mainly used to display extended information of a selected item. It should be understood that the name of the content page is only an exemplary name. In the actual implementation process, the specific name of the page used to display content can be adjusted according to actual needs, as long as it is a page that meets the definition introduced above.

[0070] 3. Main process

[0071] In a computing system, the main process refers to the main execution unit that is initialized by the operating system and is responsible for managing the execution of the entire program. It can be understood that the main process is usually the main execution unit when a program or system is started, responsible for creating subprocesses and managing system resources. For example, the main process can create and manage one or more subprocesses and coordinate their operation and resource usage.

[0072] In an operating system environment, the initial execution process started by the system or user can be understood as the main process, which can be responsible for executing the core logic of the program, creating and coordinating the operation of sub-processes, and managing resource allocation and process communication.

[0073] 4. Child Process

[0074] A child process is an auxiliary process created by a main process or other parent process, responsible for handling specific tasks or sharing computing loads. For example, a child process can be an independent execution unit created by a main process or parent process, responsible for completing specific tasks or sharing computing work. In an operating system, a child process usually has an independent resource space and execution path, and collaborates with the main process or parent process to complete the program logic.

[0075] 5. Other terms

[0076] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0077] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0078] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0079] 6. Electronic equipment

[0080] The electronic device of the embodiment of the present application may include a handheld device, a vehicle-mounted device, etc. with a data processing function. For example, some electronic devices are: mobile phones, tablet computers, PDAs, laptop computers, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile communication networks (PLANs), and wireless terminals in smart cities. The embodiments of the present application do not limit this.

[0081] As an example but not limitation, in the embodiment of the present application, the electronic device may also be a wearable device. In addition, in the embodiment of the present application, the electronic device may also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0082] The electronic devices in the embodiments of the present application may also be referred to as: terminal equipment, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent or user device, etc.

[0083] In an embodiment of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0084] In order to better understand the technical solution of the present application, the relevant technologies involved in the present application are further introduced in detail below.

[0085] With the rapid development of network technology, smart terminal devices such as smartphones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. In recent years, the development of electronic product screen technology has also reached a new level, and users have higher and higher requirements for screen technology.

[0086] In order to facilitate users to operate and view electronic devices with display screens, currently electronic devices can provide a technology for split-screen display within an application, which can realize dual-screen display of application content. For example, the technology for split-screen display within an application can support the simultaneous display of two pages of the same application on the screen, such as displaying the application homepage and content page at the same time, so that users can use one screen for two purposes, thereby improving the user experience.

[0087] Let's take a tablet computer as an example. First, Figure 1 This article explains the technology of split-screen display within the application. Figure 1 A schematic diagram of a split-screen display interface provided in an embodiment of the present application.

[0088] like Figure 1 As shown in (a) of FIG. 1 , multiple application icons can be displayed on the desktop of the electronic device. For example, the icons of application A, application B, application C, and application D are shown in the figure, and the names of the applications are also displayed below these icons. This embodiment does not limit the application icons, names, and specific display methods on the desktop, which can be set according to actual needs.

[0089] Afterwards, if the electronic device detects a touch operation on an icon of an application, the electronic device can display a page of the application on the screen. For example, when the application is initially started, the electronic device can respond to the icon for the application and display the homepage (or homepage) of the application on the screen.

[0090] It is understandable that the homepage of each application is different. The homepage of the application depends on the specific implementation of the application, and this embodiment does not limit this. Figure 1 As shown in (a) of FIG. 1 , assuming that the user touches the icon of application A, the electronic device may then display, for example, Figure 1 The page 101 shown in (b) in FIG. 100 , where the page 101 may be, for example, the homepage of the application A. Figure 1 It can be determined in (b) that page 101 can be displayed in the center of the screen of the electronic device.

[0091] As shown in the figure, an information stream may be displayed in page 101, and the information stream may include titles of multiple contents and corresponding images. The titles of the contents and the images corresponding to the contents may be understood as controls corresponding to the contents, for example, title 1 and image 1 may be understood as controls corresponding to content 1, and title 2 and image 2 may be understood as controls corresponding to content 2, and so on, which will not be listed one by one this time. Then the user may operate the content controls displayed in page 101 to open the details page of the corresponding content.

[0092] Furthermore, if the in-application split-screen display technology is configured for application A, then after clicking the corresponding content control in the home page 101, for example, the home page and the details page of the corresponding content can be displayed on the screen at the same time.

[0093] like Figure 1 As shown in (b) of FIG. 1 , assuming that the user operates the control corresponding to title 2, the electronic device may display the following on the screen: Figure 1 The interface shown in (c) can be understood as the details page corresponding to content 2.

[0094] Reference Figure 1 It can be determined from (c) that two pages are displayed simultaneously in the interface, namely page 101 and page 102, where both page 101 and page 102 are pages of application A. Page 101 can be understood as the homepage of application A, and page 102 can be understood as a content page of application A. This embodiment does not limit the specific page content.

[0095] Among them, page 101 and page 102 can be understood as two independent pages. For example, the user can perform corresponding interactive operations on page 101, and page 101 can display corresponding content in response to the user operation, and page 102 is not affected. Alternatively, the user can also perform corresponding interactive operations on page 102, and page 102 can display corresponding content in response to the user operation, and page 101 is not affected.

[0096] In this way, by simultaneously displaying multiple pages of the same application in one interface, screen utilization can be improved, thereby improving user experience.

[0097] And referring to the above introduction, it can be determined that when the in-app split-screen display technology is configured for an application, after opening the application, the homepage of the application can be displayed first, and then when a certain content page is clicked to open from the homepage of the application, it can trigger the display of two pages of the application on the screen at the same time, namely the homepage and the content page that triggered the opening.

[0098] On the contrary, if the in-app split-screen display technology is not configured for the application, then after opening the application, the homepage of the application may be displayed first, and then when a content page is clicked to open from the homepage of the application, the content page is displayed in a traditional manner, where the content page may be displayed in the center of the screen, for example.

[0099] In one implementation, for example, whether to configure the in-application split-screen display technology for an application can be set in the "System Settings" application. Alternatively, whether to configure the in-application split-screen display technology for an application can be set in other ways, for example, by setting an application list, in which a plurality of applications configured with the in-application split display technology are recorded. This embodiment does not limit the specific implementation of whether an application configures the in-application split-screen display technology, and it can be selected according to actual needs.

[0100] The above combination Figure 1 The scenario of the in-application split-screen display technology introduced in the embodiment is a relatively common scenario, that is, the homepage of the application is displayed first, and then when the user opens a content page from the homepage of the application, the homepage of the application and the opened content page can be triggered to be displayed on the screen at the same time. It can be understood that it is particularly important to accurately identify the homepage of the application. If the homepage of the application is incorrectly identified, it may be impossible to trigger the display of the homepage of the application and the opened content page on the screen at the same time.

[0101] Combine the following Figure 2 To explain this abnormal situation, Figure 2An abnormal schematic diagram of the split-screen display provided in an embodiment of the present application.

[0102] Figure 2 (a) and (b) in Figure 1 (a) and (b) are similar and will not be described here. The difference is that Figure 2 In the scenario, assume that the electronic device incorrectly identifies the homepage of application A. For example, the homepage of application A should be page 101, but the electronic device determines page 103 as the homepage of application A.

[0103] Then when the user Figure 1 When the page 101 shown in (b) triggers the opening of the details page of content 2, the electronic device will think that the display of the details page is not triggered from the home page, and it does not meet the scenario of displaying the home page and the details page on the screen at the same time. Therefore, the electronic device will not enable the split-screen display technology, and will display the opened details page separately. Figure 1 As shown in (c) , the electronic device will display the opened page 103 separately on the screen, for example, in a centered display manner.

[0104] Then refer to the above Figure 2 What is certain is that when the home page of an application is incorrectly identified, the split-screen technology within the application will not work properly.

[0105] In addition, because the homepage is usually the initial page displayed by an application and is also a relatively important page, the electronic device may adapt the application's homepage to the screen ratio. For example, when a tablet device displays the application homepage in landscape mode, if the original homepage of the application is directly displayed, the effect is similar to Figure 1 The state shown in (b) in the figure means that only a part of the area in a larger screen is used to display the homepage of the application. Such a display effect is obviously not good.

[0106] Therefore, the electronic device can, for example, adaptively re-layout the controls, text, and images contained in the homepage of the application so that the homepage of the application can be displayed in full screen on the screen of the electronic device, thereby improving the display effect of the homepage of the application. In this application scenario, it is also particularly important to correctly identify the homepage of the application.

[0107] If the home page of the application is incorrectly identified, the home page of the application may not be adaptively adjusted to a full-screen display state, resulting in poor display effect of the page.

[0108] The above introduces two application scenarios for the identification of the homepage of an application. In addition to the two scenarios described above, after the homepage of an application is identified, there are various other possible scenarios for the application of the homepage, which will not be repeated here. In short, it can be understood that the correct identification of the homepage of an application is an important basis for realizing related functions based on the homepage triggering. Under this premise, the relevant application scenarios of the functions triggered by the homepage can be arbitrarily expanded according to actual needs.

[0109] The following is a description of possible situations that may lead to homepage recognition errors in conjunction with specific embodiments. Figure 3 The following describes the process of determining the application home page after the application is started. Figure 3 A signaling interaction diagram for determining an application homepage provided in an embodiment of the present application.

[0110] like Figure 3 As shown, the process includes:

[0111] 301. Main process indication page 1 starts.

[0112] In this embodiment, it is assumed that the main process is the process started after the first application is started, that is, the main process is specifically the main process of the first application. At the same time, it is assumed that page 1 is the main page of the first application. That is to say, for example, after the first application is started, the terminal device can start the main process of the first application. After the main process of the first application is started, the main page of the application is usually started, so the main process can instruct page 1 to start.

[0113] 302. The main process sends an acquisition request a to the AMS.

[0114] Among them, AMS (Activity Manager Service) is a service included in the framework layer of the terminal device, which is responsible for managing the life cycle of the application's activities, as well as the application's tasks, processes, and activity stacks. AMS ensures effective management of system resources and coordinates switching between applications and background operations.

[0115] It should be understood that Activity is the basic component of an application in the Android system. Usually, an Activity represents a separate page of an application. An application can contain multiple Activities, and each Activity usually contains a user interface that can interact with the user. A page usually refers to the specific interface or screen that the user sees in the application. It can be understood as a part of an Activity or a representation of an Activity.

[0116] Among them, the relationship between the page and the Activity is that the page is attached to the Activity, and the Activity manages the life cycle and behavior of the page. For example, it can be understood that the Activity is a container for the page, where the Activity is used to manage the creation, display, and destruction of the page. When the user navigates to a new Activity, the current Activity will be paused or destroyed, and the new Activity will be created and displayed. In addition, it can be understood that the page is part of the Activity, and all views on the page (such as buttons, text boxes) are managed by the Activity. The layout and interface logic of the page are usually defined in the layout file (XML) and code of the Activity.

[0117] After the main process is started, the main process usually needs to determine the homepage of the first application to ensure the normal operation of subsequent functions related to the homepage. In some implementations, the homepages of some applications may be pre-stored on the system side of the terminal device. Therefore, the child process may send a request for acquisition a to the AMS, where the request for acquisition a is used to request the homepage preset for the first application. Alternatively, the request for acquisition a is used to inquire whether a homepage is preset for the first application.

[0118] 303. AMS sends an acquisition request a to the homepage detection module.

[0119] Among them, the homepage detection module (HomePageDetect) can be, for example, a module included in the framework layer of the terminal device, which manages the homepage of the application. In one implementation, the homepage detection module and the AMS can be two independent modules, or the homepage detection module can also be a submodule included in the AMS. This embodiment does not limit the specific logical relationship between the homepage detection module and the AMS, which can be selected according to actual needs.

[0120] For example, the homepage detection module may store preset homepages corresponding to multiple application programs. Therefore, after receiving the acquisition request a, the AMS may further send the acquisition request a to the homepage detection module.

[0121] 304. The homepage detection module sends a response message a to the main process.

[0122] In this embodiment, for example, the acquisition request a may carry an application identifier of a first application, wherein the application identifier may be the package name of the application, or may be other implementation forms, and this embodiment does not limit this. And the homepage identifiers corresponding to the application identifiers of multiple applications may be stored in the homepage detection module, wherein the homepage identifier is also the page identifier corresponding to the main page of the application, wherein the page identifier may be, for example, a preset number for the page, or may be other implementation forms, and this embodiment does not limit this either. It can be understood that as long as the application identifier can be used to distinguish different applications, and the page identifier can be used to distinguish different pages, it will be sufficient.

[0123] After receiving the acquisition request a, the homepage detection module can query whether the homepage corresponding to the first application is stored according to the application identifier of the first application carried in the acquisition request a. If it is stored, the homepage detection module can send a response message to the main process to indicate the homepage corresponding to the first application.

[0124] If not stored, it means that the system side has not preset the homepage of the first application, so the homepage detection module can send a Figure 3 The response message a shown in the figure indicates that the homepage of the first application is not preset on the system side. Meanwhile, the response message a may also indicate that the main process automatically identifies the homepage of the first application.

[0125] 305. The main process identifies page 1 as the main page.

[0126] After the main process receives the response message a, the main process can automatically detect the homepage of the first application according to the instruction of the response message a. It can be understood that after the first application is started, the homepage is always the first page displayed, and the content contained in the homepage is usually relatively large. The content introduced here can include controls, text, images, etc. In one implementation, for example, the following strategy can be used to determine the homepage of the first application:

[0127] After the first application is started, the page containing more than m contents among the n pages displayed in sequence is determined as the home page, where n can be set to 3, for example, and m can be set to 50, for example. In the actual implementation process, the specific values ​​of n and m can be set arbitrarily according to actual needs.

[0128] It is also understandable that the homepage identification strategy currently introduced is only one possible implementation. For example, different types of applications can be considered for their business content, so as to set different determination strategies. This embodiment does not limit the specific implementation method for implementing homepage detection for applications, and it can be arbitrarily set according to actual needs.

[0129] In the current example, because it is assumed that page 1 is the home page of the first application, the main process may, for example, determine that page 1 is the main page of the first application.

[0130] 306. The main process sends a notification message a to the AMS.

[0131] Among them, notification message a is used to inform the AMS of the homepage detection result. In this embodiment, notification message a is used to indicate that page 1 is the homepage of the first application.

[0132] 307. The AMS sends a notification message a to the homepage detection module.

[0133] 308. The homepage detection module saves page 1 as the homepage of the first application.

[0134] After the homepage detection module receives the notification message a, it can be determined that the application homepage automatically detected by the main process is page 1, so the homepage detection module can save this detection result, that is, save page 1 as the homepage of the first application. Exemplarily, the homepage detection module can, for example, save the association between the application identifier of the first application and the page identifier of page 1.

[0135] 309. The homepage detection module sends a feedback message a to the main process.

[0136] Because the homepage of the first application has been stored in the homepage detection module, the homepage detection module can indicate to the main process that there is no need to repeatedly detect the homepage in the future through the feedback message a, so as to save the system overhead caused by the main process performing homepage identification. In some implementations, the current step 309 can be omitted.

[0137] The above combination Figure 3 The embodiment introduces a process for determining a home page of a first application after the main process of the first application is started.

[0138] In the above Figure 3 Based on the introduction, the following Figure 5 and Figure 5 The two subsequent situations that lead to home page identification are explained separately. Figure 4 Signaling interaction for abnormal homepage identification provided by the embodiment of the present application Figure 1 , Figure 5 Signaling interaction for abnormal homepage identification provided by the embodiment of the present application Figure 2 .

[0139] In one implementation, Figure 4 and Figure 5 The steps shown can be understood as Figure 3 Execute after the last step shown.

[0140] like Figure 4As shown, the process includes:

[0141] 401. Subprocess indication page 2 starts.

[0142] In this embodiment, the sub-process may be a process started after the mini-program is opened in the first application, and the sub-process may be understood as a process corresponding to the mini-program. Then, page 2 may be, for example, a main page corresponding to the opened mini-program.

[0143] 402. The child process sends a request b to the AMS.

[0144] After the child process is launched, the child process also needs to determine the homepage of the first application to ensure the normal operation of subsequent functions related to the homepage. Therefore, similar to the above description, the child process can send a request b to AMS. In addition, whether the child process is launched by the logic of opening the mini program or the business logic of the first application, the child process is a process under the first application.

[0145] Therefore, the acquisition request b is also used to request to obtain the homepage preset for the first application. Alternatively, the acquisition request a is used to inquire whether there is a homepage preset for the first application. For example, the acquisition request b may carry the application identifier of the first application.

[0146] 403. AMS sends an acquisition request b to the homepage detection module.

[0147] 404. The homepage detection module sends a response message b to the child process.

[0148] After receiving the acquisition request b, the homepage detection module can query whether the homepage corresponding to the first application is stored according to the application identifier of the first application carried in the acquisition request b. Its implementation is similar to that described in the above embodiment and will not be repeated here.

[0149] Reference Figure 4 , assuming that the system side does not preset the homepage of the first application, the homepage detection module can send to the child process Figure 4 The response message b shown is used to indicate that the homepage of the first application is not preset on the system side. At the same time, the response message b can also instruct the child process to automatically identify the homepage of the first application.

[0150] It should be understood that storing the homepage of the first application on the system side does not mean that the homepage of the first application is preset on the system side. These are two different concepts. Only when the homepage of the application is pre-set on the system side can the system side preset the homepage of the application. Such preset homepage is generally fixed. Unless the system side initiates a modification, the preset homepage generally does not change.

[0151] After the system triggers the process to automatically identify the homepage of the application, the system side stores the application homepage identified by the process, which is another storage logic. In this implementation, considering that the application process may need to modify the application homepage it identifies, the homepage detection module can respond to the notification of the process and update the application homepage it stores.

[0152] 405. The sub-process identification page 2 is the main page.

[0153] After the child process receives the response message b, the child process can automatically detect the home page of the first application according to the instruction of the response message b. The implementation of the home page detection is similar to that described above and will not be repeated here.

[0154] In the current example, since it is assumed that page 2 is the main page of the applet corresponding to the child process, and the child process is a process under the first application, the child process can, for example, determine that page 2 is the main page of the first application.

[0155] 406. The child process sends a notification message b to the AMS.

[0156] The notification message b is used to inform the AMS of the homepage detection result. In this embodiment, the notification message b is used to indicate that page 2 is the homepage of the first application.

[0157] 407. AMS sends a notification message b to the homepage detection module.

[0158] 408. The homepage detection module saves page 2 as the homepage of the first application.

[0159] After the homepage detection module receives the notification message b, it can be determined that the application homepage automatically detected by the child process is page 2. Considering that the application process may modify the detected homepage, the homepage detection module can save this detection result, that is, save page 2 as the homepage of the first application. Exemplarily, the homepage detection module can, for example, save the association between the application identifier of the first application and the page identifier of page 2.

[0160] Then combine Figure 3 and Figure 4 , the homepage detection result stores page 2 as the homepage of the first application, which actually overwrites the result of the main process detecting that page 1 is the homepage of the first application. However, the information that page 2 is the homepage of the first application is actually wrong. Page 2 is the homepage of the mini program launched in the first application, not the homepage of the first application. Therefore, this will cause an error in the homepage recorded for the first application.

[0161] 409. The home page detection module sends a feedback message b to the child process.

[0162] Because the homepage of the first application is already stored in the homepage detection module, the homepage detection module can indicate to the child process that it does not need to detect the homepage again later through the feedback message b, so as to save the system overhead caused by the child process performing homepage identification. In some implementations, the current step 409 can be omitted.

[0163] Combined with the above Figure 4 It can be determined from the introduction that after the main process is started, when page 1 has been identified as the homepage of the first application, the sub-process of the first application recognizes page 2 as the homepage of the first application, and overwrites the information that page 1 is the homepage of the first application, resulting in an error in the homepage of the first application recorded by the homepage detection module.

[0164] Combine the following Figure 5 Another abnormal situation is described.

[0165] like Figure 5 As shown, the process includes:

[0166] 501. The main process instructs page 1 to trigger page 3 to start.

[0167] For example, page 1 is the main page of the first application, and page 3 is a detail page of the first application. For example, page 1 may include an open control for page 3, and the user may operate the open control for page 3 in page 1, thereby triggering the launch of page 3 from page 1. Afterwards, the main process may instruct to trigger the launch of page 3 from page 1.

[0168] 502. The main process sends a startup message of page 3 to the AMS.

[0169] 503. AMS sends a detection request a to the homepage detection module.

[0170] Among them, AMS is used to manage the life cycle of the activity of the application. In one implementation, AMS is used to manage how to display a specific page. For example, single window display or split screen display. Assuming that the in-application split screen technology is configured for the first application, then AMS needs to determine whether the scene of the currently displayed page 3 meets the triggering scene of the in-application split screen.

[0171] Based on the above introduction, it can be determined that when a user triggers to open a detail page from the homepage, it can be considered that the application scenario of split screen in the application is met. Therefore, AMS needs to determine whether page 1 is the homepage of the first application. As shown in the figure, AMS can send a detection request a to the homepage detection module to query whether page 1 is the homepage of the first application.

[0172] 504. The homepage detection module sends the detection result a to the AMS.

[0173] Based on the above Figure 3 It can be determined from the introduction that the main process determines that page 1 is the home page of the first application, and the home page detection module records this information. Therefore, the home page detection module sends the detection result to the AMS to indicate that page 1 is the home page of the first application.

[0174] 505. AMS displays page 1 and page 3 in split screen.

[0175] Because AMS knows that page 1 is the homepage of the first application, the current scenario of triggering the opening of page 3 from page 1 meets the scenario of split screen within the application. Therefore, AMS will display page 1 and page 3 in split screen, thereby realizing the in-application split screen technology introduced above.

[0176] 506. The main process triggers display of a floating window of the application in response to a user operation.

[0177] In a scenario where page 1 and page 3 of an application are displayed in split screen, it is assumed that a user triggers a floating window display of the first application through an operation, that is, the interface of the first application is displayed in the floating window.

[0178] 507. The main process sends the instruction information displayed in the floating window to the AMS.

[0179] Based on the above introduction, it can be determined that the AMS user manages the acquired life cycle. Therefore, when it is necessary to trigger the display of the interface of the first application in the floating window, the main process can send an indication message to AMS to inform it that the interface of the first application currently needs to be displayed in the floating window.

[0180] 508. AMS displays page 3 in a floating window.

[0181] It can be understood that the purpose of displaying multiple interfaces of the same application in split screen is usually to ensure that the interface can be displayed at a normal size while maximizing the use of screen space. When the application page is transferred to the floating window for display, the size of the floating window is usually proportional to the original size of the page. Therefore, when switching from the state of displaying page 1 and page 3 of the first application in split screen to displaying the page of the first application in the floating window, the most recently opened page will be directly displayed in the floating window. That is, AMS will control the display of page 3 in the floating window.

[0182] 509. The system triggers the main process to restart.

[0183] When page 3 is displayed in the floating window, the system may trigger the main process to restart. For example, when the system permissions of the first application are modified, the system may trigger the main process of the first application to restart. Or when an exception occurs in the main process, the system may trigger the main process of the first application to restart. Or the system may also respond to user operations, thereby triggering the main process to restart.

[0184] This embodiment does not limit the specific scenario for triggering the restart of the main process, and it can be expanded according to actual needs. In short, if the main process is restarted while page 3 of the first application is being displayed in the floating window, subsequent problems will arise.

[0185] 510. The main process is restarted, and page 3 is restarted.

[0186] After the main process is restarted, the main process usually restarts the application page displayed on the screen when the process is closed to restore the screen display state before the process is closed. Therefore, the main process restarts page 3.

[0187] 511. The main process sends a request c to the AMS.

[0188] After the main process is restarted, in order to improve the correctness of the confirmed homepage, the main process will confirm the homepage of the first application again to ensure the normal operation of subsequent functions related to the homepage. Therefore, similar to the above description, the main process can send a request c to the AMS.

[0189] 512. AMS sends an acquisition request c to the homepage detection module.

[0190] 513. The home page detection module sends a response message c to the main process.

[0191] After receiving the acquisition request c, the homepage detection module can query whether the homepage corresponding to the first application is stored according to the application identifier of the first application carried in the acquisition request c. Its implementation is similar to that described in the above embodiment and will not be repeated here.

[0192] Reference Figure 5 , assuming that the system side does not preset the homepage of the first application, the homepage detection module can send to the main process Figure 5 The response message c shown is used to indicate that the homepage of the first application is not preset on the system side. At the same time, the response message c can also instruct the main process to automatically identify the homepage of the first application.

[0193] 514. Main process identification page 3 is the main page.

[0194] After the main process receives the response message c, the main process can automatically detect the home page of the first application according to the instruction of the response message c. After the main process is restarted, the only page started is page 3. Referring to the logic of determining the home page by the process described above, page 3 meets the characteristic of being at the front of the page startup sequence. When the amount of content contained in page 3 is greater than a certain amount, the main process may identify page 3 as the main page.

[0195] In the current example, assume that the main process determines that page 3 is the main page of the first application.

[0196] 515. The main process sends a notification message c to the AMS.

[0197] The notification message c is used to inform the AMS of the homepage detection result. In this embodiment, the notification message c is used to indicate that page 3 is the homepage of the first application.

[0198] 516. AMS sends a notification message c to the homepage detection module.

[0199] 517. The homepage detection module saves page 3 as the homepage of the first application.

[0200] After the homepage detection module receives the notification message c, it can be determined that the application homepage automatically detected by the main process is page 3. Considering that the application process may modify the detected homepage, the homepage detection module can save this detection result, that is, save page 3 as the homepage of the first application. Exemplarily, the homepage detection module can, for example, save the association between the application identifier of the first application and the page identifier of page 3.

[0201] Then combine Figure 3 and Figure 5 , the homepage detection result stores page 3 as the homepage of the first application, which actually overwrites the result of the main process detecting that page 1 is the homepage of the first application. However, the information that page 3 is the homepage of the first application is actually wrong. Page 3 is a detail page of the first application, not the homepage of the first application. Therefore, this will cause errors in the homepage recorded for the first application.

[0202] 518. The home page detection module sends a feedback message c to the main process.

[0203] Because the home page of the first application has been stored in the home page detection module, the home page detection module can indicate to the main process that there is no need to repeatedly detect the home page through the feedback message c, so as to save the system overhead caused by the main process performing home page identification. In some implementations, the current step 518 can be omitted.

[0204] Combined with the above Figure 5It can be determined from the introduction that after the main process is started, when page 1 has been identified as the homepage of the first application, the main process of the first application also identifies page 3 as the homepage of the first application, and overwrites the information that page 3 is the homepage of the first application, resulting in an error in the homepage of the first application recorded by the homepage detection module.

[0205] exist Figure 4 and Figure 5 Based on the fact that the page where the homepage detection module stores errors is the homepage of the first application, the following example uses the in-application split screen technology as an example. Figure 6 This section describes the impact of error messages recorded on the homepage. Figure 6 A signaling interaction diagram for implementing split-screen display based on a home page provided in an embodiment of the present application.

[0206] like Figure 6 As shown, the process includes:

[0207] 601. The main process instructs page 1 to trigger page 3 to start.

[0208] For example, page 1 is the main page of the first application, and page 3 is a detail page of the first application. For example, page 1 may include an open control for page 3, and the user may operate the open control for page 3 in page 1, thereby triggering the launch of page 3 from page 1. Afterwards, the main process may instruct to trigger the launch of page 3 from page 1.

[0209] 602. The main process sends a startup message of page 3 to the AMS.

[0210] 603. The AMS sends a detection request a to the homepage detection module.

[0211] Among them, AMS is used to manage the life cycle of the activity of the application. In one implementation, AMS is used to manage how to display a specific page. For example, single window display or split screen display. Assuming that the in-application split screen technology is configured for the first application, then AMS needs to determine whether the scene of the currently displayed page 3 meets the triggering scene of the in-application split screen.

[0212] Based on the above introduction, it can be determined that when a user triggers to open a detail page from the homepage, it can be considered that the application scenario of split screen in the application is met. Therefore, AMS needs to determine whether page 1 is the homepage of the first application. As shown in the figure, AMS can send a detection request a to the homepage detection module to query whether page 1 is the homepage of the first application.

[0213] 604. The homepage detection module sends the detection result a to the AMS.

[0214] Based on the above Figure 3 and Figure 4 It can be determined from the introduction that the original main process determined that page 1 was the homepage of the first application, and the homepage detection module recorded this information. However, the subsequent sub-process determined that page 2 was the homepage of the first application, and in the homepage detection module, the record of page 2 being the homepage of the first application overwrote the record of page 1 being the homepage of the first application. On this basis, the homepage detection module will send a detection result to AMS to indicate that page 1 is not the homepage of the first application, because the homepage of the first application recorded in the current homepage detection module is page 2.

[0215] And, based on the above Figure 3 and Figure 5 It can be determined from the introduction that the original main process determined that page 1 was the homepage of the first application, and the homepage detection module recorded this information. However, the subsequent main process determined that page 3 was the homepage of the first application, and in the homepage detection module, the record of page 3 being the homepage of the first application overwrote the record of page 1 being the homepage of the first application. On this basis, the homepage detection module will send a detection result to AMS to indicate that page 1 is not the homepage of the first application, because the homepage of the first application recorded in the current homepage detection module is page 3.

[0216] 605. AMS starts page 3 in a single window.

[0217] Because AMS knows that page 1 is not the homepage of the first application, the current scenario of triggering the opening of page 3 from page 1 does not conform to the split-screen scenario within the application, so AMS will display page 3 in a single window.

[0218] This will cause the effect of displaying page 1 and page 3 in a split screen to display page 3 in a single window on the screen. From the user's perspective, the in-app split screen technology failed to be enabled, which led to abnormal implementation of the technology and a poor user experience. The reason for this is still the home page recognition error.

[0219] In view of the technical problems described above, the present application proposes a page processing method to avoid the occurrence of the above-described homepage recognition error. The page processing method provided by the present application is described in detail below in conjunction with specific embodiments.

[0220] The page processing method of the embodiment of the present application can be executed by an electronic device with a processor and a screen, or by a chip, a chip system or a processor that supports the electronic device to implement the page processing method, or by a logic module or software that can implement all or part of the functions of the electronic device, and the present application does not make specific restrictions on this. The following is a detailed description of the page processing method of the embodiment of the present application, taking the electronic device as the execution subject.

[0221] The electronic device may be, for example, a terminal device. Figure 7 and Figure 8 Provide a brief introduction to the terminal equipment.

[0222] For example, Figure 7 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.

[0223] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (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 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0224] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0225] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. In one implementation, the page processing method provided in the present application can be executed by a processor, for example.

[0226] Furthermore, the terminal device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the 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 change display information.

[0227] The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the terminal device 100.

[0228] For example, Figure 8 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application.

[0229] like Figure 8 As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the system may include an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, a hardware abstraction layer (HAL) and a kernel layer. It should be noted that the embodiment of the present application is illustrated by taking the Android system as an example. In other operating systems (such as Hongmeng system, IOS system, etc.), as long as the functions implemented by each functional module are similar to the embodiments of the present application, the solution of the present application can also be implemented.

[0230] Among them, the application layer can include a series of application packages.

[0231] like Figure 8As shown, the application package may include camera, calendar, phone, map, phone, music, settings, mailbox, video, social and other applications. Of course, the application layer may also include other application packages, such as payment applications, shopping applications, banking applications, social applications and other third-party applications, which are not limited in this application. The first application introduced in this application may be any application in the application layer currently introduced, which is not limited in this embodiment.

[0232] The application framework layer provides an application programming interface (API) and a programming framework for the application programs in the application layer. The application framework layer includes some predefined functions.

[0233] like Figure 8 As shown, the application framework layer may include a window manager, a content provider, a resource manager, a view system, a notification manager, etc. In addition, the application framework layer may also include Figure 8 The AMS and homepage detection modules shown in Figure 8 In the example, the homepage detection module may be a submodule in the AMS, or in other implementations, the homepage detection module and the AMS may also be two independent modules, which is not limited in this embodiment.

[0234] Among them, Android runtime includes core library and virtual machine. Android runtime is responsible for scheduling and management of Android system. The core library contains two parts: one part is the function that needs to be called by Java language, and the other part is the core library of Android.

[0235] The HAL layer may include Wi-Fi HAL, audio HAL, camera service (Camera HALServer) unit of the HAL layer, and software code library, etc.

[0236] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0237] The following, in conjunction with the accompanying drawings, describes in detail the technical solutions of the embodiments of the present application and how the technical solutions of the embodiments of the present application solve the above-mentioned technical problems with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0238] Let's first combine Fig. 9 and Fig.10 The page processing method provided by this application is described. Fig. 9 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 1 , Fig.10 A schematic diagram of an implementation of the first data stack provided in an embodiment of the present application.

[0239] like Fig. 9 As shown, the method includes:

[0240] 900. Determine that page 1 is the home page, and trigger the main process to restart.

[0241] The implementation of this step is similar to the above Figure 3 Examples, and Figure 5 Some of the contents introduced in the embodiments are similar and will not be repeated here.

[0242] 901. The main process restarts and restarts page 3. 902. The main process sends a request c to the AMS. 903. The AMS sends a request c to the homepage detection module. 904. The homepage detection module sends a response message c to the main process. 905. The main process identifies page 3 as the main page. 906. The main process sends a notification message c to the AMS. 907. The AMS sends a notification message c to the homepage detection module. 908. The homepage detection module saves page 3 as the homepage of the first application. 909. The homepage detection module sends a feedback message c to the main process.

[0243] Among them, the implementation method of 901 to 909 is similar to the implementation method of 510 to 518 in the above embodiment, and will not be repeated here.

[0244] 910. The main process indicates to exit page 3.

[0245] Based on the above steps, it can be understood that after the above process, the homepage detection module will record page 3 as the homepage of the first application, but in fact the recorded homepage information is wrong. On this basis, assuming that the user closes page 3, the user can trigger the closing of page 3 through the corresponding page operation, and the corresponding main process can instruct to exit page 3.

[0246] 911. The main process sends an exit message of page 3 to AMS to inform that page 3 needs to be closed.

[0247] 912. The AMS performs a pop operation on page 3 recorded in the first data stack, and determines whether there are no remaining pages in the first data stack.

[0248] In this embodiment, the first data stack is used to record the opened pages. When the page is opened, for example, the page identifier can be stored in the first data stack, and when the page is closed, for example, the page identifier can be popped from the first data stack. And it can be understood that, because of the special structure of the data stack, the page identifier of the page currently in the open state can be located at the top of the stack. And after the page currently in the open state is closed, the page identifier at the top of the stack can be popped, so that the page displayed after closing is located at the top of the stack, and so on.

[0249] Combine the following Fig.10 The changes of the first data stack in the page processing process described above are introduced, refer to Fig.10 As shown in (a), assuming that page 1 is opened when the first application is initially started, then, for example, a page identifier of page 1 may be pushed into a stack, thereby recording page 1 in the illustrated first data stack.

[0250] Afterwards, refer to Fig.10 As shown in (b), assuming that page 3 is opened by triggering from page 1, then for example, the page identifier of page 3 can be pushed into the stack, so that page 1 and page 3 are recorded in sequence in the first data stack shown in the figure.

[0251] Later, when the main process is restarted, refer to Fig.10 As shown in (c), for example, the page identifier recorded in the first data stack can be cleared. And referring to the above introduction, it can be determined that after the main process is restarted, page 3 will also be restarted, so refer to Fig.10 As shown in (d) in FIG. 1 , the page identifier of page 3 may be pushed into the stack, thereby recording the page identifier of page 3 in the first data stack.

[0252] Afterwards, assuming that the user triggers closing page 3, the AMS responds to the exit message of page 3 sent by the main process, for example, by performing a pop operation on page 3 recorded in the first data stack. After performing the pop operation, the main process further determines whether there are any remaining pages in the first data stack.

[0253] In some possible cases, after performing a pop operation on page 3, there may be remaining pages in the first data stack. In this case, it is more likely that the remaining pages contain the home page because the home page is usually stored near the bottom of the data stack.

[0254] Then, for example, the remaining pages in the first data stack whose page type is the first type can be determined as the main page of the first application. Afterwards, AMS can, for example, send a corresponding notification message to the home page identification module, so that the home page identification module records the main page of the currently identified first application. Among them, the first music line can, for example, be a page type other than the type of the details page, that is, the remaining non-details pages in the first data stack can be determined as the main page of the first application. Alternatively, the above-mentioned startup order can be added (for example, located near the bottom of the stack in the first data stack), and the number of contents in the page is greater than the preset number, so as to filter out the corresponding pages and identify them as the main pages of the first application. Through this implementation, the efficiency of home page identification for the first application can be improved to a certain extent.

[0255] 913. When there are no remaining pages in the first data stack, the AMS sends a clear notification to the homepage detection module.

[0256] With reference to the above-mentioned embodiment, it can be determined that after the page recorded in the first data stack is popped out, there are no remaining pages in the first data stack, and the page recorded in the first data stack before being popped out has been recorded as the homepage of the first application. In this case, the homepage of the first application recorded in the homepage detection module may be wrong. Therefore, the AMS module can send a clear notification to the homepage detection module, wherein the clear notification is used to instruct the homepage detection module to clear the homepage information recorded for the first application, so as to avoid recording erroneous homepage information in the homepage detection module, resulting in abnormal display of subsequent pages of the first application.

[0257] In the current example, after the AMS performs a pop operation on page 3 recorded in the first data stack, there are no remaining pages in the first data stack. Based on the above description, it can be determined that the homepage detection module has recorded page 3 as the homepage of the first application. Then, the AMS can send a clear notification to the homepage detection module to instruct the homepage detection module to clear the information that page 3 is the homepage of the first application.

[0258] 914. The homepage detection module deletes the record information that page 3 is the homepage of the first application.

[0259] In this way, when page 1 has been identified as the homepage of the first application after the main process is started, the main process of the first application can identify page 3 as the homepage of the first application and overwrite the information that page 3 is the homepage of the first application, thereby clearing the error information about the homepage of the first application recorded by the homepage detection module to avoid the existence of the error information affecting the subsequent page display of the first application.

[0260] 915. The home page detection module sends a feedback message d to the main process.

[0261] Among them, the feedback message d is used to instruct the main process to re-detect the home page, and the main process can re-execute the home page identification process introduced in the above embodiment during the next startup process to effectively improve the success rate of home page identification.

[0262] In this embodiment, in the process of closing a page, a pop operation is performed on the closed page in the first data stack. After that, if the closed page was previously identified as the homepage of the first application, it is further determined whether there are any remaining pages in the first data stack after the pop operation is performed on the closed page. If there are no other remaining pages in the first data stack, it is considered that the above-mentioned situation of identifying the restarted details page as the application homepage may occur. Therefore, the AMS can instruct the homepage detection module to clear the homepage information recorded by the first application to avoid abnormal page display of the first application caused by erroneous homepage information recorded for the first application. Such an implementation can provide certain error correction measures in the process of closing the homepage recorded for the first application to avoid the long-term existence of erroneous homepage information recorded for the first application. In addition, the homepage detection module can also re-identify the homepage of the first application in the main process to effectively improve the correctness of the homepage identified for the application.

[0263] Next, combine Fig.11 A solution to the abnormal home page recognition caused by the startup of the child process is described. Fig.11 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 2 .

[0264] like Fig.11 As shown, the method includes:

[0265] 1101. The child process indicates that page 2 is started. 1102. The child process sends a request b to the AMS. 1103. The AMS sends a request b to the homepage detection module. 1104. The homepage detection module sends a response message b to the child process. 1105. The child process identifies page 2 as the main page. 1106. The child process sends a notification message b to the AMS. 1107. The AMS sends a notification message b to the homepage detection module.

[0266] Among them, the implementation of 1101 to 1107 is similar to the implementation of 401 to 407 introduced above, and will not be repeated here.

[0267] 1108. The home page detection module saves page 2 as the home page of the child process.

[0268] After the homepage detection module receives the notification message b, it can be determined that the application homepage automatically detected by the child process is page 2. The homepage detection module can, for example, identify the process that sends the notification message. When the homepage detection module identifies that the process that sends the notification message b is a child process instead of the main process, the homepage detection module can, for example, record page 2 as the homepage of the child process.

[0269] In this way, on the one hand, the homepage detected by the child process can be effectively recorded, and on the other hand, it will not overwrite the application homepage previously identified by the main process. Therefore, it can effectively avoid the homepage detected by the child process overwriting the homepage detected by the main process, thereby causing the problem of incorrect homepage recorded for the first application.

[0270] 1109. The home page detection module sends a feedback message b to the child process.

[0271] Among them, the implementation of 1109 is similar to the implementation introduced in the above 409, and will not be repeated here.

[0272] In this embodiment, a home page detection module is set to identify the type of process that sends a notification message. When the process that sends the notification message is a child process, the home page detection module separately records the page indicated by the notification message as the home page of the child process, without overwriting the application home page previously identified by the main process, thereby effectively avoiding the problem of incorrect application home page identification caused by the startup of the child process.

[0273] Next, combine Fig.12 Another solution to the abnormal home page recognition caused by the start of the child process is described. Fig.12 Signaling interaction of the page processing method provided in the embodiment of the present application Figure 3 .

[0274] like Fig.12 As shown, the method includes:

[0275] 1201. The child process indicates that page 2 is started. 1202. The child process sends a request b to the AMS. 1203. The AMS sends a request b to the homepage detection module. 1204. The homepage detection module sends a response message b to the child process. 1205. The child process identifies page 2 as the main page. 1206. The child process sends a notification message b to the AMS. 1207. The AMS sends a notification message b to the homepage detection module.

[0276] Among them, the implementation of 1201 to 1207 is similar to the implementation of 401 to 407 introduced above, and will not be repeated here.

[0277] 1208. The home page detection module sends a feedback message b to the child process.

[0278] After the homepage detection module receives the notification message b, it can be determined that the application homepage automatically detected by the child process is page 2. The homepage detection module can, for example, identify the process that sends the notification message. When the homepage detection module identifies that the process that sends the notification message b is a child process, not a main process, the homepage detection module can, for example, not record that page 2 identified by the child process is the homepage. Instead, it directly sends a feedback message b to the child process, which can also avoid the homepage error problem caused by the homepage identified by the child process overwriting the homepage identified by the main process.

[0279] Alternatively, the home page detection module can also identify the process that sends the acquisition request after receiving the acquisition request from the process. When the home page detection module identifies that the process sending the acquisition request b is a child process instead of the main process, the home page detection module can, for example, directly not send a response message to the child process. In this way, the home page identified by the child process will not be triggered, and accordingly, the home page error problem caused by the subsequent home page identified by the child process overwriting the home page identified by the main process will not occur.

[0280] It should be noted that the module names involved in the embodiments of the present application can be defined as other names as long as the functions of each module can be achieved, and there is no specific restriction on the names of the modules.

[0281] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0282] The page processing method of the embodiment of the present application has been described above, and the device for executing the above method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided by the embodiment of the present application can execute the steps in the above page processing method.

[0283] The page processing method provided in the embodiment of the present application can be applied to electronic devices with data processing functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

[0284] In one implementation, an embodiment of the present application provides an electronic device, Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0285] like Fig.12As shown, the electronic device 120 includes: a processor 1201 and a memory 1202; the memory 1202 stores computer-executable instructions; the processor 1201 executes the computer-executable instructions stored in the memory 1202, so that the electronic device 120 executes the above method.

[0286] When the memory 1202 is independently provided, the electronic device further includes a bus 1203 for connecting the memory 1202 and the processor 1201 .

[0287] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0288] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0289] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0290] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0291] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0292] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A page processing method, characterized in that: include: In response to a first process of a first application being started, determining, through the first process, a first page as a main page of the first application; In response to a user operation of exiting the first page, performing a pop operation on the first page recorded in the first data stack; After the pop operation is performed, if there are no other pages in the first data stack, the record information that the first page is the main page of the first application is cleared.

2. The method according to claim 1, characterized in that The method further comprises: After performing the pop operation, if there is still a second page in the first data stack, and the page type of the second page is the first type, determining that the second page is the main page of the first application; The first type is a page type other than a type of a detail page.

3. The method according to claim 1 or 2, characterized in that: In response to the first process of the first application being started, determining the first page as the main page of the first application through the first process includes: In response to the first process of the first application being started, sending a first acquisition request to a first module through the first process, the first module being a module for managing application homepages, and the first acquisition request being used to request acquisition of a homepage preset for the first application; The first module sends a first response message to the first process in response to the first acquisition request, where the first response message is used to instruct the first process to identify the main page; In response to the first response message, the first process determines that the first page is the main page of the first application, and sends a first notification message to the first module, where the first notification message is used to indicate that the first page is the main page; In response to the first notification message, the first module records the first page as the main page of the first application.

4. The method according to any one of claims 1 to 3, characterized in that: After clearing the record information that the first page is the main page of the first application, the method further includes: Instruct the first process to redefine the main page of the first application.

5. The method according to claim 4, characterized in that The instructing the first process to redefine the main page of the first application includes: The first module sends a second notification message to the first process, where the second notification message is used to instruct the first process to redetermine the main page of the first application; The first process redefines the main page of the first application during the next startup process.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In response to the second process of the first application being started, a third page is determined as a main page corresponding to the second process through the second process.

7. The method according to claim 6, characterized in that In response to the second process of the first application being started, determining, through the second process, that the third page is a main page corresponding to the second process, includes: In response to the second process of the first application being started, sending a second acquisition request to the first module through the second process, the first module being a module for managing application homepages, and the second acquisition request being used to request acquisition of a homepage set for the first application; The first module sends a third response message to the first process in response to the second acquisition request, wherein the third response message is used to instruct the first process to identify the main page; In response to the third response message, the first process determines that the second page is the main page of the first application, and sends a second notification message to the first module, where the second notification message is used to indicate that the third page is the main page; In a case where the first module records the main page of the first application, the first module records the third page as the main page of the second process in response to the second notification message.

8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: In response to the second process of the first application being started, in the case where the first module has recorded a main page of the first application, the first module does not record the main page determined by the second process.

9. The method according to any one of claims 1 to 8, characterized in that: The first process is a main process of the first application, and the second process is a sub-process of the first application.

10. An electronic device, characterized in that: The electronic device comprises: one or more processors and a memory; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the electronic device executes the method as described in any one of claims 1 to 9.

11. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the one or more processors are used to call computer instructions so that the electronic device executes the method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium comprises computer instructions, and when the computer instructions are executed on an electronic device, the electronic device is caused to perform the method as claimed in any one of claims 1 to 9.

13. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is run on an electronic device, the electronic device is caused to perform the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Page display method and terminal

    CN108763541A

  • Page switching handling method and device as well as terminal, storage medium and program product

    CN108920247A

  • Page display method and display equipment

    CN110891199A

  • Task stack management method and device, terminal and storage medium

    CN111538574A

  • Application page display method and electronic equipment

    CN113986408A