Display method and device
By detecting application kernel exceptions in electronic devices, calling other applications' kernels or displaying target images, the problem of kernel failures that prevent the interface from opening is solved, ensuring the continuity and stability of the user experience.
Patent Information
- Application Number
- CN202110772820.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-08
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2041-07-08
AI Technical Summary
In electronic devices, kernel failures cause the application interface to be unable to open and the user cannot continue to operate, and the existing technology lacks effective solutions.
By receiving user input, detecting kernel exceptions of the first application. If the exception is, call the kernel of the second application to display the target interface, or directly display the first target image to ensure that the user can continue operations.
After the kernel failure of the first application, the user can still browse the target interface normally, and the user behavior is not affected, which improves the user experience.
Smart Images

Figure CN113504854B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of electronic technology, and specifically relates to a display method and a device thereof. Background Art
[0002] Nowadays, electronic devices are becoming more and more popular. Users can use various applications in electronic devices to complete daily life such as browsing news, shopping, etc.
[0003] The opening of the interface in some applications depends on the kernel. In the event of a kernel failure, the application interface cannot be opened, and the application will crash, and the user cannot continue to operate. There is currently no method in the prior art to solve this problem in a timely manner. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a display method and a device thereof, which can solve the problem that the user cannot continue to operate after a kernel failure.
[0005] In a first aspect, an embodiment of the present application provides a display method, the method comprising:
[0006] Receiving a first input from a user, where the first input is an operation of the user requesting to display a target interface;
[0007] In response to the first input, when a first kernel of a first application program in the electronic device fails to display a target interface due to an abnormality of the first kernel, display a first target image, or call a second kernel to display the target interface;
[0008] The content of the first target image includes the target interface, the second kernel is the kernel of a second application in the electronic device, and the second application is different from the first application.
[0009] In a second aspect, an embodiment of the present application provides a display device, the device comprising:
[0010] A first receiving module, configured to receive a first input from a user, where the first input is an operation of the user requesting to display a target interface;
[0011] A first display module is used for, in response to the first input, displaying a first target image or calling a second kernel to display the target interface in the case where a first kernel of a first application program in the electronic device fails to display the target interface due to an abnormality of the first kernel;
[0012] The content of the first target image includes the target interface, the second kernel is the kernel of a second application in the electronic device, and the second application is different from the first application.
[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0016] In an embodiment of the present application, when a kernel failure of a first application causes the target interface to be unable to be opened, the kernels of other applications in the electronic device are called, and the target interface is opened by relying on the kernels of other applications or directly displaying the target interface through a picture. This ensures that after the kernel failure of the first application, the user can still browse the target interface normally and the user behavior can still be executed normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is one of the flow charts of the display method provided in the embodiment of the present application;
[0018] Figure 2 This is the second flow chart of the display method provided in the embodiment of the present application;
[0019] Figure 3 is a schematic diagram of the structure of a display device provided in an embodiment of the present application;
[0020] Figure 4 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0023] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0024] The display method and device provided in the embodiments of the present application are described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0025] Figure 1 is one of the flow charts of the display method provided in the embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0026] Step 100, receiving a first input from a user, where the first input is an operation of the user requesting to display a target interface;
[0027] Step 110, in response to the first input, in the case where the first kernel of the first application in the electronic device is abnormal and causes the target interface to fail to display, display the first target image, or call the second kernel to display the target interface;
[0028] The content of the first target image includes the target interface, the second kernel is the kernel of a second application in the electronic device, and the second application is different from the first application.
[0029] Optionally, users often browse web content through some applications such as browser applications, browse news content through news applications, or grab coupons for shopping through some shopping applications; and in the process of realizing these functions, the electronic device usually needs to open at least one interface to complete, such as opening one or more web pages to complete, and displaying the content of similar interfaces generally depends on the kernel implementation of the application corresponding to the interface.
[0030] For example, the browser built into the Android mobile phone system relies on the Google Chrome kernel built into the Android phone when displaying the interface, and the browser built into the IOS mobile phone system relies on the Safari kernel built into the IOS phone when displaying the interface.
[0031] Once a problem occurs in the kernel of an electronic device, it is highly likely that the interface that the user needs to browse cannot be opened, and the corresponding application may even crash. Therefore, a solution to the abnormality of the application kernel becomes the key point to improve the user experience of electronic devices.
[0032] Currently, once an abnormality occurs in the kernel of electronic devices, such as the kernel that comes with a mobile phone browser, the application that relies on the abnormal kernel for interface display may not be able to be used normally, and the user can only wait for the electronic device's system to release a new version. The process of waiting for the new version to be released and updating will affect the user's normal use of the electronic device and reduce the user experience.
[0033] Optionally, the embodiments of the present application can be optimized for a scenario in which an exception occurs in the kernel of a first application in an electronic device and causes the upper-layer application interface to be unable to open, that is, the target interface cannot be opened, or causes the first application to crash.
[0034] Optionally, when receiving a first input from a user to determine that the user needs to display a target interface, if a first kernel of a first application in the electronic device is abnormal and causes the target interface to be unable to be opened or the first application crashes, the electronic device may detect whether there are kernels of other applications in addition to the faulty kernel, and if so, the first application may be automatically bridged to a second kernel of a second application with a kernel, that is, the system calls the second kernel to ensure that the target interface is displayed normally, wherein the second application is different from the first application;
[0035] Optionally, bridging the first application to the second kernel may be a system call to the second kernel, so that the second kernel implements the task of loading the target interface on behalf of the first application.
[0036] Optionally, the abnormal kernel of the first application may include the first kernel;
[0037] Optionally, the applications corresponding to the kernel without abnormality that the first application can bridge can be collectively referred to as second applications.
[0038] Optionally, the kernel that successfully displays the target interface after the first application is successfully bridged can be called the second kernel.
[0039] Optionally, when an exception occurs in the first kernel of the first application in the electronic device and causes the target interface to be unable to open or the first application crashes, the electronic device can convert the target interface into a first target image through the server of the first application, and then send the first target image to the image loading library of the electronic device to render the first target image, and then display the rendered first target image.
[0040] The embodiment of the present application can ensure that the target can be opened normally when an abnormality occurs in the first kernel of the first application in the electronic device through the above two solutions, thereby improving the user experience.
[0041] For example, assuming that the electronic device is a mobile phone, the first application is the browser that comes with the mobile phone, and the corresponding kernel is the kernel that comes with the mobile phone. During the process of opening a web page in the browser that comes with the mobile phone, the browser kernel it relies on is abnormal. For example, the browser that comes with the Android phone relies on the kernel that comes with the mobile phone, and the other browser relies on the kernel developed by itself. Switching between the two causes the web page to display a white screen, and even causes the browser that comes with the mobile phone to crash. At this time, after the mobile phone captures this exception, the mobile phone detects that in addition to the built-in kernel core0, there are other application kernels core1, and the loading display of the web page can be automatically bridged to core1 to ensure that the target interface opens normally.
[0042] If the webpage still fails to display after being loaded and displayed bridged to core1, or fails to display for multiple times, or the mobile phone directly captures the above exceptions, the mobile phone can actively send information to its own browser server, and the built-in browser server can automatically convert the webpage into a picture and send it to the mobile phone for display.
[0043] The embodiment of the present application provides a method for converting a web page into an image by bridging the kernel of other applications or sending information to a web server to render the page through a mobile phone image loading library when an abnormality occurs in the mobile phone's built-in browser kernel. This method effectively avoids the problem that the application web page cannot be opened or even the application crashes when an abnormality occurs in the mobile phone's built-in browser kernel, ensuring that the user can browse the content they want, thereby improving the user experience.
[0044] The embodiment of the present application can effectively solve the defect that the target interface fails to open or the first application crashes due to an abnormality in the kernel on which the first application depends, effectively display the target interface to the user, ensure the continuation of user behavior, and greatly improve the user experience by bridging the second kernel or the target interface image, and effectively solve the defect that the target interface fails to open or the first application crashes due to an abnormality in the kernel on which the first application depends, and effectively display the target interface to the user, ensuring the continuation of user behavior, and greatly improving the user experience. In the embodiment of the present application, when the target interface cannot be opened due to a kernel failure of the first application, the kernel of other applications in the electronic device is called, and the target interface is opened by relying on the kernel of other applications or directly displaying the target interface through an image, so that the user can still browse the target interface normally after the kernel failure of the first application, and the user behavior can still be executed normally.
[0045] Optionally, calling the second kernel to display the target interface includes:
[0046] When the total number of kernels of all application programs in the electronic device is greater than 1, it is determined to call the second kernel to display the target interface.
[0047] Optionally, when an abnormality occurs in the first kernel of a first application in an electronic device and causes the target interface to be unable to open or the first application crashes, the electronic device can detect whether there are kernels of other applications in addition to the faulty kernel by determining the total number of kernels of all applications in the electronic device. If the total number of kernels of all applications in the electronic device is greater than 1, it can be determined that the electronic device includes other kernels in addition to the currently abnormal first kernel, and therefore it can be determined to access the second kernel to ensure that the target interface is displayed normally.
[0048] For example, assuming that the electronic device is a mobile phone, the first application is the browser that comes with the mobile phone, and the corresponding kernel is the kernel that comes with the mobile phone. During the process of opening a web page in the browser that comes with the mobile phone, the browser kernel it relies on is abnormal. After the mobile phone captures the abnormality, it can automatically detect the total kernel value sum of all applications in the current mobile phone.
[0049] If the mobile phone determines that the total number of kernels sum>1, the built-in browser can be automatically bridged to other kernels. For example, the user is currently using the mobile phone's built-in browser to open a web page, and the user's mobile phone has another browser App installed. At this time, the kernel that the mobile phone's built-in browser depends on will be bridged to the kernel of the other browser App, and vice versa.
[0050] Optionally, the total number of cores value sum inside the electronic device may be detected when the electronic device is turned on, and the total number of cores value sum may be directly obtained during subsequent operation of the electronic device.
[0051] The embodiment of the present application determines to access the second kernel when the total value of the kernels of all applications in the electronic device is greater than 1, thereby ensuring that the target interface can be displayed normally in the first application, and the target interface can normally receive user input and execute corresponding functions. For the user, the operation is no different from that before the exception occurs, which can avoid the operational inconvenience caused by the failure and greatly improve the user experience.
[0052] Optionally, the method further comprises:
[0053] In the case where a third application with kernels is newly added to the electronic device, the total number of kernels is increased based on the number of kernels of the third application;
[0054] When the electronic device uninstalls the fourth application with the kernels, the total kernel value is reduced based on the number of kernels of the fourth application.
[0055] Optionally, in order to ensure the accuracy of the total number of cores value sum, the total number of cores value sum may be updated simultaneously when a new application is installed, updated, or uninstalled on the electronic device, to ensure that the total number of cores value sum obtained each time is accurate.
[0056] Optionally, when a third application is newly installed in the electronic device and the third application has a kernel, or the third application installed in the electronic device originally did not have a kernel but a new kernel was added after updating, or the third application installed in the electronic device originally had N kernels but a new kernel was added after updating, the electronic device can detect the newly added kernels and can increase the total kernel value sum based on the number of newly added kernels. For example, if a new application is installed with one kernel, the total kernel value sum can be increased by one.
[0057] Optionally, when a fourth application is uninstalled in the electronic device and the fourth application has a kernel, or a fourth application installed in the electronic device originally has a kernel but no longer has a kernel after an update, or a fourth application installed in the electronic device originally has M cores but the number of cores is reduced after an update, the electronic device can detect the reduced cores and can reduce the total number of cores value sum based on the number of reduced cores. For example, if an application with one kernel is uninstalled, the total number of cores value sum can be reduced by one.
[0058] For example, assuming that the electronic device is a mobile phone, when the mobile phone has the task of installing or uninstalling an application, the mobile phone can again detect whether the corresponding application has its own browser kernel, and then increase or decrease the total kernel sum, ensuring that the mobile phone always records the correct total kernel sum.
[0059] Among them, the browser kernel that comes with the mobile phone cannot be uninstalled, so it can be ensured that sum>=1.
[0060] Optionally, the determining to call the second kernel to display the target interface further includes:
[0061] determining the second kernel based on a quality value of a kernel of at least one second application;
[0062] The quality value is used to represent the success rate of accessing the kernel of the second application.
[0063] Optionally, after determining to access the second core, if there are multiple cores that can be bridged, one of the cores to be bridged may be determined to be the second core based on the quality values of the multiple cores that can be bridged.
[0064] Optionally, the kernel of at least one second application may include all or part of the kernel to which the first application may be bridged.
[0065] Optionally, the kernel of each application may correspond to a quality value, which may be recorded in the mobile phone to reflect the success rate of the kernel when used to open the interface. The higher the success rate of the kernel when used to open the interface, the higher the quality value of the kernel, and the lower the success rate of the kernel when used to open the interface, the lower the quality value of the kernel; that is, the quality value is used to represent the success rate of the kernel of the second application. The embodiment of the present application determines the second kernel based on the quality value of the kernel of at least one second application, and can ensure the bridge connection to the kernel with a high success rate of displaying the target interface, thereby ensuring the effectiveness of the bridge connection.
[0066] Optionally, the determining the second kernel based on the quality value of the kernel of at least one second application program comprises:
[0067] The second kernel is determined to be a kernel with the highest quality value among the kernels of the at least one second application.
[0068] Optionally, in order to ensure that the target interface is displayed more effectively, each time the second kernel to be bridged by the first application is determined, the kernel with the highest quality value among the kernels of at least one second application is determined as the second kernel.
[0069] Optionally, when recording the quality value of the kernel of at least one second application, the kernels of these second application may be sorted based on the order of the quality value from large to small or from small to large.
[0070] Optionally, the sorted kernels may be represented by a reference table of kernel bridging order, and kernels with high quality values may be preferentially selected for bridging.
[0071] The embodiment of the present application ensures the effectiveness of the bridge and the stability of the target interface display by maintaining the kernel with the highest access quality value.
[0072] Optionally, determining to access the second kernel includes:
[0073] In the case that displaying the target interface fails after calling the currently determined second kernel, the second kernel is re-determined.
[0074] Optionally, after the first application successfully bridges the currently determined second kernel but fails to display the target interface, a kernel may be re-determined from the kernels of at least one second application as the bridged second kernel;
[0075] For example, if the currently determined second kernel is the kernel with the highest quality in the reference table of the kernel bridging order, then when the second kernel is re-determined, the kernel with the second highest quality in the reference table can be determined as the second kernel for bridging, and so on, until the target interface is successfully displayed or until the maximum threshold of the number of bridging times is reached. The embodiment of the present application provides that in the case of failure to call the second kernel to display the target interface, the second kernel is immediately re-determined and bridged, which can minimize the freeze and delay of the interface display caused by the failure, and can further ensure the successful display of the target interface and the continuity of user behavior.
[0076] Optionally, the method further comprises:
[0077] In the case that calling the currently determined second kernel to display the target interface fails, reducing the quality value of the currently determined second kernel;
[0078] When the currently determined second kernel is successfully called to display the target interface, the quality value of the currently determined second kernel is increased.
[0079] Optionally, in order to ensure the validity of the quality value of the kernel of the second application, the quality value of the kernel may be updated based on the display status of the target interface after each bridging to a kernel;
[0080] For example, after accessing the currently determined second kernel, if the target interface is displayed successfully, the quality value of the currently determined second kernel may be increased by one;
[0081] For example, after accessing the currently determined second kernel, if displaying the target interface fails, the quality value of the currently determined second kernel may be reduced by one;
[0082] Optionally, after the quality values of the kernels are updated once or multiple times, the kernels of the at least one second application may be reordered in the reference table of the kernel bridging order.
[0083] Optionally, displaying the first target image includes:
[0084] When the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, it is determined to display the first target image.
[0085] Optionally, when the electronic device has only the first kernel and the first kernel is abnormal, or when the kernel bridging times exceeds the first threshold and the target interface fails to be displayed each time, the electronic device may actively send a message to the server of the first application program to instruct the server of the first application program to convert the target interface into the first target image;
[0086] Optionally, after receiving the message, the server of the first application can convert the target interface into a first target image, and then send the first target image and the content in the image to the electronic device; after receiving the message, the electronic device can display the first target first image.
[0087] In the embodiment of the present application, when the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, or when the first core fails, the target interface is displayed directly through the first target image, so as to ensure the continuity of the user's browsing of the target interface content and the continuity of the user's behavior in a timely manner.
[0088] Optionally, the first target image includes an input area for receiving user input;
[0089] The method further comprises at least one of the following:
[0090] In a case where the input area includes target content corresponding to a click button in the target interface, receiving a second input from a user to the input area; in response to the second input, displaying a second target image, wherein the content of the second target image includes a jump interface of the first application after the target content is executed;
[0091] In the case where the input area includes an information submission form in the target interface, a third input from a user is received, where the third input is an operation of filling in the information submission form in the input area; and in response to the third input, the information submission form is submitted.
[0092] Optionally, when the electronic device displays the first target image, the first target image may include an input area, which may correspond to an area in the target interface that can receive user input, and is used to receive user input so that user behavior can proceed normally. In the embodiment of the present application, an input area corresponding to the target content of the input area in the target interface may be set in the first target image to receive user input, which can largely ensure the continuity of user operations.
[0093] Optionally, the method further comprises:
[0094] In a case where the input area includes target content corresponding to a click button in the target interface, receiving a second input from a user to the input area;
[0095] In response to the second input, a second target image is displayed, wherein the content of the second target image includes a jump interface of the first application after the target content is executed.
[0096] Optionally, when the input area includes the target content corresponding to the click button in the target interface, the target content corresponding to the click button in the web page can be marked by an anchor point, that is, the content that can be clicked by the user can be marked, such as highlighted, to facilitate users to identify the clickable content in the picture.
[0097] Optionally, a second input from the user to the input area can be received, such as a double-click operation on the target content by the user, and the task corresponding to the target content can be executed in response to the second input, and the jump to the corresponding jump interface can be performed; optionally, in the scenario of an embodiment of the present application, the jump interface may not be displayed successfully, so it can be displayed through a second target picture, and the generation method of the second target picture can be the same as the generation method of the second target picture.
[0098] For example, the "Next Page" button in the target interface can be reflected in the first target image with the same text content, and the three words "Next Page" in the first target image can be highlighted or indicated by a special shape to remind the user that "Next Page" can be clicked and jump to the next page.
[0099] Optionally, a user click operation on "next page" may be received, and then a second target image may be displayed, wherein the content of the second target image is the jump interface after "next page" is clicked under normal circumstances.
[0100] Optionally, the method further comprises:
[0101] In the case where the input area includes an information submission form in the target interface, receiving a third input from a user, wherein the third input is an operation of filling in the information submission form in the input area;
[0102] In response to the third input, the information submission form is submitted.
[0103] Optionally, the case where the input area includes an information submission form may include a case where the user is required to input any word, character or symbol;
[0104] Optionally, in the case where the input area includes an information submission form in the target interface, when automatically generating the first target image, a fillable information submission form may be instantiated in the input area corresponding to the position of the information submission form in the target interface for the user to fill in information;
[0105] After receiving information that the user has completed filling out the information submission form, for example, the user clicks on the input area corresponding to content with similar meanings such as "Confirm submission" or "Filling completed", the completed information submission form can be submitted to the server by matching the anchor point of the input area corresponding to content with similar meanings such as "Confirm submission" or "Filling completed" and the interface of the anchor point corresponding to the information submission form, thereby ensuring normal user behavior.
[0106] Optionally, the method further comprises:
[0107] A third target image is displayed, wherein the content of the third target image includes a jump interface of the first application after the information submission form is submitted.
[0108] Optionally, after submitting the information submission form, the target interface may have a new jump interface, such as a jump interface showing successful submission or the like, and the jump interface after the information submission form is submitted may be displayed through a third target image.
[0109] Optionally, the third target image may be generated in the same manner as the second target image.
[0110] Figure 2 This is a second flow chart of the display method provided in the embodiment of the present application, such as Figure 2 As shown, assuming that the electronic device is a mobile phone, the first application is a browser built into the mobile phone, the corresponding kernel is the kernel built into the mobile phone, and the target interface is a web page that the user wants to browse, the method includes the following steps:
[0111] Step 210, start the built-in browser;
[0112] Optionally, when the user needs to open a built-in browser, the built-in browser is opened for the user to browse web pages or news;
[0113] Step 220, the kernel of the mobile phone fails;
[0114] Optionally, when a webpage that a user wants to browse is opened, an exception occurs in the kernel of the mobile phone that the built-in browser relies on, causing the webpage to display a white screen or even causing the built-in browser to crash. At this time, the mobile phone captures this exception;
[0115] Step 230, determining whether the total number of cores in the mobile phone is greater than 1;
[0116] Optionally, after the mobile phone captures the exception, it can automatically detect the total value of the browser kernels in the current mobile phone, sum. Of course, in order to speed up this process, the total value of the kernels can also be detected when the mobile phone is turned on. When the user installs or uninstalls an application, the mobile phone again detects whether the corresponding application has its own browser kernel, and then adds or subtracts 1 from the total kernel sum to ensure that the mobile phone always records the correct total kernel sum. Because the browser kernel that comes with the mobile phone cannot be uninstalled, it can be ensured that sum>=1.
[0117] Optionally, if it is determined that the total number of cores is greater than 1, jump to step 240;
[0118] Optionally, if it is determined that the total number of cores is equal to 1, jump to step 270;
[0119] Step 240, bridging the kernel that the built-in browser depends on to the second kernel;
[0120] Optionally, if the mobile phone determines that sum>1, the kernel on which the built-in browser depends can be bridged to another kernel, such as to the kernel of another browser, and vice versa;
[0121] Step 250, determining whether the target interface is successfully displayed;
[0122] Optionally, after the second kernel is bridged, the web page that the user wants to browse continues to be opened.
[0123] Optionally, the mobile phone may record whether the webpage is opened normally, and if so, the quality value of the second core currently bridged is given +1 point, and if not, -1 point.
[0124] Optionally, if the webpage is not opened normally and is not opened normally after multiple bridges, jump to step 270; for example, the bridge kernel can be set to fail to open the webpage for a maximum of 2 times, and automatically jump to step 270 if it fails for more than 2 times;
[0125] Step 260, successfully displaying the target interface;
[0126] Optionally, if the second kernel is bridged and the web page is opened smoothly, the user experience can be guaranteed;
[0127] Step 270, sending information to the web server;
[0128] Optionally, if the mobile phone only has its own browser kernel and the kernel is abnormal, or the kernel fails to open multiple web pages after bridging, the mobile phone can actively send information to the web server;
[0129] Step 280, generating a first target image;
[0130] Optionally, after receiving the information sent by the mobile phone, the web server can automatically convert the web page into the first target image, and highlight the corresponding content of the clickable content in the web page in the first target image through the anchor point, so as to facilitate the user to identify the clickable content in the image.
[0131] Optionally, after completing the image conversion, the website server may send the first target image and the content corresponding to the webpage to the mobile phone;
[0132] Step 290: display the first target image.
[0133] Optionally, after receiving the first target image, the mobile phone can render the first target image through an image loading library.
[0134] Optionally, if input is received from the user clicking on the highlighted portion of the first target image, the corresponding task may be executed to jump to a new jump interface, and the process then jumps to step 280 to generate an image including the content of the jump interface.
[0135] Optionally, if there is a place on the web page where the user needs to submit an information submission form, the mobile phone can automatically identify the information submission form and instantiate a fillable information submission form for the user to fill in the information. After confirming that the user has completed the filling, the information submission form is submitted to the server to ensure that the user behavior proceeds normally.
[0136] In an embodiment of the present application, when a kernel failure of a first application causes the target interface to be unable to be opened, the kernels of other applications in the electronic device are called, and the target interface is opened by relying on the kernels of other applications or directly displaying the target interface through a picture. This ensures that after the kernel failure of the first application, the user can still browse the target interface normally and the user behavior can still be executed normally.
[0137] It should be noted that the display method provided in the embodiment of the present application can be executed by a display device or a control module in the display device for executing the display method. In the embodiment of the present application, the display device provided in the embodiment of the present application is described by taking the display device executing the display method as an example.
[0138] Figure 3 is a schematic diagram of the structure of a display device provided in an embodiment of the present application, such as Figure 3 As shown, the display device includes: a first receiving module 310, and a first display module 320, wherein:
[0139] The first receiving module 310 is used to receive a first input from a user, where the first input is an operation of the user requesting to display a target interface; the first display module 320 is used to respond to the first input and, in the case where the first kernel of the first application program in the electronic device fails to display the target interface due to an abnormality in the first kernel, display a first target image, or call a second kernel to display the target interface;
[0140] The content of the first target image includes the target interface, the second kernel is the kernel of a second application in the electronic device, and the second application is different from the first application.
[0141] Optionally, the display device can receive a first input from a user through a first receiving module 310, and when a first kernel exception of a first application in an electronic device causes a failure to display a target interface, the display device can respond to the first input through the first display module 320 to display a first target image, or call the second kernel to display the target interface.
[0142] In an embodiment of the present application, when a kernel failure of a first application causes the target interface to be unable to be opened, the kernels of other applications in the electronic device are called, and the target interface is opened by relying on the kernels of other applications or directly displaying the target interface through a picture. This ensures that after the kernel failure of the first application, the user can still browse the target interface normally and the user behavior can still be executed normally.
[0143] Optionally, the first display module is further used for:
[0144] When the total number of kernels of all application programs in the electronic device is greater than 1, it is determined to call the second kernel to display the target interface.
[0145] Optionally, the first display module is further used for:
[0146] determining the second kernel based on a quality value of a kernel of at least one second application;
[0147] The quality value is used to represent the success rate of accessing the kernel of the second application.
[0148] Optionally, the first display module is further used for:
[0149] When the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, it is determined to display the first target image.
[0150] Optionally, the first target image includes an input area for receiving user input.
[0151] Optionally, the device further comprises at least one of the following:
[0152] a second receiving module and a second display module;
[0153] A third receiving module and a submitting module;
[0154] The second receiving module is used to receive a second input of the user to the input area when the input area includes the target content corresponding to the click button in the target interface;
[0155] The second display module is used for displaying a second target picture in response to the second input, wherein the content of the second target picture includes a jump interface of the first application after the target content is executed;
[0156] The third receiving module is used to receive a third input from a user when the input area includes an information submission form in the target interface, wherein the third input is an operation of filling in the information submission form in the input area;
[0157] The submission module is used to submit the information submission form in response to the third input.
[0158] The display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0159] The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0160] The display device provided in the embodiment of the present application can achieve Figure 1 to Figure 2 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0161] Optionally, Figure 4is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 4 As shown, an embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and executable on the processor 401. When the program or instruction is executed by the processor 401, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0162] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0163] Figure 5 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0164] The electronic device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510.
[0165] Those skilled in the art will appreciate that the electronic device 500 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 510 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 5 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0166] The user input unit 507 is used for:
[0167] Receiving a first input from a user, where the first input is an operation of the user requesting to display a target interface;
[0168] The processor 510 is used to:
[0169] In response to the first input, when a first kernel of a first application program in the electronic device fails to display a target interface due to an abnormality of the first kernel, display a first target image, or call a second kernel to display the target interface;
[0170] The content of the first target image includes the target interface, the second kernel is the kernel of a second application in the electronic device, and the second application is different from the first application.
[0171] In an embodiment of the present application, when a kernel failure of a first application causes the target interface to be unable to be opened, the kernels of other applications in the electronic device are called, and the target interface is opened by relying on the kernels of other applications or directly displaying the target interface through a picture. This ensures that after the kernel failure of the first application, the user can still browse the target interface normally and the user behavior can still be executed normally.
[0172] Optionally, the processor 510 is further configured to:
[0173] When the total number of kernels of all application programs in the electronic device is greater than 1, it is determined to call the second kernel to display the target interface.
[0174] Optionally, the processor 510 is further configured to:
[0175] determining the second kernel based on a quality value of a kernel of at least one second application;
[0176] The quality value is used to represent the success rate of accessing the kernel of the second application.
[0177] Optionally, the processor 510 is further configured to:
[0178] When the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, it is determined to display the first target image.
[0179] Optionally, the first target image includes an input area for receiving user input.
[0180] Optionally, the user input unit 507 is used to:
[0181] In a case where the input area includes target content corresponding to a click button in the target interface, receiving a second input from a user to the input area;
[0182] The processor 510 is further configured to:
[0183] In response to the second input, a second target image is displayed, wherein the content of the second target image includes a jump interface of the first application after the target content is executed.
[0184] Optionally, the user input unit 507 is further used to:
[0185] In the case where the input area includes an information submission form in the target interface, receiving a third input from a user, wherein the third input is an operation of filling in the information submission form in the input area;
[0186] The processor 510 is further configured to:
[0187] In response to the third input, the information submission form is submitted.
[0188] Optionally, the processor 510 is further configured to:
[0189] A third target image is displayed, wherein the content of the third target image includes a jump interface of the first application after the information submission form is submitted.
[0190] In an embodiment of the present application, when a kernel failure of a first application causes the target interface to be unable to be opened, the kernels of other applications in the electronic device are called, and the target interface is opened by relying on the kernels of other applications or directly displaying the target interface through a picture. This ensures that after the kernel failure of the first application, the user can still browse the target interface normally and the user behavior can still be executed normally.
[0191] It should be understood that in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 507 includes a touch panel 5071 and other input devices 5072. The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts: a touch detection device and a touch controller. Other input devices 5072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 509 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 510 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 510.
[0192] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0193] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0194] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0195] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0196] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0198] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A display method, characterized in that: include: Receiving a first input from a user, where the first input is an operation of the user requesting to display a target interface; In response to the first input, in the case where the first kernel of the first application in the electronic device is abnormal and causes the display of the target interface to fail, a first target image is displayed, or a second kernel is called to display the target interface; wherein the content of the first target image includes the target interface and an input area, the input area is used to receive user input, and the second kernel is a kernel of a second application in the electronic device, and the second application is different from the first application; The method further comprises at least one of the following: In a case where the input area includes target content corresponding to a click button in the target interface, receiving a second input from a user to the input area; in response to the second input, displaying a second target image, wherein the content of the second target image includes a jump interface of the first application after the target content is executed; In the case where the input area includes an information submission form in the target interface, receiving a third input from a user, wherein the third input is an operation of filling in the information submission form in the input area; In response to the third input, the information submission form is submitted.
2. The display method according to claim 1, characterized in that: The calling the second kernel to display the target interface includes: When the total number of kernels of all application programs in the electronic device is greater than 1, it is determined to call the second kernel to display the target interface.
3. The display method according to claim 2, characterized in that: The determining to call the second kernel to display the target interface further includes: determining the second kernel based on a quality value of a kernel of at least one second application; The quality value is used to represent the success rate of accessing the kernel of the second application.
4. The display method according to claim 1, characterized in that: The displaying of the first target image comprises: When the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, it is determined to display the first target image.
5. A display device, characterized in that: include: A first receiving module, configured to receive a first input from a user, where the first input is an operation of the user requesting to display a target interface; A first display module is used to display a first target image or call a second kernel to display the target interface when a first kernel of a first application program in the electronic device fails to display the target interface due to an abnormality of the first kernel; wherein the content of the first target image includes the target interface and an input area, the input area is used to receive user input, and the second kernel is a kernel of a second application program in the electronic device, and the second application program is different from the first application program; The device further comprises at least one of the following: a second receiving module and a second display module; a third receiving module and a submitting module; The second receiving module is used to receive a second input from the user to the input area when the input area includes the target content corresponding to the click button in the target interface; the second display module is used to display a second target image in response to the second input, and the content of the second target image includes a jump interface of the first application after the target content is executed; The third receiving module is used to receive the user's third input when the input area includes an information submission form in the target interface, and the third input is an operation of filling in the information submission form in the input area; the submission module is used to submit the information submission form in response to the third input.
6. The display device according to claim 5, characterized in that: The first display module is also used for: When the total number of kernels of all application programs in the electronic device is greater than 1, it is determined to call the second kernel to display the target interface.
7. The display device according to claim 6, characterized in that: The first display module is also used for: determining the second kernel based on a quality value of a kernel of at least one second application; The quality value is used to represent the success rate of accessing the kernel of the second application.
8. The display device according to claim 5, characterized in that The first display module is also used for: When the number of cores of the electronic device is equal to 1, or when the number of failures in calling the second core to display the target interface exceeds a first threshold, it is determined to display the first target image.
Citation Information
Patent Citations
Loading method and loading device for abnormal pages in browser and client side
CN103324735A
Method for storing page in webpage favorite and browser
CN103685514A
A webpage loading abnormity monitoring method and device
CN109783309A
Browser kernel processing method and device and storage medium
CN110489679A