Page jumping method and device and storage medium

By parsing user voice operation instructions and jumping directly to the target page, the problem of increasing memory usage caused by multiple page jumps is solved, achieving a smoother user experience and lower memory usage.

CN119474585APending Publication Date: 2025-02-18SHENZHEN SANTU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411543138.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

During multiple page jumps, the number of ActivityRecords in the stack increases, occupying more memory resources, resulting in poor user experience.

Method used

By parsing the user's voice operation instructions, jump directly to the target page, avoiding loading the intermediate page one by one, clearing all page content in the stack and retaining only the content of the target page.

Benefits of technology

It significantly reduces page loading time and memory usage, improves the fluency and convenience of the user experience, and reduces unnecessary page rendering and data processing processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119474585A_ABST
    Figure CN119474585A_ABST
Patent Text Reader

Abstract

The invention discloses a page jumping method and device and a storage medium, and relates to the technical field of computers.The method comprises the steps that after a voice operation instruction input by a user is obtained, the voice operation instruction is analyzed, and a target page corresponding to the final step in the voice operation instruction is determined; judging whether page content corresponding to the target page exists in a stack or not; if yes, all page contents in the stack are cleared, an AM instruction is created according to the target page, and the target page is displayed in response to the AM instruction; and buffering the page content corresponding to the target page into the stack. The process of loading the middle pages one by one can be avoided, and memory occupation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a page jump method, device and storage medium. Background Art

[0002] Currently, page management is performed in a stack manner. In response to the interaction between the user and the application, the electronic device generates ActivityRecords corresponding to the page in sequence according to the user's operation sequence and pushes them into the stack. The ActivityRecord generated by the last step in the user's operation becomes the top element of the stack and is displayed on the display device of the electronic device.

[0003] When it takes many steps to reach a specific page, multiple page jumps are performed. Each page jump generates a new ActivityRecord and pushes it into the stack. As the number of jumps increases, the number of ActivityRecords in the stack also increases, occupying more memory resources.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a page jump method, device and storage medium, aiming to solve the technical problem of how to avoid loading intermediate pages one by one and reduce memory usage.

[0006] To achieve the above purpose, the present application proposes a page jump method, which includes:

[0007] After obtaining the voice operation instruction input by the user, parsing the voice operation instruction to determine the target page corresponding to the final step in the voice operation instruction;

[0008] Determine whether there is page content corresponding to the target page in the stack;

[0009] If it exists, clear all page contents in the stack, create an AM instruction according to the target page, and display the target page in response to the AM instruction;

[0010] The page content corresponding to the target page is buffered in the stack.

[0011] In one embodiment, after obtaining the voice operation instruction input by the user, the step of parsing the operation instruction and determining the target page includes:

[0012] After the voice operation instruction is obtained, the voice operation instruction is converted into text to obtain an instruction text;

[0013] Performing semantic analysis on the text to obtain user intention;

[0014] Generate a corresponding operation flow according to the user intention, wherein the operation flow includes at least two operation steps, and each of the operation steps corresponds to a different page;

[0015] The target page corresponding to the final step is determined.

[0016] In one embodiment, the step of creating an AM instruction according to the target page and displaying the target page in response to the AM instruction includes:

[0017] Determine a target page name of the target page, and obtain a corresponding target page class name according to the target page name;

[0018] Create the AM instruction according to the target page class name;

[0019] According to the AM instruction, jump from the current page to the target page.

[0020] In one embodiment, after the step of determining whether there is page content corresponding to the target page in the stack, the following steps are included:

[0021] If it does not exist, create the AM instruction according to the class name of the target page;

[0022] In response to the AM instruction, the target page is displayed.

[0023] In one embodiment, after the step of jumping from the current page to the target page according to the AM instruction, the step further includes:

[0024] If the jump fails, get the error log;

[0025] Determine the error type according to the error log;

[0026] If the error type is a network error, a retry query is generated, and after obtaining confirmation retry information, the AM command is re-executed;

[0027] If the error type is the instruction error, a re-entry prompt is generated.

[0028] In one embodiment, after the step of buffering the page content corresponding to the target page into the stack, the method includes:

[0029] Determine an execution action according to the voice operation instruction, and a target UI control associated with the execution action in the target page;

[0030] Respond to the operation instruction according to the execution action and the target UI control.

[0031] In one embodiment, the step of determining an execution action according to the voice operation instruction and associating a target UI control with the execution action in the target page comprises:

[0032] Determine an execution action according to the voice operation instruction;

[0033] The UI control displayed on the target page is obtained, and matched with the voice operation instruction to obtain the target UI control.

[0034] In one embodiment, the step of responding to the operation instruction according to the execution action and the target UI control includes:

[0035] Calling and locating the target UI control in the target page according to the automated testing framework;

[0036] According to the execution action, generating a corresponding action execution code;

[0037] The action execution code is executed on the target UI control.

[0038] In addition, to achieve the above objectives, the present application also proposes a page jump device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the page jump method described above.

[0039] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the page jump method described above are implemented.

[0040] The present application provides a page jump method. After obtaining the voice operation instruction input by the user, the target page is determined by directly parsing the final step in the voice operation instruction, and the page that the user wants to reach is directly jumped to, which reduces the intermediate steps and waiting time, and improves the fluency and convenience of the user experience. After determining the target page, if the content of the page already exists in the stack, choose to clear all page contents in the stack, and recreate and display the target page. The process of loading intermediate pages one by one is avoided, thereby significantly reducing the page loading time. In addition, clearing all page contents in the stack and retaining only the content of the target page helps to reduce memory usage. By jumping directly to the final target page, unnecessary page rendering and data processing processes are reduced, and the response speed is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flowchart of the first embodiment of the method for page jump of this application is provided;

[0044] Figure 2 A detailed flow chart of the first embodiment of the method for page jump of this application;

[0045] FIG3( a ) is a flow chart of page jump before improvement provided in Embodiment 1 of the page jump method of the present application;

[0046] FIG3( b ) is a flowchart of an improved page jump method according to the first embodiment of the present application;

[0047] Figure 4 A flow chart of the second embodiment of the page jump method of this application;

[0048] FIG5( a ) is a flow chart of page jump before improvement provided in Embodiment 2 of the page jump method of the present application;

[0049] FIG5( b ) is an improved page jump flow chart provided in Embodiment 2 of the page jump method of the present application;

[0050] Figure 6 A flowchart of the third embodiment of the method for page jump of this application is provided;

[0051] Figure 7 A flowchart diagram of the fourth embodiment of the page jump method of this application;

[0052] Figure 8 A detailed flow chart of the fourth embodiment of the page jump method of this application;

[0053] Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the page jump method in the embodiment of the present application. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0055] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0056] The main solution of the embodiment of the present application is: after obtaining the voice operation instruction input by the user, the voice operation instruction is parsed to determine the target page corresponding to the final step in the voice operation instruction; it is determined whether there is page content corresponding to the target page in the stack; if so, all page contents in the stack are cleared, and an AM instruction is created according to the target page, and the target page is displayed in response to the AM instruction; the page content corresponding to the target page is buffered in the stack.

[0057] At present, page management is performed in a stack manner. In response to the interactive operations between the user and the application, the electronic device generates the ActivityRecord (activity record) corresponding to the page in sequence according to the user's operation order and pushes it into the stack. The ActivityRecord generated by the last step in the user's operation becomes the top element of the stack and is displayed on the display device of the electronic device. When some pages need to be specified after many operation steps, multiple page jumps are performed. Each page jump will generate a new ActivityRecord and push it into the stack. As the number of jumps increases, the number of ActivityRecords in the stack will also increase, thereby occupying more memory resources.

[0058] The present application provides a page jump method. After obtaining the voice operation instruction input by the user, the target page is determined by directly parsing the final step in the voice operation instruction, and the page that the user wants to reach is directly jumped to, which reduces the intermediate steps and waiting time, and improves the fluency and convenience of the user experience. After determining the target page, if the content of the page already exists in the stack, choose to clear all page contents in the stack, and recreate and display the target page. The process of loading intermediate pages one by one is avoided, thereby significantly reducing the page loading time. In addition, clearing all page contents in the stack and retaining only the content of the target page helps to reduce memory usage. By jumping directly to the final target page, unnecessary page rendering and data processing processes are reduced, and the response speed is improved.

[0059] It should be noted that the execution subject of this embodiment can be a computing service device with network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a device, etc. that can realize the above functions. The following takes a page jump device as an example to illustrate this embodiment and the following embodiments.

[0060] Based on this, the present application embodiment provides a page jump method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the page jump method of this application.

[0061] In this embodiment, the page jump method includes steps S100 to S400:

[0062] Step S100, after obtaining the voice operation instruction input by the user, the voice operation instruction is parsed to determine the target page corresponding to the final step in the voice operation instruction.

[0063] In this embodiment, the user issues a voice command through the microphone of a device (such as a mobile phone, tablet, etc.), and the device captures the user's voice input and converts it into a digital signal for storage and processing. The captured voice signal is converted into text form using speech recognition technology, and the recognized text is preprocessed, such as noise removal, punctuation normalization, case conversion, etc. The preprocessed text is input into the preset target large language model, and the large language model uses its own language knowledge and reasoning ability to deeply analyze the text to identify the user's intention. By interacting through voice commands, users do not need to manually input or click on the screen, thereby improving the efficiency of interaction. The analysis of the large language model can more accurately understand the user's intention and reduce the possibility of misunderstanding and misoperation.

[0064] In this embodiment, the user issues a voice command through the microphone of a device (such as a mobile phone, tablet, etc.), and after the device captures the user's voice input, it performs pre-processing such as denoising, volume adjustment, and sampling rate conversion on the captured voice signal. After pre-processing, the voice command is decomposed into a series of steps or actions, and the specific page corresponding to each step, and the target page corresponding to the final step is determined.

[0065] In one possible implementation, please refer to Figure 2 , step S100 may further include steps S110 to S140:

[0066] Step S110, after acquiring the voice operation instruction, convert the voice operation instruction into text to obtain an instruction text.

[0067] In this embodiment, after obtaining the voice operation instruction issued by the user and preprocessing it, feature extraction is performed from the preprocessed voice signal, and the feature is usually the spectrum, energy, fundamental frequency and other parameters of the voice signal. In the process of feature extraction, the preprocessed voice signal is segmented according to the time window (such as 20-30 milliseconds), and each time period is called a frame. Fast Fourier transform is performed on each frame to convert the time domain signal into a frequency domain signal to obtain a spectrum. On the basis of the spectrum, the Mel frequency cepstral coefficient is calculated. The Mel frequency cepstral coefficient is a commonly used voice feature that can reflect the auditory characteristics of the human ear. Finally, the extracted features are normalized to eliminate the influence of factors such as different speakers and different environments on the features. Optionally, when performing feature extraction, in addition to calculating the Mel frequency cepstral coefficient, other features such as linear prediction coefficient (LPC), perceptual linear prediction (PLP), spectrum energy, fundamental frequency (F0), etc. can also be extracted.

[0068] In this embodiment, after feature extraction, the extracted features are combined into a feature vector sequence in chronological order. Use a pre-trained speech model (such as a hidden Markov model HMM, a deep neural network DNN, a recurrent neural network RNN, a long short-term memory network LSTM or a Transformer, etc.) to match the feature vector. Apply a decoding algorithm (such as a Viterbi algorithm, a beam search algorithm, etc.) to search for the most likely text sequence on the speech model. The decoded text sequence is fused with the language model, and the knowledge of the language model is used to correct possible errors, which can improve the accuracy of recognition.

[0069] In this embodiment, the errors in the recognized text can also be corrected by using a dictionary, grammar rules or context information. The recognized text is output in a specific format, and redundant spaces and punctuation marks are removed. The recognized text is subjected to natural language processing operations such as lexical analysis and syntactic analysis to further understand and parse the text.

[0070] Step S120, performing semantic analysis on the text to obtain user intention.

[0071] In this embodiment, the recognized instruction text is preprocessed, including removing irrelevant characters (such as punctuation marks, numbers, etc., unless they have an important impact on semantic analysis), word segmentation, part-of-speech tagging, etc. The preprocessed text is parsed using semantic parsing technology (such as rule-based parsing, statistical parsing, or deep learning models) to extract key information (such as entities, actions, relationships, etc.). Based on the parsed key information, an intent recognition model (such as a classifier, a deep learning network, etc.) is used to determine the user's intent. Through semantic analysis and intent recognition, the specific operation or task that the user wants to perform can be identified.

[0072] Step S130: Generate a corresponding operation flow according to the user intention, wherein the operation flow includes at least two operation steps, and each of the operation steps corresponds to a different page.

[0073] Step S140, determining the target page corresponding to the final step.

[0074] In this implementation, a set of mapping rules is formulated based on user intent and system functions to map user intent to specific operation processes. Each operation process includes a series of operation steps, and each step corresponds to a different page or function. The operation process is split into multiple operation steps, and the operation steps are sorted according to the logical order of the operation process. According to the description of the operation steps, the target page corresponding to each step is identified. According to the order of the operation steps and the jump logic between pages, the path for the user to jump from the current page to the target page is determined. Traverse the generated operation steps and find the last operation step. The target page corresponding to the last operation step is the target page of the final step. Use a page mapping table or rule to convert the target page identifier in the operation step into an actual page URL or page object. The page mapping table should contain all possible page identifiers and the corresponding actual page information.

[0075] In this implementation, when mapping rules are formulated, user intentions are classified to clarify the tasks or operations that the user wants to perform. The classified user intentions are matched with the functions of the system, and the specific implementation of the system functions is analyzed, including which pages, buttons, links, etc. are related to the user intentions. Based on the matching results of user intentions and system functions, a set of mapping rules are formulated. These rules define how to map user intentions to specific operation processes, including which pages or functions will be accessed and the order of access. When splitting the operation process into multiple operation steps, the user's habits and usage scenarios can be considered. For example, if the user is accustomed to checking the account balance before transferring money, then we can put the step of querying the account balance at the beginning of the transfer operation process.

[0076] Step S200, determining whether there is page content corresponding to the target page in the stack.

[0077] It should be noted that a stack is a linear table with restricted operations, which only allows insertion and deletion operations at one end of the table (called the top of the stack). This data structure follows the principle of Last In First Out (LIFO), that is, the last inserted element will be deleted first. The stack data structure can be used to manage records of page access history. Each page is regarded as a data element and pushed into the stack. When a user accesses a new page, the page is pushed to the top of the stack. When the user returns to the previous page, the page at the top of the stack is popped out and the next page in the stack (that is, the previous page) is displayed.

[0078] In this embodiment, at the beginning of a session, an empty stack structure is initialized to store page content, and each page has a unique identifier (such as a page ID, page name, or page URL). After receiving the voice operation instruction input by the user and parsing the final step, the identifier of the target page corresponding to the step is obtained. Starting from the top of the stack, check whether there is page content corresponding to the target page in the stack. Compare the page identifier in the stack with the identifier of the target page. If a matching page identifier is found, it indicates that there is page content corresponding to the target page in the stack.

[0079] Step S300: if it exists, clear all page contents in the stack, create an AM instruction according to the target page, and display the target page in response to the AM instruction.

[0080] It should be noted that AM command (Application Manager or Page Manager, Activity Manager) is a command line tool in the Android system, which is used to manage and operate activities and tasks on Android devices. Use adb shell amstart command to start a specified Activity.

[0081] In this embodiment, if the page content corresponding to the target page exists in the stack, all page content in the stack is cleared to ensure that the stack only contains the content of the current target page. After clearing all page content, an AM instruction related to the target page is created according to the identifier of the target page, and in response to the AM instruction, the target page is displayed and the content or data related to the page is loaded.

[0082] For example, please refer to Figure 3(a). In the scenario of sending messages on WeChat, the current WeChat page is on the Moments page, and you need to send XX message to XX, the automatic control program will first return WeChat to the home page and return to the process "Moments->Discover->WeChat". In this case, the user has to wait for a long time, and needs to wait for the page to return to the WeChat home page step by step, and then perform operations such as searching for users, filling in messages, and sending. In this solution, please refer to Figure 3(b). In order to return to the WeChat home page, the page stack of the entire application is cleared except for the WeChat home page. In this way, no matter which page WeChat is currently on, it only takes one step to return to the WeChat home page.

[0083] In one possible implementation, please refer to Figure 2 , step S300 includes steps S310 to S330:

[0084] Step S310, determining the target page name of the target page, and acquiring the corresponding target page class name according to the target page name.

[0085] Step S320, creating the AM instruction according to the target page class name;

[0086] Step S330: Jump from the current page to the target page according to the AM instruction.

[0087] In this implementation, the function of jumping from the current page to the target page is to be realized based on the AM instruction.

[0088] Based on the functional requirements of the application and the instructions issued by the user, clearly define the target page to be jumped. In the source code of the Android project, find the Activity class corresponding to the name of the target page. After finding the corresponding Activity class, record its full class name (including package name and class name). For example, if the target page is under the com.example.app package and the class name is MainActivity, the full class name is com.example.app.MainActivity. Use Android's AM instruction to build a command to start the target page. The basic format of the AM instruction is adb shell am start-n <package-name> / <activity-class-name>. Execute the built AM command in the command line terminal. Trigger the Android system to start the specified Activity, thereby achieving a jump from the current page to the target page.

[0089] For example, am start com.tencent.mm / com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI is used to open the WeChat Moments page.

[0090] am start com.tencent.mm / com.tencent.mm.plugin.collect.ui.WalletCollectQr CodeUI, used to pull up the WeChat payment code page

[0091] am start com.tencent.mm / com.tencent.mm.plugin.setting.ui.setting.Colorful SelfQRCodeUI, which is used to pull up the WeChat QR code page.

[0092] am start--activity-clear-task com.tencent.mm / com.tencent.mm.ui.Launcher UI, used to clear all pages in the stack and pull up the WeChat home page.

[0093] In this implementation, by obtaining the class name of the target page, the Activity to be started in the AM instruction can be accurately specified, thereby ensuring the accuracy of the jump. By performing page jumps through AM instructions, the time of manual operations can be reduced and development efficiency can be improved.

[0094] Step S400: buffering the page content corresponding to the target page into the stack.

[0095] Buffer the page content corresponding to the target page into the stack.

[0096] The present application provides a page jump method. After obtaining the voice operation instruction input by the user, the target page is determined by directly parsing the final step in the voice operation instruction, and the page that the user wants to reach is directly jumped to, which reduces the intermediate steps and waiting time, and improves the fluency and convenience of the user experience. After determining the target page, if the content of the page already exists in the stack, choose to clear all page contents in the stack, and recreate and display the target page. The process of loading intermediate pages one by one is avoided, thereby significantly reducing the page loading time. In addition, clearing all page contents in the stack and retaining only the content of the target page helps to reduce memory usage. By jumping directly to the final target page, unnecessary page rendering and data processing processes are reduced, and the response speed is improved.

[0097] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 , after step S200, steps A100 to A200 are also included:

[0098] Step A100, if it does not exist, create the AM instruction according to the class name of the target page;

[0099] Step A200, in response to the AM instruction, display the target page.

[0100] In this implementation, the Activity records in the current task stack are traversed through methods such as getRunningTasks or getRunningAppProcesses of ActivityManager, and the component name, Intent or other unique identifier of each Activity is checked to determine whether the target page is already in the stack. If the target page is not in the task stack, there is no need to clear it. Instead, an AM command is created to pull up the target page, and the created Intent is directly passed to ActivityManager through the startActivity method of Context.

[0101] For example, please refer to Figure 5(a). In the scenario of opening WeChat Moments, the general process is to simulate clicking the "Discover" button and then clicking "Moments", and the user also needs to wait for a long time. Please refer to Figure 5(b). The Moments page can be directly pulled up through the corresponding AM command. No matter which page WeChat is currently on, you can directly enter the Moments to achieve one-step access.

[0102] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 6 , after step S330, steps S340 to S370 are also included:

[0103] Step S340: If the jump fails, obtain an error log.

[0104] Step S350: determine the error type according to the error log.

[0105] In this embodiment, execute the constructed AM command in the command line terminal to try to jump from the current page to the target page. You can use the adb logcat command to view the log output of the device and find the log information related to the target page to confirm whether the jump is successful. If the jump fails, use the adb logcat command or other log tools to obtain the error log of the device and determine the type of error. Common error types include network errors, command errors, Activity not found, etc.

[0106] Optionally, you can view and filter logs through the command line or the Logcat window in Android Studio. You can also communicate with the Android device through Android Debug Bridge (ADB) to capture and filter logs. Use the log filtering function to filter out logs related to the target based on keywords, tags, log levels, and other conditions. Keywords include error types (such as ERROR, FATAL), exception names (such as NullPointerException, ActivityNotFoundException), etc. By viewing the stack trace information in the error log, you can determine the function call path where the error occurred, thereby locating the specific code location where the problem occurred.

[0107] Step S360: If the error type is a network error, a retry query is generated, and after obtaining confirmation retry information, the AM command is re-executed.

[0108] In this embodiment, if the error type is a network error (such as connection timeout, network instability, etc.), a retry inquiry dialog box or message prompt is displayed to the user. Wait for the user to click the "Retry" button to confirm whether to re-execute the AM command. After obtaining the user's confirmation retry information, re-execute the AM command and try to jump again.

[0109] Step S370: If the error type is the instruction error, a re-entry prompt is generated.

[0110] In this embodiment, if the error type is an instruction error (such as a spelling error in the Activity name, an incorrect package name, etc.), a re-enter prompt is displayed to the user, indicating the possible cause of the error. The user is required to check and correct the error in the AM command and then try to execute it again. Through timely error handling and user prompts, it can be ensured that when using the AM command to jump to a page, the jump failure can be effectively handled, thereby improving the reliability of the system and the user experience.

[0111] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 7 , after step S400, steps B100 to B200 are also included:

[0112] Step B100, determining an execution action according to the voice operation instruction, and a target UI control associated with the execution action in the target page.

[0113] Step B200, responding to the operation instruction according to the execution action and the target UI control.

[0114] It should be noted that UI controls (User Interface) include but are not limited to buttons, text boxes and other UI controls that are expressed on the application.

[0115] In this embodiment, when processing voice operation instructions in a smart device or application, it is parsed and mapped to predefined execution actions based on the parsed instruction content. These actions can be opening an application, sending a message, browsing the web, playing music, etc. The definition of the action may be stored in a local database or obtained from a server through a network request. On the target page, the UI controls associated with the execution action are identified. These controls can be buttons, links, input boxes, etc. The identification of the control may be based on the control's ID, class name, text content, location or other attributes. According to the determined execution action and target UI control, the corresponding operation is triggered to simulate the user clicking on the control, filling in the form, sending network information, etc.

[0116] In this embodiment, after executing the instruction, feedback can also be provided to the user, which can be visual feedback (such as displaying a message or updating the UI), auditory feedback (such as playing a sound) or tactile feedback (such as vibrating the device).

[0117] In one possible implementation, please refer to Figure 8 , step B100 may include steps B110 to B120:

[0118] Step B110, determining an execution action according to the voice operation instruction.

[0119] Step B120, obtaining the UI control displayed on the target page, matching it with the voice operation instruction, and obtaining the target UI control.

[0120] In this embodiment, after identifying the user's intention and the specific action to be performed from the voice operation instruction, the parsed intention or command is mapped to a predefined action. After determining the execution action, a UI automation test framework (such as Android's UI Automator, iOS's UI Testing, etc.) is used to obtain a list of all interactive UI controls on the page. For each UI control, its properties, such as ID, class name, text content, description, location, etc., are extracted. These properties will be used for subsequent matching with the voice operation instruction. The keywords, phrases or commands in the voice operation instruction are matched with the acquired UI control properties. The match can be based on the text content, description or user-defined custom properties of the control. The matching process can be fuzzy (such as based on the similarity of keywords) or precise (such as fully matching the ID or text of the control). If multiple controls match the instruction, additional logic may be needed to select the best match. This can be based on the location of the control, the user's usage habits or other contextual information. If a control that matches the instruction cannot be found, feedback is provided to the user, and they are prompted to re-enter the instruction or select other options.

[0121] In one possible implementation, please refer to Figure 8 , step B200 may include steps B210 to B230:

[0122] Step B210, calling and locating the target UI control in the target page according to the automated testing framework.

[0123] Step B220: Generate a corresponding action execution code according to the execution action.

[0124] Step B230, executing the action execution code on the target UI control.

[0125] In this embodiment, when processing voice operation instructions, it is an efficient and reliable method to combine the automated testing framework to locate the target UI control and perform the corresponding action. First, according to the target platform (such as Android, iOS) and the application type (such as native application, Web application), select a suitable automated testing framework. For example, the Android platform can use UIAutomator, Espresso, etc., and the iOS platform can use UI Testing, XCTest, etc. Secondly, configure the environment required for the automated testing framework, including installing necessary software, setting up test equipment or simulators, etc. And initialize an instance of the automated testing framework in the code and connect to the target device or simulator. After ensuring that the target page has been loaded and displayed on the device, use the API provided by the automated testing framework to locate the target UI control in the target page according to the properties of the control (such as ID, class name, text content, description, etc.). Finally, use the API provided by the automated testing framework to write the code corresponding to the action type. For example, if the action is click, write the code for clicking the control; if the action is to enter text, write the code for entering text in the input box. Call the written action execution code in the automated testing framework to perform the corresponding action on the target UI control.

[0126] In another feasible implementation, when processing voice operation instructions, combining the automated testing framework to locate the target UI control and perform the corresponding action can be achieved by matching with a preset execution script. According to the execution action determined in the voice operation instruction, determine the type of action to be performed, such as clicking, entering text, sliding, etc. Maintain a preset execution script library, which contains scripts corresponding to various execution actions. According to the determined execution action type, search and match the corresponding script in the script library. After finding the matching script, pass the reference of the target UI control to the script, call the execution script API provided by the automated testing framework, load the script and execute it.

[0127] The present application provides a page jump device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the page jump method in the above-mentioned embodiment 1.

[0128] Reference below Fig. 9 , which shows a schematic diagram of the structure of a page jump device suitable for implementing the embodiment of the present application. The page jump device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The page jump device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0129] like Fig. 9 As shown, the page jump device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the page jump device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the page jump device to communicate with other devices wirelessly or by wire to exchange data. Although the page jump device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0130] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0131] The page jump device provided by the present application adopts the page jump method in the above embodiment, which can solve the technical problem of how to avoid the process of loading intermediate pages one by one and reduce memory usage. Compared with the prior art, the beneficial effects of the page jump device provided by the present application are the same as the beneficial effects of the page jump method provided by the above embodiment, and other technical features in the page jump device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0132] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0134] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the page jump method in the above-mentioned embodiment.

[0135] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0136] The computer-readable storage medium may be included in the page jump device; or may exist independently without being assembled into the page jump device.

[0137] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the page jumping device, the page jumping device: after obtaining the voice operation instruction input by the user, parse the voice operation instruction to determine the target page corresponding to the final step in the voice operation instruction; judge whether there is page content corresponding to the target page in the stack; if so, clear all page contents in the stack, and create an AM instruction according to the target page, and display the target page in response to the AM instruction; buffer the page content corresponding to the target page in the stack.

[0138] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0141] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned page jump method, and can solve the technical problem of how to avoid the process of loading intermediate pages one by one and reduce memory usage. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the page jump method provided in the above-mentioned embodiment, which will not be repeated here.

[0142] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application. < / package-name>

Claims

1. A page jump method, characterized in that: The method includes: After obtaining the voice operation instruction input by the user, parsing the voice operation instruction to determine the target page corresponding to the final step in the voice operation instruction; Determine whether there is page content corresponding to the target page in the stack; If it exists, clear all page contents in the stack, create an AM instruction according to the target page, and display the target page in response to the AM instruction; The page content corresponding to the target page is buffered in the stack.

2. The method according to claim 1, characterized in that After obtaining the voice operation instruction input by the user, the step of parsing the operation instruction and determining the target page includes: After the voice operation instruction is obtained, the voice operation instruction is converted into text to obtain an instruction text; Performing semantic analysis on the text to obtain user intention; Generate a corresponding operation flow according to the user intention, wherein the operation flow includes at least two operation steps, and each of the operation steps corresponds to a different page; The target page corresponding to the final step is determined.

3. The method according to claim 1, characterized in that The step of creating an AM instruction according to the target page and displaying the target page in response to the AM instruction comprises: Determine a target page name of the target page, and obtain a corresponding target page class name according to the target page name; Create the AM instruction according to the target page class name; According to the AM instruction, jump from the current page to the target page.

4. The method according to claim 1, characterized in that After the step of determining whether there is page content corresponding to the target page in the stack, the method includes: If it does not exist, create the AM instruction according to the class name of the target page; In response to the AM instruction, the target page is displayed.

5. The method according to claim 3, characterized in that After the step of jumping from the current page to the target page according to the AM instruction, the step further includes: If the jump fails, get the error log; Determine the error type according to the error log; If the error type is a network error, a retry query is generated, and after obtaining confirmation retry information, the AM command is re-executed; If the error type is the instruction error, a re-entry prompt is generated.

6. The method according to claim 1, characterized in that After the step of buffering the page content corresponding to the target page into the stack, the method further comprises: Determine an execution action according to the voice operation instruction, and a target UI control associated with the execution action in the target page; Respond to the operation instruction according to the execution action and the target UI control.

7. The method according to claim 6, characterized in that The step of determining the execution action according to the voice operation instruction and associating the target UI control with the execution action in the target page comprises: Determine an execution action according to the voice operation instruction; The UI control displayed on the target page is obtained, and matched with the voice operation instruction to obtain the target UI control.

8. The method according to claim 6, characterized in that The step of responding to the operation instruction according to the execution action and the target UI control comprises: Calling and locating the target UI control in the target page according to the automated testing framework; According to the execution action, generating a corresponding action execution code; The action execution code is executed on the target UI control.

9. A page jump device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the page jump method according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the page jump method according to any one of claims 1 to 8 are implemented.