WO2021135578A1 - 页面处理方法、装置、存储介质及终端设备 - Google Patents
页面处理方法、装置、存储介质及终端设备 Download PDFInfo
- Publication number
- WO2021135578A1 WO2021135578A1 PCT/CN2020/124154 CN2020124154W WO2021135578A1 WO 2021135578 A1 WO2021135578 A1 WO 2021135578A1 CN 2020124154 W CN2020124154 W CN 2020124154W WO 2021135578 A1 WO2021135578 A1 WO 2021135578A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- page
- browsing
- view
- historical
- application
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/954—Navigation, e.g. using categorised browsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/904—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9538—Presentation of query results
Definitions
- This application belongs to the field of terminal technology, and in particular relates to a page processing method, device, computer-readable storage medium, and terminal equipment.
- the embodiments of the present application provide a page processing method, device, computer-readable storage medium, and terminal equipment, which can simply and quickly return to the browsing page specified by the user.
- an embodiment of the present application provides a page processing method, which may include:
- the historical browsing view of the application is displayed.
- the historical browsing view is established based on the page browsing information, and the page browsing information includes one or more of the browsing information of the user.
- the target browsing page being any browsing page in the browsing pages.
- the page browsing information may include one or more browsing pages browsed by the user, and the historical browsing view may be a view composed of the arrangement of the one or more browsing pages.
- the constructed historical browsing view can be stored in the database file corresponding to the local database and the application.
- the predetermined trigger instruction can be an instruction that triggers the generation of a preset key, or an instruction that triggers the generation of a preset gesture, or an instruction that triggers a preset gesture generated by a specific part (for example, it can also be a knuckle drawing "
- the trigger instruction generated by the M"-shaped gesture may also be an instruction to trigger the generation of a preset voice keyword, which is not limited in the embodiment of the present application.
- the page browsing information can be obtained in real time, and the historical browsing view of the application can be established according to the obtained page browsing information, and when a reservation for the application is detected
- the historical browsing view can be displayed directly, and the user can return to the target browsing page according to the selected operation in the historical browsing view to simplify the page return operation, so that it can be returned to the user specified simply and quickly Browse pages to enhance user experience.
- the displaying the historical browsing view of the application program may include:
- the current program state is the preset program state
- acquiring page browsing information in the application program and establishing a historical browsing view of the application program according to the page browsing information.
- the preset program state is the program state corresponding to the application program when the function switch is turned on.
- the establishing a historical browsing view of the application program according to the page browsing information may include:
- the thumbnails of each page in the historical browsing view are arranged based on each browsing time.
- thumbnails of each page in the historical browsing view may be arranged based on the browsing time corresponding to each browsing page.
- the thumbnails of each page may be arranged in the historical browsing view based on the order of browsing time from newest to oldest.
- the historical browsing view may include one or more view pages, each view page may include one or more page thumbnails arranged in a card format, and the page thumbnails in each view page may also be based on the browsing time.
- Arrangement For example, the browsing page with the newer browsing time, the corresponding page thumbnail is arranged in the view page, and the browsing page with the old browsing time, the corresponding page thumbnail is in the view page The arrangement is further back.
- the user can switch the view pages according to the specific situation.
- the user can switch the view page by clicking a virtual button in the view page, so as to switch to the next view page or return to the previous view page.
- the user may also click a touch button in the terminal device, for example, may click a touch button on the side of the terminal device to switch the view page.
- the number of page thumbnails corresponding to the view page can be determined according to user settings, or can be determined according to the default settings of the terminal device.
- the image size of the page thumbnail corresponding to each browse page may be the same.
- the image size of the page thumbnail can be determined according to the screen size of the terminal device and the number of page thumbnails corresponding to the view page in the historical browsing view.
- the image size of the page thumbnail corresponding to each browsing page may also be different, so as to display the browsing pages differently, so as to quickly locate the target browsing page that the user ultimately wants to return to.
- the establishment of the historical browsing view of the application by the browsing time may include:
- the historical browsing view of the application program is established according to the first page thumbnail and the first browsing time.
- the preset page identifier corresponding to the target browsing page may be configured in advance according to the configuration file of the application program, where the preset page identifier may include one or more. Therefore, when the user browses the page in the application, the page ID of the page browsed by the user can be obtained in real time, and it can be judged whether the page ID of the browsed page is a preset page ID, and when the page ID of the browsed page is a preset page ID
- the browsing page can be determined as the first target browsing page, and the historical browsing view of the application can be established according to the first page thumbnail and the first browsing time corresponding to the first target browsing page, so as to avoid all problems.
- the established historical browsing view contains all the browsing pages browsed by the user, which effectively reduces the number of page thumbnails in the historical browsing view, thereby facilitating and quickly returning to the browsing page specified by the user and improving the user experience.
- the browsing time establishing the historical browsing view of the application program may include:
- the historical browsing view of the application program is established according to the second page thumbnail and the second browsing time.
- the page content of the page browsed by the user can also be obtained in real time, and the content of the page can be automatically analyzed to obtain the second target browsing page, so that the second target browsing page can be browsed according to the second target.
- the second page thumbnail and the second browsing time corresponding to the page are used to establish the historical browsing view of the application to effectively reduce the number of page thumbnails in the historical browsing view, thereby facilitating quick return to the user-specified browsing page and improving user experience.
- the establishment of the historical browsing view of the application program according to the page browsing information it may include:
- a third page thumbnail is obtained and displayed according to the search keyword and the page keyword, and the third page thumbnail is any page among the page thumbnails Thumbnail.
- the page content corresponding to each browsing page in the page browsing information can also be obtained first, and then the content can be determined according to the content of each page.
- Page keywords corresponding to each browsing page, and each determined page keyword can be associated with the page thumbnail corresponding to each browsing page to serve as an index of each page thumbnail.
- a search box can also be provided in the display interface for displaying the historical browsing view.
- the user can input search keywords in the search box to search for keywords and page keys. Word quickly obtains and displays the corresponding third page thumbnail.
- the user can quickly return to the corresponding target browsing page by clicking the third page thumbnail, that is, through the search function, it is convenient to quickly locate the target browsing page that the user wants to return to, thereby improving the user experience.
- the acquiring page browsing information in an application program and establishing a historical browsing view of the application program according to the page browsing information may include:
- the displaying the historical browsing view of the application program may include:
- the first historical browsing view of the first application and the second historical browsing view of the second application are displayed.
- the method may further include:
- the fourth page thumbnail is dragged to the fifth page thumbnail, and the fourth page thumbnail is all Any page thumbnail in the first historical browsing view, and the fifth page thumbnail is any page thumbnail in the second historical browsing view;
- the returning to the target browsing page corresponding to the selected operation in response to the selected operation of the user in the historical browsing view may include:
- the first historical browsing view of the first application and the second historical browsing view of the second application can be established at the same time.
- the first historical browsing view and the second historical browsing view can be displayed at the same time, and page thumbnails can be performed according to the user's drag operation between the first historical browsing view and the second historical browsing view Mobile to meet users’ data sharing needs and enhance user experience.
- an embodiment of the present application provides a page processing device, which may include:
- the browsing view display module is configured to display a historical browsing view of the application when a predetermined trigger instruction to the currently running application is detected, the historical browsing view is established based on page browsing information, and the page browsing information Including one or more browsing pages browsed by the user;
- the browsing page return module is configured to respond to the user's selected operation in the historical browsing view and return to the target browsing page corresponding to the selected operation, the target browsing page being any of the browsing pages One browse page.
- the page processing apparatus may further include:
- a program state acquisition module used to acquire the current program state of the application program
- the browsing view establishing module is configured to obtain page browsing information in the application program when the current program state is a preset program state, and establish a historical browsing view of the application program according to the page browsing information.
- the browsing view establishing module may include:
- the first browsing view establishing unit is used to obtain the page thumbnail corresponding to each of the browsing pages and the browsing time corresponding to each of the browsing pages in the page browsing information, and according to each of the page thumbnails and each of the browsing Time establishes a historical browsing view of the application program, and thumbnails of each page in the historical browsing view are arranged based on each browsing time.
- the first browsing view establishing unit may include:
- the page identifier obtaining subunit is used to obtain the page identifier corresponding to each browsing page in the page browsing information
- the first target page determining sub-unit is configured to determine the first target browsing page according to the page identifier and the preset page identifier configured in the application program, and to obtain the first page thumbnail corresponding to the first target browsing page The first browsing time corresponding to the first target browsing page;
- the first browsing view creation sub-unit is configured to create a historical browsing view of the application program according to the first page thumbnail and the first browsing time.
- the first browsing view establishing unit may further include:
- the page content acquisition sub-unit is used to acquire page content corresponding to each of the browsing pages in the page browsing information
- the second target page determination subunit is configured to determine a second target browsing page according to the page content, and obtain a second page thumbnail corresponding to the second target browsing page and a second target browsing page corresponding to the second target browsing page.
- the second browsing view creation sub-unit is configured to create a historical browsing view of the application program according to the second page thumbnail and the second browsing time.
- the page processing apparatus may further include:
- the page keyword determining module is configured to obtain the page content corresponding to each browse page in the page browsing information, and determine the page keyword corresponding to each page thumbnail according to the page content;
- the page search module is configured to obtain and display a third page thumbnail according to the search keyword and the page keyword when the search keyword input by the user is received, and the third page thumbnail is the page thumbnail Thumbnail of any page in the thumbnail.
- the browsing view establishment module may include:
- the browsing information obtaining unit is configured to obtain the first page browsing information in the first application program and the second page browsing information in the second application program;
- the second browsing view establishing unit is configured to establish a first historical browsing view of the first application according to the first page browsing information, and establish a second historical browsing view of the second application according to the second page browsing information Historical browsing view;
- the browsing view display module is further configured to display the first historical browsing view of the first application and the second historical browsing view of the second application.
- the page processing apparatus may further include:
- the dragging module is configured to drag the fourth page thumbnail to the fifth page thumbnail according to the user's drag operation between the first historical browsing view and the second historical browsing view.
- the four-page thumbnail is any page thumbnail in the first historical browsing view
- the fifth page thumbnail is any page thumbnail in the second historical browsing view;
- the browsing page returning module is further configured to return to the fifth target browsing page containing the fourth page thumbnail in response to the user's selection operation on the fifth page thumbnail, the fifth target The browsing page is the browsing page corresponding to the fifth page thumbnail.
- an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and running on the processor.
- the processor executes the computer program, The page processing method described in any one of the foregoing first aspect is implemented.
- an embodiment of the present application provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements any one of the above-mentioned aspects of the first aspect The page processing method.
- the embodiments of the present application provide a computer program product, which when the computer program product runs on a terminal device, causes the terminal device to execute the page processing method described in any one of the above-mentioned first aspects.
- the page browsing information can be obtained, and the historical browsing view of the application can be established according to the obtained page browsing information, and when a predetermined trigger for the application is detected
- the historical browsing view can be displayed directly, and according to the user's selected operation in the historical browsing view, it can return to the target browsing page to simplify the page return operation, so that it can return to the user-specified simply and quickly Browse pages to improve user experience.
- FIG. 1 is a block diagram of the software architecture of a terminal device to which a page processing method provided in an embodiment of the present application is applicable;
- FIG. 2 is a schematic structural diagram of an application history manager provided by an embodiment of the present application.
- FIG. 3 is an example diagram of a history management function of opening an application provided by an embodiment of the present application.
- FIG. 4 is a schematic flowchart of a page processing method provided by an embodiment of the present application.
- FIG. 5 is a display example diagram of a historical browsing view provided by an embodiment of the present application.
- Fig. 6 is another display example diagram of a historical browsing view provided by an embodiment of the present application.
- FIG. 7 is another display example diagram of the historical browsing view provided by an embodiment of the present application.
- FIG. 8 is another display example diagram of the historical browsing view provided by an embodiment of the present application.
- FIG. 9 is another display example diagram of the historical browsing view provided by an embodiment of the present application.
- FIG. 10 is another display example diagram of a historical browsing view provided by an embodiment of the present application.
- FIG. 11 is another display example diagram of a historical browsing view provided by an embodiment of the present application.
- FIG. 12 is a schematic structural diagram of a page processing device provided by an embodiment of the present application.
- FIG. 13 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
- FIG. 14 is a schematic structural diagram of a mobile phone to which the page processing method provided by an embodiment of the present application is applicable.
- the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
- the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
- the page processing method provided by the embodiments of this application can be applied to mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and ultra-mobile personal computers
- AR augmented reality
- VR virtual reality
- UMPC ultra-mobile personal computer
- netbooks netbooks
- PDA personal digital assistant
- embodiments of the present application provide a page processing method, device, computer-readable storage medium, and terminal device.
- the terminal device can obtain page browsing information, and can use it according to The acquired page browsing information establishes the historical browsing view of the application, and when a predetermined trigger instruction to the application is detected, the historical browsing view can be directly displayed, and the user's selected operation in the historical browsing view can be displayed , Return to the target browsing page to simplify the page return operation, so that you can return to the user-specified browsing page simply and quickly, and improve the user experience.
- Fig. 1 is a block diagram of the software structure of a terminal device according to an embodiment of the present application.
- the Android system is divided into four layers, namely the application layer, the application framework layer (framework, FWK), the Android runtime (Android Runtime) and the system Libraries, and hardware abstraction layer. Communication between layers through software interface.
- the application layer can include a series of application packages.
- the application packages can be built-in application packages of the system or can be obtained from a third party.
- Application packages can include SMS, calendar, camera, video, music, navigation, gallery, call, news, instant messaging and other applications.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer may include some predefined functions, such as functions for receiving events sent by the application framework layer.
- the application framework layer can include an activity manager (Activity Manager), a window manager (Window Manager), a content provider (Content Provider), a resource manager (Resource Manager), and a notification manager (Notification Manager). ) And View System, etc.
- the activity manager is used to manage the life cycle of each application.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- the content provider is used to store and retrieve data and make these data accessible to applications.
- the data may include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
- the notification manager is used to notify download completion, message reminders, and so on.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
- the view system may include visual controls, such as controls that display text, controls that display pictures, and so on.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
- application framework layer can also include:
- Application History Manager which is used to manage various applications, such as managing the startup and judgment of activities in each application, and managing the acquisition, display and interaction of historical browsing pages in each application, etc.
- the system code corresponding to the application history manager can be added to each application in the form of piling, so that each application can execute the management logic corresponding to the application history manager, so as to realize the history management function of each application, for example Stub functions can be added to key positions such as opening and removal of each Activity in each application, so as to add the system code corresponding to the application history manager to the native process of each application, so as to realize the application history manager to each application
- the history management function of the program can be added to key positions such as opening and removal of each Activity in each application, so as to add the system code corresponding to the application history manager to the native process of each application, so as to realize the application history manager to each application The history management function of the program.
- the application history manager can include an application data management module, an activity (Activity) policy management module, a persistent storage module, a configuration management module, an interaction (UI) prompt and guidance module, a historical browsing view display module, and triggers.
- Activity activity
- UI interaction
- Command monitoring module a command monitoring module.
- the application data management module is used to manage application data, such as managing user selection data during the setting or use of each application, and/or managing the whitelist of the application history manager, where the whitelist refers to the application
- the history manager can carry out a list of applications for the history management function.
- the application package of the application layer may also include a setting.
- the whitelist can be added to the setting to add an independent function switch to each application corresponding to the whitelist to enable or disable the history management function of the application history manager for each application.
- the Activity policy module is used to determine whether it is necessary to record the page browsing information of the browsing page corresponding to the activity in the database file when each activity of the application is started, combined with the data in the application data management module and the data in the configuration management module, and When each activity is destroyed, it is judged whether it is necessary to remove the page browsing information of the browsing page corresponding to the activity in the database file.
- the persistent storage module is used to allocate database files for each application program, and is used to record page browsing information of each application program.
- the page browsing information stored in the database file may include the page thumbnail of the browsing page corresponding to the activity and the activation component Intent of the activity.
- the Intent can be used to start the Activity corresponding to the page thumbnail to open the browsing page corresponding to the page thumbnail. That is, when the Activity policy module determines that it is necessary to record the page browsing information of the browsing page corresponding to a certain Activity in the database file, the persistent storage module can save the page thumbnail of the browsing page corresponding to the Activity and the Intent that starts the activity.
- the persistent storage module can ensure that the page browsing information can still be retained after the terminal device is shut down and restarted.
- the configuration management module is used to configure the functions of each application according to the configuration file of each application, such as configuring whether the application supports the history management function of the application history manager, configuring whether the application opens the history management function and configuration of the application history manager
- the page identification of the browsing page that needs to be recorded in the page browsing information in the application can be added to the assets directory of each application, and the added configuration files can be broadcast.
- the quick service system (Easygo system) in the Android system can receive and analyze the configuration files to enable configuration management
- the module can configure the functions of each application according to the analysis result.
- the UI prompt and guide module is used to provide a prompt and guide interface when each application is started for the first time.
- the historical browsing view display module is used to construct the historical browsing view corresponding to the page browsing information stored in the persistent storage module in the form of a card, and to display the historical browsing view. At the same time, it can also provide fast scrolling and click to enter a certain browsing page.
- the trigger command monitoring module is used to monitor a specific trigger command to trigger the historical browsing view display module to display the historical browsing view according to the trigger command.
- UI prompt and guide module can complete related functions by cooperating with the system UI (system UI) of the application layer.
- the recording function can not only improve the user experience, but also reduce the difficulty of accessing third-party applications.
- the Android runtime is responsible for the scheduling and management of the Android system.
- the Android runtime can include core libraries and virtual machines.
- the core library can include the function functions that the Java language needs to call and the core library of Android.
- the application layer and the application framework layer run in a virtual machine, and the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules. For example: sensor service module, physical state recognition module, 3D graphics processing library (for example: OpenGL ES), etc.
- the sensor service module is used to monitor the sensor data uploaded by various sensors at the hardware layer to determine the physical state of the mobile phone;
- Physical state recognition module used to analyze and recognize user gestures, faces, etc.
- the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
- the system library can also include:
- the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the hardware abstraction layer is the layer between hardware and software.
- the hardware abstraction layer can include display drivers, camera drivers, sensor drivers, etc., used to drive related hardware at the hardware layer, such as display screens, cameras, sensors, and so on.
- FIG. 4 shows a schematic flowchart of a page processing method provided by an embodiment of the present application.
- the page processing method may be implemented on a terminal device having the above-mentioned software structure.
- the page processing method may include:
- the application program may be an application program carried by the system in the terminal device, or an application program obtained by the terminal device from a third party, and the application program is an application program for which the terminal device has been configured with functions. That is to say, the configuration management module in the terminal device has configured the application program according to the configuration file of the application program, so that the application program can support the history management function of the application history manager in the terminal device, so that the application program With history record function. Therefore, when the user starts the application in the terminal device and browses the page in the application, the terminal device can obtain and store the page browsing information in the application, and can create the application based on the page browsing information Historical browsing view.
- the page browsing information may include one or more browsing pages browsed by the user
- the historical browsing view may be a view composed of the one or more browsing pages
- the constructed historical browsing view may be stored in the terminal device The database file corresponding to the application in the local database.
- the terminal device may set a function switch for the application program, and the function switch may enable or disable the history management function of the application program.
- the user can turn on or turn off the function switch according to actual needs to turn on or off the history management function of the application. Therefore, when the application is started, the terminal device can first determine whether the function switch of the application is turned on. When the function switch of the application is turned on, the terminal device can determine that the history management function of the application is started. When the user browses the page in the application program, the terminal device can obtain the page browsing information in the application program, and can establish the historical browsing view of the application program according to the page browsing information.
- the terminal device may preset the preset program state corresponding to the application program when the function switch is turned on. Therefore, the terminal device can determine whether the function switch of the application program is turned on by acquiring the current program state of the application program and determining whether the current program state of the application program is the preset program state. Specifically, when the current program state of the application program is the preset program state, it indicates that the user has currently turned on the function switch of the application program.
- the terminal device can obtain the page browsing information in the application program, and can use it according to
- the page browsing information establishes the historical browsing view of the application; and when the current program state of the application is not the preset program state, that is, when the user does not turn on the function switch of the application, it indicates that the user does not want to perform the browsing behavior. Record, at this time, the terminal device may not record the user's page browsing behavior in the application.
- the function switch of the application can be turned on by default to record the user's page browsing in the application, so as to facilitate the quick return to the browsing page designated by the user and improve the user experience.
- the function switch of the application program can be turned off by default, which is not limited in the embodiment of the present application.
- the terminal device can obtain the page thumbnail corresponding to each browsed page and the browsing time corresponding to each browsed page in real time, and can be based on the thumbnail and
- the historical browsing view of the application is established for each browsing time.
- thumbnails of each page in the historical browsing view may be arranged based on the browsing time corresponding to each browsing page.
- the thumbnails of each page may be arranged in the historical browsing view based on the order of browsing time from newest to oldest.
- the historical browsing view may include one or more view pages, each view page may include one or more page thumbnails arranged in a card format, and the page thumbnails in each view page may be based on the corresponding browse Time to arrange. For example, the browsing page with the newer browsing time, the corresponding page thumbnail is arranged in the view page, and the browsing page with the old browsing time, the corresponding page thumbnail is in the view page The arrangement is further back.
- the number of page thumbnails corresponding to the view page can be determined according to user settings, or can be determined according to the default settings of the terminal device.
- the number of page thumbnails corresponding to a view page can be 4, and the page thumbnails corresponding to the view page can be as shown in Figure 5, where the page thumbnail A in the view page corresponds to The browsing time is later than the browsing time corresponding to page thumbnail B, the browsing time corresponding to page browsing thumbnail B is later than the browsing time corresponding to page thumbnail C, and the browsing time corresponding to page thumbnail C is later than that corresponding to page thumbnail D Browse time.
- the terminal device when it establishes the historical browsing view, it can also add the browsing time corresponding to each page thumbnail in the established historical browsing view, so as to facilitate the quick return to the specified browsing page that the user wants to return, and improve the user experience .
- the terminal device may add the browsing time corresponding to each page thumbnail to the view page shown in FIG. 5 to obtain the view page shown in FIG. 6.
- the user can switch the view pages according to the specific situation. For example, as shown in FIG. 5, the user can switch the view page by clicking a virtual button (such as a triangle figure) in the view page to switch to the next view page or return to the previous view page.
- a virtual button such as a triangle figure
- the user may also click a touch button in the terminal device, for example, may click a touch button on the side of the terminal device to switch the view page.
- the image size of the page thumbnail corresponding to each browse page may be the same.
- the terminal device may determine the image size of the page thumbnail according to the screen size of the terminal device and the number of page thumbnails corresponding to the view page in the historical browsing view.
- the terminal device can determine the image size of the page thumbnail to be one-third of the screen size (that is, the length of the page thumbnail) Is one-third of the screen length, and the width of the page thumbnail is one-third of the screen width); as shown in Figure 7, when the number of page thumbnails corresponding to the view page in the historical browsing view is 9, the terminal device Then, the image size of the page thumbnail can be determined to be a quarter of the screen size (that is, the length of the page thumbnail is one quarter of the screen length, and the width of the page thumbnail is one quarter of the screen width).
- the terminal device may also determine the image size to other values in other ways, such as The terminal device may also determine the image size of the page thumbnail according to user-defined settings, or may also determine the image size of the page thumbnail according to the default setting of the terminal device, which is not limited in the embodiment of the present application.
- the image size of the page thumbnail corresponding to each browsing page may also be different to display different browsing pages, so that the user can quickly locate the target browsing page that he or she wants to return to.
- the terminal device may also determine the image size of each page thumbnail according to the browsing time corresponding to each browsing page. Specifically, a browsing page with a newer browsing time has a larger image size of the corresponding page thumbnail, and a browsing page with an older browsing time has a smaller image size of the corresponding page thumbnail.
- the terminal device may also determine the image size of each page thumbnail according to the browsing duration corresponding to each browsing page. Specifically, a browsing page with a longer browsing time has a larger image size of the corresponding page thumbnail, and a browsing page with a shorter browsing time has a smaller image size of the corresponding page thumbnail.
- the terminal device may also determine the image size of each page thumbnail according to the browsing popularity corresponding to each browsing page.
- the browsing popularity can be determined according to the number of times the browsing page is browsed. Among them, the more browsed times, the higher the browsing popularity, the fewer the browsed times, the lower the browsing popularity. Specifically, a browsing page with a higher browsing popularity has a larger image size of the corresponding page thumbnail, and a browsing page with a lower browsing popularity has a smaller image size of the corresponding page thumbnail.
- the terminal device may establish the historical browsing view only based on the page browsing information corresponding to the effective browsing page.
- the terminal device may configure in advance the preset page identifier corresponding to the valid browsing page according to the configuration file of the application program, where the preset page identifier may include one or more, and both the preset page identifier and subsequent page identifiers may be The page name corresponding to the browse page, etc., and the page name can be the name of the Activity corresponding to the browse page.
- the terminal device can obtain the page identifier of the page browsed by the user in real time, and can determine whether the page identifier of the browsed page is a preset page identifier, and when the page identifier of the browsed page is When the page identifier is preset, the terminal device can determine the browsing page as the first target browsing page, and can establish the historical browsing view of the application according to the first page thumbnail corresponding to the first target browsing page and the first browsing time In order to avoid the established historical browsing view containing all the browsing pages browsed by the user, effectively reducing the number of page thumbnails in the historical browsing view, so as to facilitate the quick return to the browsing page specified by the user and improve the user experience.
- the terminal device determines the page identifier A of page A, the page identifier D of page D, and the page identifier E of page E
- the terminal device can determine that page A, page D, and page E are the first target browsing Pages (that is, effective browsing pages), at this time, the terminal device can establish the historical browsing view of the application according to the first page thumbnail and the first browsing time corresponding to the pages A, D, and E.
- the terminal device can obtain the page content of the page browsed by the user in real time, and can obtain the second target browsing page by performing content analysis on the page content.
- the browsing page whose page content meets the preset conditions may be determined as the second target browsing page, and the historical browsing view of the application program may be established according to the second page thumbnail and the second browsing time corresponding to the second target browsing page ,
- the preset condition may be a condition corresponding to a product detail page or a content detail page.
- the terminal device can limit the number of page thumbnails in the historical browsing view according to user settings or system default settings, so as to reduce the storage memory of the terminal device, and ensure the real-time and effectiveness of the historical browsing view, thereby improving the user experience .
- the terminal device may limit the number of page thumbnails in the historical browsing view to 20 according to user settings, that is, the terminal device may only record page thumbnails corresponding to 20 browsing pages in the application in real time.
- the terminal device can record new page thumbnails by deleting the old page thumbnails. Page thumbnails to ensure the real-time and effectiveness of the historical browsing view and enhance the user experience.
- the terminal device can also clean up and delete the historical browsing view or the corresponding browsing page in the historical browsing view in real time to release the storage memory of the terminal device. For example, when the storage duration of a page thumbnail in the historical browsing view reaches the duration threshold, the terminal device can delete the page thumbnail in the historical browsing view and delete the browsing page corresponding to the page thumbnail, where the duration threshold can be It is determined according to the actual situation, for example, the duration threshold can be determined as one week, one month, and so on. For example, when the terminal device receives a user's cleaning operation on the historical browsing view or a page thumbnail in the historical browsing view, the terminal device can delete the historical browsing view or delete the page thumbnail and the page in the historical browsing view. The browse page corresponding to the thumbnail.
- the predetermined trigger instruction may be an instruction that triggers the generation of a preset key, or an instruction that triggers the generation of a preset gesture, or an instruction that is generated by triggering a preset gesture through a specific part, or it may be an instruction to trigger a preset voice keyword
- the generated instructions are not limited in the embodiment of this application.
- the terminal device can be preset to generate a predetermined trigger instruction when the "multitasking" button is triggered three times during the running of the application, or it can be preset to trigger both the "multitasking" button and the "volume +” button during the running of the application
- the predetermined trigger instruction can be generated when the application is running, or it can be preset to generate the predetermined trigger instruction when the sliding button on the side of the terminal device is triggered during the running of the application.
- the terminal device can generate and obtain a predetermined trigger instruction.
- the terminal device can be set in advance to generate a predetermined trigger instruction when preset gestures such as "M" gestures are collected during the running of the application. Then, during the running of the application, when the user inputs a predetermined gesture such as "M" When the gesture matches the gesture, the terminal device can generate and obtain the predetermined trigger instruction.
- the terminal device can also be preset to generate a predetermined trigger instruction when preset gestures such as "M"-shaped gestures drawn by knuckles are collected during the running of the application. Then, during the running of the application, when the user inputs through the knuckles When a gesture that matches a preset gesture such as an "M"-shaped gesture, the terminal device can generate and obtain a predetermined trigger instruction.
- preset gestures such as "M"-shaped gestures drawn by knuckles are collected during the running of the application. Then, during the running of the application, when the user inputs through the knuckles
- a gesture that matches a preset gesture such as an "M"-shaped gesture
- the terminal device can also be preset to generate a predetermined trigger instruction when a preset voice keyword such as "page return” is detected during the running of the application, and then when the user input voice contains a preset voice key such as "page return” When writing a word, the terminal device can generate and obtain a predetermined trigger instruction.
- a preset voice keyword such as "page return”
- the terminal device can generate and obtain a predetermined trigger instruction.
- the terminal device can sort the view pages according to the browsing time corresponding to the browsing page in each view page. Among them, the browsing time corresponding to the browsing page is the newer the view page. The higher the corresponding ranking, and the older the viewing time of the browsing page, the lower the corresponding ranking. Therefore, when displaying the historical browsing view according to the predetermined trigger instruction input by the user, the terminal device can prioritize the display of the view page with the highest ranking, and can switch the view page according to the switching instruction or the preset duration.
- the preset duration may be understood as a duration preset in the terminal device, for example, it may be understood as a duration preset in the terminal device such as 20 seconds, 30 seconds, and so on.
- the terminal device when the terminal device displays the historical browsing view in the display interface, it can also provide virtual buttons (such as triangle graphics) for the user to switch the view page on the display interface.
- the user can click the virtual button to Switch the view page. For example, the user can switch to the next view page or return to the previous view page by clicking a virtual button.
- the terminal device may also automatically switch the view page when the display duration of the view page reaches the preset duration. For example, when the display duration of a certain view page reaches a preset duration (for example, 30 seconds), the terminal device can automatically switch to the next view page. It should be understood that the operation of the terminal device to automatically switch the view page can be executed cyclically, that is, when the display duration of the last view page in the historical browsing view reaches the preset duration, the terminal device can automatically switch to the first view in the historical browsing view. A view page.
- the user can return to the target browsing page selected by the selected operation by performing a selected operation, so as to realize the rapid return of the target browsing page and improve the user experience.
- the terminal device in order to improve page return efficiency and user experience, after the terminal device establishes the historical browsing view of the application according to the page browsing information, it can also first obtain the page corresponding to each browsing page in the page browsing information Content, then the page keywords corresponding to each browsing page can be determined according to the content of each page, and the determined page keywords can be associated with the page thumbnails corresponding to each browsing page to serve as an index of the thumbnails of each page.
- the page content corresponding to the browse page may include the body content of the browse page, and may also include the title content of the browse page.
- the terminal device may perform keyword extraction on the text content of each browsing page, and/or may perform keyword extraction on the title content of each browsing page, and may determine each extracted keyword as each browsing page The corresponding page keyword.
- the terminal device can use the existing keyword extraction method to perform keyword extraction on the text content and/or title content, which is not limited in the embodiment of the present application.
- the terminal device when the terminal device displays the historical browsing view, it can also provide a search box on the display interface for displaying the historical browsing view.
- the user can input search keywords in the search box, and the terminal device After receiving the search keyword entered by the user, the target page keyword corresponding to the search keyword can be matched, and the third page thumbnail associated with the target page keyword can be obtained and displayed.
- the user can click the third page thumbnail To quickly return to the corresponding target browsing page.
- the target page keyword is one or more of the page keywords corresponding to each browsed page.
- searching can facilitate users to quickly locate the target browsing page they want to return to, thereby improving user experience.
- the terminal device may also directly jump to display the target browsing page corresponding to the third page thumbnail, so as to realize the quick return of the browsing page and improve the user experience.
- the terminal device may also associate the browsing time corresponding to each browsing page with the page thumbnail corresponding to each browsing page to serve as an index of the thumbnail of each page. Therefore, when the terminal page is displaying the historical browsing view, the user can enter the search time in the above search box. After the terminal device receives the search time input by the user, it can match the target browsing time corresponding to the search time. And can obtain and display the page thumbnail corresponding to the target browsing time, so as to quickly return to the target browsing page specified by the user. Wherein, the target browsing time is the browsing time corresponding to any browsing page.
- the terminal device when a user browses a page in an application, the terminal device can obtain page browsing information in the application, and can establish a historical browsing view of the application according to the obtained page browsing information, and when it is detected
- the terminal device can directly display the historical browsing view, and can return to the target browsing page selected by the selected operation according to the user's selected operation in the historical browsing view to simplify the page return Operation, so that you can return to the user-specified browsing page simply and quickly, and improve the user experience.
- the terminal device can be a terminal device with a split screen display, that is, the display screen of the terminal device can be divided into two or There are more than two display areas, and each display area can display applications. The following will take the display screen divided into two display areas as an example for description.
- the first display area can be used to display the first application (such as application A), and the second display area can be used to display The second application (such as application B) allows the user to browse the first application and the second application in the terminal device at the same time.
- the terminal device can obtain the first page browsing information in the first application and the second page browsing information in the second application at the same time, and can use The first page browsing information establishes a first historical browsing view of the first application, and a second historical browsing view of the second application can be established according to the second page browsing information.
- the terminal device may display the first historical browsing view in the first display area, as shown in FIG. 10, or may display the second historical browsing view in the second display area.
- the terminal device may display in the first display according to the user's selected operation in the first historical browsing view and/or the second historical browsing view.
- the third target browsing page selected by the selected operation is displayed in the area and/or the fourth target browsing page selected by the selected operation is displayed in the second display area.
- the terminal device can also drag the fourth page thumbnail in the first historical browsing view to the second application, or drag the fifth page thumbnail in the second historical browsing view according to the drag operation of the user. Drag to the first application.
- the fourth page thumbnail (such as the page thumbnail corresponding to the historical browsing webpage) in the first historical browsing view can be dragged and dropped to the second application (such as an instant messaging program) according to the user's drag operation. So as to realize data sharing between applications and improve user experience.
- the terminal device can also display the first historical browsing view and the second historical browsing view at the same time. Drag operation between views, drag the fourth page thumbnail to the fifth page thumbnail, where the fourth page thumbnail is any page thumbnail in the first historical browsing view, and the fifth page thumbnail is the first 2. Any page thumbnail in the historical browsing view, and when the user selects the fifth page thumbnail to return, the fifth target browsing page containing the fourth page thumbnail can be displayed, and the fifth target browsing page is the fifth The browse page corresponding to the page thumbnail.
- a certain historical chat record page in a first application can be dragged to a certain memo page in a second application (such as a memo program) according to the user’s drag operation, and when the user When the memo page is opened, the terminal device can display the historical chat record page at the same time when displaying the content of the memo page, so as to realize data sharing between applications and improve user experience.
- a first application such as an instant messaging program
- a second application such as a memo program
- Fig. 12 shows a structural block diagram of a page processing apparatus provided in an embodiment of the present application. For ease of description, only the parts related to the embodiment of the present application are shown.
- the page processing apparatus may include:
- the browsing view display module 1201 is configured to display a historical browsing view of the application when a predetermined trigger instruction for the currently running application is detected, the historical browsing view is established based on page browsing information, and the page browsing The information includes one or more browsing pages browsed by the user;
- the browsing page returning module 1202 is configured to respond to the user's selected operation in the historical browsing view, and return to the target browsing page corresponding to the selected operation, where the target browsing page is the one in the browsing page Any browse page.
- the page processing apparatus may further include:
- a program state acquisition module used to acquire the current program state of the application program
- the browsing view establishing module is configured to obtain page browsing information in the application program when the current program state is a preset program state, and establish a historical browsing view of the application program according to the page browsing information.
- the browsing view establishing module may include:
- the first browsing view establishing unit is used to obtain the page thumbnail corresponding to each of the browsing pages and the browsing time corresponding to each of the browsing pages in the page browsing information, and according to each of the page thumbnails and each of the browsing Time establishes a historical browsing view of the application program, and thumbnails of each page in the historical browsing view are arranged based on each browsing time.
- the first browsing view establishing unit may include:
- the page identifier obtaining subunit is used to obtain the page identifier corresponding to each browsing page in the page browsing information
- the first target page determining sub-unit is configured to determine the first target browsing page according to the page identifier and the preset page identifier configured in the application program, and to obtain the first page thumbnail corresponding to the first target browsing page The first browsing time corresponding to the first target browsing page;
- the first browsing view creation sub-unit is configured to create a historical browsing view of the application program according to the first page thumbnail and the first browsing time.
- the first browsing view establishing unit may further include:
- the page content acquisition sub-unit is used to acquire page content corresponding to each of the browsing pages in the page browsing information
- the second target page determination subunit is configured to determine a second target browsing page according to the page content, and obtain a second page thumbnail corresponding to the second target browsing page and a second target browsing page corresponding to the second target browsing page.
- the second browsing view creation sub-unit is configured to create a historical browsing view of the application program according to the second page thumbnail and the second browsing time.
- the page processing apparatus may further include:
- the page keyword determining module is configured to obtain the page content corresponding to each browse page in the page browsing information, and determine the page keyword corresponding to each page thumbnail according to the page content;
- the page search module is configured to obtain and display a third page thumbnail according to the search keyword and the page keyword when the search keyword input by the user is received, and the third page thumbnail is the page thumbnail Thumbnail of any page in the thumbnail.
- the browsing view establishment module may further include:
- the browsing information obtaining unit is configured to obtain the first page browsing information in the first application program and the second page browsing information in the second application program;
- the second browsing view establishing unit is configured to establish a first historical browsing view of the first application according to the first page browsing information, and establish a second historical browsing view of the second application according to the second page browsing information Historical browsing view;
- the browsing view display module 1201 is further configured to display the first historical browsing view of the first application and the second historical browsing view of the second application.
- the page processing apparatus may further include:
- the dragging module is configured to drag the fourth page thumbnail to the fifth page thumbnail according to the user's drag operation between the first historical browsing view and the second historical browsing view.
- the four-page thumbnail is any page thumbnail in the first historical browsing view
- the fifth page thumbnail is any page thumbnail in the second historical browsing view;
- the browsing page returning module 1202 is further configured to return to the fifth target browsing page containing the fourth page thumbnail in response to the user's selection operation on the fifth page thumbnail, the fifth The target browsing page is the browsing page corresponding to the fifth page thumbnail.
- FIG. 13 is a schematic structural diagram of a terminal device provided by an embodiment of this application.
- the terminal device 13 of this embodiment includes: at least one processor 1300 (only one is shown in FIG. 13), a memory 1301, and stored in the memory 1301 and can be stored in the at least one processor 1300.
- the processor 1300 executes the computer program 1302, the steps in any of the foregoing embodiments of the page processing method are implemented.
- the terminal device 13 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
- the terminal device may include, but is not limited to, a processor 1300 and a memory 1301.
- FIG. 13 is only an example of the terminal device 13 and does not constitute a limitation on the terminal device 13. It may include more or less components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
- the processor 1300 may be a central processing unit (Central Processing Unit, CPU), and the processor 1300 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). , ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the memory 1301 may be an internal storage unit of the terminal device 13 in some embodiments, such as a hard disk or a memory of the terminal device 13. In other embodiments, the memory 1301 may also be an external storage device of the terminal device 13, such as a plug-in hard disk equipped on the terminal device 13, a smart media card (SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc. Further, the memory 1301 may also include both an internal storage unit of the terminal device 13 and an external storage device.
- the memory 1301 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 1301 may also be used to temporarily store data that has been output or will be output.
- the terminal device involved in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, and the like.
- FIG. 14 shows a block diagram of a part of the structure of a mobile phone provided in an embodiment of the present application.
- the mobile phone may include: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, and a wireless fidelity (WiFi) module 1470 , Processor 1480, and power supply 1490.
- RF radio frequency
- the structure of the mobile phone shown in FIG. 14 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
- the RF circuit 1410 can be used for receiving and sending signals during the process of sending and receiving information or talking. In particular, after receiving the downlink information of the base station, it is processed by the processor 1480; in addition, the designed uplink data is sent to the base station.
- the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
- the RF circuit 1410 can also communicate with the network and other devices through wireless communication.
- the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Email, Short Messaging Service (SMS), etc.
- GSM Global System of Mobile Communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- Email Short Messaging Service
- the memory 1420 may be used to store software programs and modules.
- the processor 1480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1420.
- the memory 1420 may mainly include a storage program area and a storage data area.
- the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
- the memory 1420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
- the input unit 1430 can be used to receive inputted number or character information, and generate key signal input related to the user settings and function control of the mobile phone.
- the input unit 1430 may include a touch panel 1431 and other input devices 1432.
- the touch panel 1431 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 1431 or near the touch panel 1431. Operation), and drive the corresponding connection device according to the preset program.
- the touch panel 1431 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1480, and can receive and execute the commands sent by the processor 1480.
- the touch panel 1431 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
- the input unit 1430 may also include other input devices 1432.
- the other input device 1432 may include, but is not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick.
- the display unit 1440 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
- the display unit 1440 may include a display panel 1441.
- the display panel 1441 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), etc.
- the touch panel 1431 can cover the display panel 1441. When the touch panel 1431 detects a touch operation on or near it, it transmits it to the processor 1480 to determine the type of the touch event, and then the processor 1480 responds to the touch event. The type provides corresponding visual output on the display panel 1441.
- the touch panel 1431 and the display panel 1441 are used as two independent components to realize the input and input functions of the mobile phone, but in some embodiments, the touch panel 1431 and the display panel 1441 can be integrated. Realize the input and output functions of the mobile phone.
- the mobile phone may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.
- the light sensor can include an ambient light sensor and a proximity sensor.
- the ambient light sensor can adjust the brightness of the display panel 1441 according to the brightness of the ambient light.
- the proximity sensor can close the display panel 1441 and/or when the mobile phone is moved to the ear. Or backlight.
- the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary.
- the audio circuit 1460, the speaker 1461, and the microphone 1462 can provide an audio interface between the user and the mobile phone.
- the audio circuit 1460 can transmit the electric signal after the conversion of the received audio data to the speaker 1461, which is converted into a sound signal by the speaker 1461 for output; on the other hand, the microphone 1462 converts the collected sound signal into an electric signal, and the audio circuit 1460 After being received, it is converted into audio data, and then processed by the audio data output processor 1480, and then sent to, for example, another mobile phone via the RF circuit 1410, or the audio data is output to the memory 1420 for further processing.
- WiFi is a short-distance wireless transmission technology.
- the mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1470. It provides users with wireless broadband Internet access.
- FIG. 14 shows the WiFi module 1470, it is understandable that it is not a necessary component of the mobile phone, and can be omitted as needed without changing the essence of the invention.
- the processor 1480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes by running or executing software programs and/or modules stored in the memory 1420, and calling data stored in the memory 1420. Various functions and processing data of the mobile phone can be used to monitor the mobile phone as a whole.
- the processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc. , The modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1480.
- the mobile phone also includes a power supply 1490 (such as a battery) for supplying power to various components.
- a power supply 1490 (such as a battery) for supplying power to various components.
- the power supply can be logically connected to the processor 1480 through a power management system, so that functions such as charging, discharging, and power management are realized through the power management system.
- the mobile phone may also include a camera.
- the position of the camera on the mobile phone may be front-mounted or rear-mounted, which is not limited in the embodiment of the present application.
- the mobile phone may include a single camera, a dual camera, or a triple camera, etc., which is not limited in the embodiment of the present application.
- a mobile phone may include three cameras, of which one is a main camera, one is a wide-angle camera, and one is a telephoto camera.
- the multiple cameras may be all front-mounted, or all rear-mounted, or partly front-mounted and another part rear-mounted, which is not limited in the embodiment of the present application.
- the mobile phone may also include a Bluetooth module, etc., which will not be repeated here.
- the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be implemented.
- the embodiments of the present application provide a computer program product.
- the terminal device can implement the steps in the foregoing method embodiments when executed.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
- the computer program can be stored in a computer-readable storage medium.
- the computer program can be stored in a computer-readable storage medium.
- the steps of the foregoing method embodiments can be implemented.
- the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
- the computer-readable storage medium may at least include: any entity or device capable of carrying computer program code to the device/terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), and random access memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal and software distribution medium.
- ROM read-only memory
- RAM random access memory
- electric carrier signal telecommunications signal and software distribution medium.
- U disk mobile hard disk, floppy disk or CD-ROM, etc.
- computer-readable storage media cannot be electrical carrier signals and telecommunication signals.
- the disclosed device/terminal device and method may be implemented in other ways.
- the device/terminal device embodiments described above are only illustrative.
- the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
- components can be combined or integrated into another system, or some features can be omitted or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请适用于终端技术领域,尤其涉及一种页面处理方法、装置、计算机可读存储介质及终端设备。所述页面处理方法包括:当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面,以简化页面返回操作,从而可以简单、快速的返回至用户指定的浏览页面,提升用户体验。
Description
本申请要求于2019年12月30日提交国家知识产权局、申请号为201911391187.1、申请名称为“页面处理方法、装置、存储介质及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请属于终端技术领域,尤其涉及一种页面处理方法、装置、计算机可读存储介质及终端设备。
随着终端技术的发展,用户可以在终端设备中安装各种应用程序,并可以通过在应用程序中进行页面浏览来获取感兴趣内容。目前,当用户在应用程序中浏览多个页面后,如果想要返回至某个历史浏览页面时,用户需要先返回至应用程序的首页,然后通过点击首页中的“我的”-“我的足迹”等来返回至该历史浏览页面,操作过程较繁琐,效率较低。
发明内容
本申请实施例提供了一种页面处理方法、装置、计算机可读存储介质及终端设备,可以简单、快速的返回至用户指定的浏览页面。
第一方面,本申请实施例提供了一种页面处理方法,可以包括:
当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;
响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面。
应理解,页面浏览信息可以包括用户浏览的一个或多个浏览页面,历史浏览视图则可以为这一个或多个浏览页面排布组成的视图。另外,所构建的历史浏览视图可以存储于本地数据库与应用程序对应的数据库文件中。
在此,预定触发指令可以是触发预设按键生成的指令,也可以是触发预设手势生成的指令,还可以是通过特定部位触发预设手势生成的指令(例如还可以是通过指关节画“M”形手势生成的触发指令),还可以是触发预设语音关键词生成的指令,本申请实施例对此不作限定。
本申请实施例中,当用户在应用程序中进行页面浏览时,可实时获取页面浏览信息,并可以根据所获取的页面浏览信息建立应用程序的历史浏览视图,而当检测到对应用程序的预定触发指令时,则可以直接显示该历史浏览视图,并可以根据用户在该历史浏览视图中的选定操作,返回至目标浏览页面,以简化页面返回操作,从而可以简单、快速的返回至用户指定的浏览页面,提升用户体验。
可选地,在所述显示所述应用程序的历史浏览视图之前,可以包括:
获取所述应用程序的当前程序状态;
当所述当前程序状态为预设程序状态时,获取所述应用程序中的页面浏览信息,并根据所述 页面浏览信息建立所述应用程序的历史浏览视图。
在此,可以为应用程序设置功能开关,功能开关可以启动或关闭应用程序的历史管理功能。因此,当应用程序启动时,可以通过获取应用程序的当前程序状态,并通过确定应用程序的当前程序状态是否为预设程序状态来确定应用程序的功能开关是否被开启,以此确定应用程序的历史管理功能是否启动,从而确定是否建立应用程序的历史浏览视图。其中,预设程序状态为功能开关被开启时,应用程序所对应的程序状态。
可选地,当所述页面浏览信息包括用户浏览的多个浏览页面时,所述根据所述页面浏览信息建立所述应用程序的历史浏览视图,可以包括:
获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,所述历史浏览视图中各所述页面缩略图基于各所述浏览时间进行排布。
在此,历史浏览视图中各页面缩略图可以基于各浏览页面对应的浏览时间进行排布,例如可以基于浏览时间由新至旧的顺序在历史浏览视图中进行各页面缩略图的排布。
示例的,历史浏览视图可以包括一个或者多个视图页面,每一个视图页面可以包括卡片式排布的一个或者多个页面缩略图,且每一个视图页面中的页面缩略图也可以基于浏览时间进行排布。例如,浏览时间越新的浏览页面,其所对应的页面缩略图在视图页面中的排布则越靠前,而浏览时间越旧的浏览页面,其所对应的页面缩略图在视图页面中的排布则越靠后。
需要说明的是,当历史浏览视图包括多个视图页面时,用户可以根据具体情况进行视图页面的切换。
示例的,用户可以通过点击视图页面中的虚拟按键来进行视图页面的切换,以切换至下一视图页面,或者返回至上一视图页面。示例的,用户也可以通过点击终端设备中的触控按钮,例如可以通过点击终端设备侧边的触控按钮,来进行视图页面的切换。
在此,视图页面对应的页面缩略图数量可以根据用户设置进行确定,也可以根据终端设备的默认设置进行确定。
示例的,各浏览页面对应的页面缩略图的图像大小可以相同。具体地,可以根据终端设备的屏幕大小和历史浏览视图中视图页面对应的页面缩略图数量确定页面缩略图的图像大小。
示例的,各浏览页面对应的页面缩略图的图像大小也可以不相同,以进行浏览页面的区别显示,从而方便快速定位出用户最终想返回的目标浏览页面。
在一种可能的实现方式中,所述获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,可以包括:
获取所述页面浏览信息中各所述浏览页面对应的页面标识;
根据所述页面标识和所述应用程序中配置的预设页面标识确定第一目标浏览页面,并获取所述第一目标浏览页面对应的第一页面缩略图和所述第一目标浏览页面对应的第一浏览时间;
根据所述第一页面缩略图和所述第一浏览时间建立所述应用程序的历史浏览视图。
具体地,可以事先根据应用程序的配置文件配置目标浏览页面所对应的预设页面标识,其中,预设页面标识可以包括一个或者多个。因此,当用户在应用程序中进行页面浏览时,可以实时获取用户所浏览页面的页面标识,并可以判断该浏览页面的页面标识是否为预设页面标识,当该浏览页面的页面标识为预设页面标识时,即可以将该浏览页面确定为第一目标浏览页面,并可以根 据第一目标浏览页面对应的第一页面缩略图和第一浏览时间来建立应用程序的历史浏览视图,以避免所建立的历史浏览视图包含用户浏览的所有浏览页面,有效减少历史浏览视图中页面缩略图的数量,从而方便快速返回至用户指定的浏览页面,提升用户体验。
在另一种可能的实现方式中,所述获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,可以包括:
获取所述页面浏览信息中各所述浏览页面对应的页面内容;
根据所述页面内容确定第二目标浏览页面,并获取所述第二目标浏览页面对应的第二页面缩略图和所述第二目标浏览页面对应的第二浏览时间;
根据所述第二页面缩略图和所述第二浏览时间建立所述应用程序的历史浏览视图。
在此,当用户在应用程序中进行页面浏览时,也可以实时获取用户所浏览页面的页面内容,并可以自动对页面内容进行内容分析来获取第二目标浏览页面,从而可以根据第二目标浏览页面对应的第二页面缩略图和第二浏览时间来建立应用程序的历史浏览视图,以有效减少历史浏览视图中页面缩略图的数量,从而方便快速返回至用户指定的浏览页面,提升用户体验。
示例的,在所述根据所述页面浏览信息建立所述应用程序的历史浏览视图之后,可以包括:
获取所述页面浏览信息中各所述浏览页面对应的页面内容,并根据各所述页面内容确定各所述页面缩略图对应的页面关键词;
当接收到用户输入的搜索关键词时,根据所述搜索关键词和所述页面关键词获取并显示第三页面缩略图,所述第三页面缩略图为所述页面缩略图中的任一页面缩略图。
应理解,为提高页面返回效率,提升用户体验,在根据页面浏览信息建立应用程序的历史浏览视图之后,还可以首先获取页面浏览信息中各浏览页面对应的页面内容,然后可以根据各页面内容确定各浏览页面对应的页面关键词,并可以将所确定的各页面关键词与各浏览页面对应的页面缩略图进行关联,以作为各页面缩略图的索引。
因此,在进行历史浏览视图的显示时,还可以在进行历史浏览视图显示的显示界面中提供搜索框,用户可以通过在该搜索框中进行搜索关键词的输入,以根据搜索关键词和页面关键词快速获取并显示所对应的第三页面缩略图。用户则可以通过点击该第三页面缩略图来快速返回至所对应的目标浏览页面,即通过搜索功能来方便快速定位出用户想要返回的目标浏览页面,从而提升用户体验。
在一种可能的实现方式中,所述获取应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图,可以包括:
获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息;
根据所述第一页面浏览信息建立所述第一应用程序的第一历史浏览视图,并根据所述第二页面浏览信息建立所述第二应用程序的第二历史浏览视图;
所述显示所述应用程序的历史浏览视图,可以包括:
显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图。
可选地,在所述显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图之后,还可以包括:
根据所述用户在所述第一历史浏览视图和所述第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,所述第四页面缩略图为所述第一历史浏览视图中的任一页面缩略 图,所述第五页面缩略图为所述第二历史浏览视图中的任一页面缩略图;
所述响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,可以包括:
响应于所述用户对所述第五页面缩略图的选定操作,返回至包含所述第四页面缩略图的第五目标浏览页面,所述第五目标浏览页面为所述第五页面缩略图对应的浏览页面。
应理解,为实现应用程序之间的数据共享,以加强应用程序间的联系,可同时建立第一应用程序的第一历史浏览视图,以及第二应用程序的第二历史浏览视图。当检测到用户输入的触发指令时,可以同时显示第一历史浏览视图和第二历史浏览视图,并可以根据用户在第一历史浏览视图和第二历史浏览视图间的拖拽操作进行页面缩略图的移动,以满足用户的数据共享需求,提升用户体验。
第二方面,本申请实施例提供了一种页面处理装置,可以包括:
浏览视图显示模块,用于当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;
浏览页面返回模块,用于响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面。
可选地,所述页面处理装置,还可以包括:
程序状态获取模块,用于获取所述应用程序的当前程序状态;
浏览视图建立模块,用于当所述当前程序状态为预设程序状态时,获取所述应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图。
示例的,当所述页面浏览信息包括用户浏览的多个浏览页面时,所述浏览视图建立模块,可以包括:
第一浏览视图建立单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,所述历史浏览视图中各所述页面缩略图基于各所述浏览时间进行排布。
在一种可能的实现方式中,所述第一浏览视图建立单元,可以包括:
页面标识获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面标识;
第一目标页面确定分单元,用于根据所述页面标识和所述应用程序中配置的预设页面标识确定第一目标浏览页面,并获取所述第一目标浏览页面对应的第一页面缩略图和所述第一目标浏览页面对应的第一浏览时间;
第一浏览视图建立分单元,用于根据所述第一页面缩略图和所述第一浏览时间建立所述应用程序的历史浏览视图。
在另一种可能的实现方式中,所述第一浏览视图建立单元,还可以包括:
页面内容获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容;
第二目标页面确定分单元,用于根据所述页面内容确定第二目标浏览页面,并获取所述第二目标浏览页面对应的第二页面缩略图和所述第二目标浏览页面对应的第二浏览时间;
第二浏览视图建立分单元,用于根据所述第二页面缩略图和所述第二浏览时间建立所述应用程序的历史浏览视图。
可选地,所述页面处理装置,还可以包括:
页面关键词确定模块,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容,并根据各所述页面内容确定各所述页面缩略图对应的页面关键词;
页面搜索模块,用于当接收到用户输入的搜索关键词时,根据所述搜索关键词和所述页面关键词获取并显示第三页面缩略图,所述第三页面缩略图为所述页面缩略图中的任一页面缩略图。
示例的,所述浏览视图建立模块,可以包括:
浏览信息获取单元,用于获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息;
第二浏览视图建立单元,用于根据所述第一页面浏览信息建立所述第一应用程序的第一历史浏览视图,并根据所述第二页面浏览信息建立所述第二应用程序的第二历史浏览视图;
所述浏览视图显示模块,还用于显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图。
在一种可能的实现方式中,所述页面处理装置,还可以包括:
拖拽模块,用于根据所述用户在所述第一历史浏览视图和所述第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,所述第四页面缩略图为所述第一历史浏览视图中的任一页面缩略图,所述第五页面缩略图为所述第二历史浏览视图中的任一页面缩略图;
所述浏览页面返回模块,还用于响应于所述用户对所述第五页面缩略图的选定操作,返回至包含所述第四页面缩略图的第五目标浏览页面,所述第五目标浏览页面为所述第五页面缩略图对应的浏览页面。
第三方面,本申请实施例提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面中任一项所述的页面处理方法。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面中任一项所述的页面处理方法。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行上述第一方面中任一项所述的页面处理方法。
可以理解的是,上述第二方面至第五方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
本申请实施例与现有技术相比存在的有益效果是:
本申请实施例中,当用户在应用程序中进行页面浏览时,可以获取页面浏览信息,并可以根据所获取的页面浏览信息建立应用程序的历史浏览视图,而当检测到对应用程序的预定触发指令时,则可以直接显示该历史浏览视图,并可以根据用户在该历史浏览视图中的选定操作,返回至目标浏览页面,以简化页面返回操作,从而可以简单、快速的返回至用户指定的浏览页面,提升用户体验。
图1是本申请一实施例提供的页面处理方法所适用于的终端设备的软件架构框图;
图2是本申请一实施例提供的应用历史管理器的结构示意图;
图3是本申请一实施例提供的开启应用程序的历史管理功能的示例图;
图4是本申请一实施例提供的页面处理方法的流程示意图;
图5是本申请一实施例提供的历史浏览视图的显示示例图;
图6是本申请一实施例提供的历史浏览视图的另一显示示例图;
图7是本申请一实施例提供的历史浏览视图的另一显示示例图;
图8是本申请一实施例提供的历史浏览视图的另一显示示例图;
图9是本申请一实施例提供的历史浏览视图的另一显示示例图;
图10是本申请一实施例提供的历史浏览视图的另一显示示例图;
图11是本申请一实施例提供的历史浏览视图的另一显示示例图;
图12是本申请实施例提供的页面处理装置的结构示意图;
图13是本申请实施例提供的终端设备的结构示意图;
图14是本申请实施例提供的页面处理方法所适用于的手机的结构示意图。
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
本申请实施例提供的页面处理方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等终端设备上,本申请实施例对终端设备的具体类型不作任何限制。
随着终端技术的发展,用户可以在终端设备中安装各种应用程序,并可以通过在应用程序中进行页面浏览来获取感兴趣内容。目前,当用户在应用程序中浏览多个页面后,如果想要返回至某个历史浏览页面时,用户需要先返回至应用程序的首页,然后通过点击首页中的“我的”-“我的足迹”等来返回至该历史浏览页面。也就是说,在目前的应用程序中,用户需要找到应用程序 中隐藏得比较深的历史记录功能才能返回至某一特定历史浏览页面。这种返回方式不仅存在操作过程繁琐、效率较低的问题,而且,对于不具备历史记录功能的应用程序,当用户刷新了应用程序的主页时,用户将无法返回至某一特定历史浏览页面,极大地降低了用户体验。
为了解决上述问题,本申请实施例提供了一种页面处理方法、装置、计算机可读存储介质及终端设备,当用户在应用程序中进行页面浏览时,终端设备可以获取页面浏览信息,并可以根据所获取的页面浏览信息建立应用程序的历史浏览视图,而当检测到对应用程序的预定触发指令时,则可以直接显示该历史浏览视图,并可以根据用户在该历史浏览视图中的选定操作,返回至目标浏览页面,以简化页面返回操作,从而可以简单、快速的返回至用户指定的浏览页面,提升用户体验。
图1是本申请实施例的终端设备的软件结构框图。以终端设备操作系统为Android系统为例,在一些实施例中,将Android系统分为四层,分别为应用程序层,应用程序框架层(framework,FWK),安卓运行时(Android Runtime)和系统库,以及硬件抽象层。层与层之间通过软件接口通信。
如图1所示,应用程序层可以包括一系列应用程序包,应用程序包可以是系统自带的应用程序包,也可以是从第三方获取的应用程序包。应用程序包可以包括短信息,日历,相机,视频,音乐,导航,图库,通话,新闻,即时通讯等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层可以包括一些预先定义的函数,例如用于接收应用程序框架层所发送的事件的函数。
如图1所示,应用程序框架层可以包括活动管理器(Activity Manager)、窗口管理器(Window Manager)、内容提供器(Content Provider)、资源管理器(Resource Manager)、通知管理器(Notification Manager)和视图系统(View System)等。
活动管理器用于管理各个应用程序的生命周期。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
视图系统可以包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
需要说明的是,应用程序框架层还可以包括:
应用历史管理器(HwAppHistory Manager),应用历史管理器用于管理各个应用程序,例如管理各个应用程序中活动(Activity)的启动与判断等,管理各个应用程序中历史浏览页面的获取、 展示与交互等。在此,可以在各个应用程序中通过打桩的形式加入应用历史管理器对应的系统代码,使得各个应用程序可以执行应用历史管理器对应的管理逻辑,从而实现对各个应用程序的历史管理功能,例如可以在各个应用程序中每一个Activity的打开、移除等关键位置中加入桩函数,以在各个应用程序的原生流程中加入应用历史管理器对应的系统代码,从而实现应用历史管理器对各个应用程序的历史管理功能。
如图2所示,应用历史管理器可以包括应用数据管理模块、活动(Activity)策略管理模块、持久化存储模块、配置管理模块、交互(UI)提示与引导模块、历史浏览视图显示模块和触发指令监听模块。
应用数据管理模块用于进行应用数据的管理,例如对各个应用程序设置或使用过程中的用户选择数据进行管理,和/或对应用历史管理器的白名单进行管理,其中,白名单是指应用历史管理器可以进行历史管理功能的应用程序的名单。
应理解,应用程序层的应用程序包还可以包括设置程序(setting)。如图3所示,可以在setting中增加该白名单列表,以给各个白名单对应的应用程序增加一个独立的功能开关来启动或者关闭应用历史管理器对各个应用程序的历史管理功能。
Activity策略模块用于在应用程序的每一个Activity启动时,结合应用数据管理模块中的数据和配置管理模块中的数据判断是否需要将该Activity对应的浏览页面的页面浏览信息记录于数据库文件,以及在每一个Activity销毁时,判断是否需要移除数据库文件中该Activity对应的浏览页面的页面浏览信息等。
持久化存储模块用于为各个应用程序分配数据库文件,用来记录各个应用程序的页面浏览信息。其中,数据库文件中存储的页面浏览信息可以包括Activity对应的浏览页面的页面缩略图与Activity的启动组件Intent。其中,Intent可以用于启动页面缩略图对应的Activity,以打开页面缩略图对应的浏览页面。即当Activity策略模块确定需要将某一个Activity对应的浏览页面的页面浏览信息记录于数据库文件时,持久化存储模块即可保存该Activity对应的浏览页面的页面缩略图以及启动该Activity的Intent。在此,持久化存储模块能够确保终端设备关机重启后依旧能保留页面浏览信息。
配置管理模块用于根据各个应用程序的配置文件对各个应用程序进行功能配置,例如配置应用程序是否支持应用历史管理器的历史管理功能、配置应用程序是否开启应用历史管理器的历史管理功能以及配置应用程序中需要进行页面浏览信息记录的浏览页面的页面标识等。具体地,可以在各个应用程序的assets目录中增加配置文件,并可以广播所增加的配置文件,Android系统中的快捷服务系统(Easygo系统)即可以接收并进行配置文件的解析,以使得配置管理模块可以根据解析结果对各个应用程序进行功能配置。
UI提示与引导模块用于提供各个应用程序首次启动时的提示与引导界面。
历史浏览视图显示模块用于以卡片的形式构建持久化存储模块中存储的页面浏览信息对应的历史浏览视图,并进行历史浏览视图的展示,同时还可以提供快速滚动以及点击进入某一个浏览页面的功能。
触发指令监听模块用于监听特定的触发指令,以根据触发指令触发历史浏览视图显示模块进行历史浏览视图的展示。
应理解,UI提示与引导模块、历史浏览视图显示模块和触发指令监听模块可以通过与应用程序层的系统交互程序(system UI)配合来完成相关功能。
在此,通过在应用程序框架层中增加应用历史管理器,使得只需要为应用程序层的应用程序增加一个简单的配置文件而不需要进行复杂的适配工作,即可以实现应用程序内的历史记录功能,不仅可提升用户体验,而且还可以降低第三方应用程序的接入难度。
安卓运行时负责Android系统的调度与管理。安卓运行时可以包括核心库和虚拟机。核心库可以包含Java语言需要调用的功能函数和Android的核心库。应用程序层和应用程序框架层运行在虚拟机中,虚拟机将应用程序层和应用程序框架层的Java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:传感器服务模块,物理状态识别模块,三维图形处理库(例如:OpenGL ES)等。
传感器服务模块,用于对硬件层各类传感器上传的传感器数据进行监测,确定手机的物理状态;
物理状态识别模块,用于对用户手势、人脸等进行分析和识别;
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
系统库还可以包括:
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
硬件抽象层是硬件和软件之间的层。硬件抽象层可以包括显示驱动,摄像头驱动,传感器驱动等,用于驱动硬件层的相关硬件,如显示屏、摄像头、传感器等。
图4示出了本申请实施例提供的页面处理方法的示意性流程图,作为示例而非限定,该页面处理方法可以在具有上述软件结构的终端设备上实现。如图4所示,所述页面处理方法可以包括:
S401、当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;
应理解,应用程序可以是终端设备中系统自带的应用程序,也可以是终端设备从第三方获取的应用程序,且应用程序为终端设备已进行功能配置的应用程序。也就是说,终端设备中的配置管理模块已根据该应用程序的配置文件对该应用程序进行功能配置,使得该应用程序可以支持终端设备中应用历史管理器的历史管理功能,从而使得该应用程序具备历史记录功能。因此,当用户启动终端设备中的应用程序,并在该应用程序中进行页面浏览时,终端设备即可以获取并存储该应用程序中的页面浏览信息,并可以根据该页面浏览信息建立该应用程序的历史浏览视图。其中,该页面浏览信息可以包括用户浏览的一个或多个浏览页面,该历史浏览视图则可以为这一个或多个浏览页面排布组成的视图,且所构建的历史浏览视图可以存储于终端设备的本地数据库中与该应用程序对应的数据库文件。
在一种可能的实现方式中,终端设备可以为应用程序设置功能开关,该功能开关可以启动或关闭该应用程序的历史管理功能。如图3所示,用户可以根据实际需要开启或关闭该功能开关,以启动或关闭该应用程序的历史管理功能。因此,当应用程序启动时,终端设备可先确定该应用程序的功能开关是否被开启,当该应用程序的功能开关被开启时,终端设备即可以确定该应用程序的历史管理功能被启动,此时,当用户在该应用程序中进行页面浏览时,终端设备则可以获取该应用程序中的页面浏览信息,并可以根据页面浏览信息建立该应用程序的历史浏览视图。
应理解,终端设备可预先设置功能开关被开启时,应用程序所对应的预设程序状态。因此,终端设备可以通过获取该应用程序的当前程序状态,并通过确定该应用程序的当前程序状态是否为该预设程序状态来确定该应用程序的功能开关是否被开启。具体地,当该应用程序的当前程序状态为该预设程序状态时,表明用户当前已开启该应用程序的功能开关,此时终端设备即可以获取该应用程序中的页面浏览信息,并可以根据页面浏览信息建立该应用程序的历史浏览视图;而当该应用程序的当前程序状态不是该预设程序状态,即当用户未开启该应用程序的功能开关时,表明用户当前并不想进行浏览行为的记录,此时终端设备即可不记录用户在该应用程序中的页面浏览行为。
示例的,应用程序的功能开关可以默认开启,以对用户在应用程序中的页面浏览进行记录,从而方便快速返回至用户指定的浏览页面,提升用户体验。当然,应用程序的功能开关可以默认关闭,本申请实施例对此不作限定。
在一种可能的实现方式中,当用户在应用程序中浏览多页面时,终端设备可以实时获取各浏览页面对应的页面缩略图和各浏览页面对应的浏览时间,并可以根据各页面缩略图和各浏览时间建立应用程序的历史浏览视图。其中,历史浏览视图中各页面缩略图可以基于各浏览页面对应的浏览时间进行排布,例如可以基于浏览时间由新至旧的顺序在历史浏览视图中进行各页面缩略图的排布。
示例的,历史浏览视图可以包括一个或者多个视图页面,每一个视图页面可以包括卡片式排布的一个或者多个页面缩略图,而每一个视图页面中的页面缩略图则可以基于对应的浏览时间进行排布。例如,浏览时间越新的浏览页面,其所对应的页面缩略图在视图页面中的排布则越靠前,而浏览时间越旧的浏览页面,其所对应的页面缩略图在视图页面中的排布则越靠后。
在此,视图页面对应的页面缩略图数量可以根据用户设置进行确定,也可以根据终端设备的默认设置进行确定。例如,在一具体应用场景中,视图页面对应的页面缩略图数量可以为4,该视图页面对应的页面缩略图则可以如图5所示,其中,该视图页面中的页面缩略图A对应的浏览时间晚于页面缩略图B对应的浏览时间,页面浏览缩略图B对应的浏览时间晚于页面缩略图C对应的浏览时间,而页面缩略图C对应的浏览时间则晚于页面缩略图D对应的浏览时间。
示例的,终端设备在建立历史浏览视图时,还可以在所建立的历史浏览视图中添加各页面缩略图所对应的浏览时间,以方便快速返回至用户想要返回的指定浏览页面,提升用户体验。例如,终端设备可以在图5所示的视图页面中添加各页面缩略图对应的浏览时间,从而得到图6所示的视图页面。
需要说明的是,当历史浏览视图包括多个视图页面时,用户可以根据具体情况进行视图页面的切换。示例的,如图5所示,用户可以通过点击视图页面中的虚拟按键(如三角图形)来进行视图页面的切换,以切换至下一视图页面,或者返回至上一视图页面。示例的,用户也可以通过点击终端设备中的触控按钮,例如可以通过点击终端设备侧边的触控按钮,来进行视图页面的切换。
示例的,各浏览页面对应的页面缩略图的图像大小可以相同。具体地,终端设备可以根据终端设备的屏幕大小和历史浏览视图中视图页面对应的页面缩略图数量确定页面缩略图的图像大小。如图5所示,当历史浏览视图中视图页面对应的页面缩略图数量为4时,终端设备则可以将页面缩略图的图像大小确定为屏幕大小的三分之一(即页面缩略图的长度为屏幕长度的三分之一,且页面缩略图的宽度为屏幕宽度的三分之一);如图7所示,当历史浏览视图中视图页面对应的页 面缩略图数量为9时,终端设备则可以将页面缩略图的图像大小确定为屏幕大小的四分之一(即页面缩略图的长度为屏幕长度的四分之一,且页面缩略图的宽度为屏幕宽度的四分之一)。
需要说明的是,上述图像大小的确定仅作示意性解释,不应理解为对本申请实施例的限制,本申请实施例中,终端设备当然也可以通过其他方式将图像大小确定为其他值,例如终端设备也可以根据用户自定义设置确定页面缩略图的图像大小,或者也可以根据终端设备的默认设置确定页面缩略图的图像大小,本申请实施例对此不作限定。
如图8所示,各浏览页面对应的页面缩略图的图像大小也可以不相同,以进行浏览页面的区别显示,从而方便用户快速定位出其最终想返回的目标浏览页面。
示例的,终端设备也可以根据各浏览页面对应的浏览时间确定各页面缩略图的图像大小。具体地,浏览时间越新的浏览页面,其所对应的页面缩略图的图像大小将越大,而浏览时间越旧的浏览页面,其所对应的页面缩略图的图像大小将越小。
示例的,终端设备也可以根据各浏览页面对应的浏览时长确定各页面缩略图的图像大小。具体地,浏览时长越长的浏览页面,其所对应的页面缩略图的图像大小越大,而浏览时间越短的浏览页面,其所对应的页面缩略图的图像大小则越小。
示例的,终端设备还可以根据各浏览页面对应的浏览热度确定各页面缩略图的图像大小。在此,浏览热度可以根据浏览页面被浏览的次数确定。其中,被浏览的次数越多,浏览热度则越高,被浏览的次数越少,浏览热度则越低。具体地,浏览热度越高的浏览页面,其所对应的页面缩略图的图像大小越大,而浏览热度越低的浏览页面,其所对应的页面缩略图的图像大小则越小。
应理解,用户可能会在应用程序中进行无效页面的浏览(例如浏览应用程序中植入的广告页面等),而用户所浏览的这些无效页面往往并不是用户想要返回的浏览页面,因此,为保证历史浏览视图的简洁和高效,以方便用户快速找到其想返回的浏览页面,终端设备可以仅根据有效浏览页面对应的页面浏览信息来进行历史浏览视图的建立。
具体地,终端设备可以事先根据应用程序的配置文件配置有效浏览页面所对应的预设页面标识,其中,预设页面标识可以包括一个或者多个,预设页面标识和后续的页面标识均可以为浏览页面对应的页面名称等,页面名称则可以为浏览页面对应的Activity的名称。因此,当用户在应用程序中进行页面浏览时,终端设备可以实时获取用户所浏览页面的页面标识,并可以判断该浏览页面的页面标识是否为预设页面标识,当该浏览页面的页面标识为预设页面标识时,终端设备即可以将该浏览页面确定为第一目标浏览页面,并可以根据第一目标浏览页面对应的第一页面缩略图和第一浏览时间来建立应用程序的历史浏览视图,以避免所建立的历史浏览视图包含用户浏览的所有浏览页面,有效减少历史浏览视图中页面缩略图的数量,从而方便快速返回至用户指定的浏览页面,提升用户体验。
例如,当用户在应用程序中分别浏览了页面A、页面B、页面C、页面D和页面E,且终端设备确定页面A的页面标识A、页面D的页面标识D以及页面E的页面标识E均为预设页面标识,并确定页面B的页面标识B和页面C的页面标识C均为广告页面对应的页面标识时,终端设备则可以确定页面A、页面D和页面E为第一目标浏览页面(即有效浏览页面),此时终端设备即可以根据页面A、页面D和页面E对应的第一页面缩略图和第一浏览时间来建立应用程序的历史浏览视图。
示例的,当用户在应用程序中进行页面浏览时,终端设备可以实时获取用户所浏览页面的页面内容,并可以通过对页面内容进行内容分析来获取第二目标浏览页面。具体地,可以将页面内 容符合预设条件的浏览页面确定为第二目标浏览页面,并可以根据第二目标浏览页面对应的第二页面缩略图和第二浏览时间来建立应用程序的历史浏览视图,以有效减少历史浏览视图中页面缩略图的数量,从而方便快速返回至用户指定的浏览页面,提升用户体验。其中,预设条件可以为商品详情页或内容详情页对应的条件。
在此,终端设备可以根据用户设置或者系统默认设置对历史浏览视图中页面缩略图的数量进行限制,以降低终端设备的存储内存,并确保历史浏览视图的实时性和有效性,从而提升用户体验。例如,终端设备可以根据用户设置将历史浏览视图中页面缩略图的数量限制在20条,即终端设备可以只实时记录该应用程序中的20条浏览页面对应的页面缩略图。也就是说,当终端设备中记录的该应用程序中的页面缩略图达到20条,而用户仍在该应用程序中进行页面浏览时,终端设备则可以通过删除旧的页面缩略图来记录新的页面缩略图,以确保历史浏览视图的实时性和有效性,提升用户体验。
需要说明的是,终端设备也可以实时对历史浏览视图或者历史浏览视图中对应的浏览页面进行清理删除,以释放终端设备的存储内存。例如,当历史浏览视图中某一页面缩略图的存储时长达到时长阈值时,终端设备则可以删除历史浏览视图中的该页面缩略图以及删除该页面缩图对应的浏览页面,其中,时长阈值可以根据实际情况确定,比如,可以将时长阈值确定为一周、一个月等等。例如,当终端设备接收到用户对历史浏览视图或者历史浏览视图中的某一页面缩略图的清理操作时,终端设备则可以删除历史浏览视图或者删除历史浏览视图中的该页面缩略图以及该页面缩图对应的浏览页面。
应理解,当用户需要返回至应用程序的某一浏览页面时,用户可以通过输入预定触发指令来获取该应用程序的历史浏览视图。其中,该预定触发指令可以是触发预设按键生成的指令,也可以是触发预设手势生成的指令,还可以是通过特定部位触发预设手势生成的指令,还可以是触发预设语音关键词生成的指令,本申请实施例对此不作限定。
例如,终端设备中可以预先设置在应用程序运行过程中“多任务”按键触发三次时生成预定触发指令,或者可以预先设置在应用程序运行过程中“多任务”按键和“音量+”按键同时触发时生成预定触发指令,或者可以预先设置在应用程序运行过程中终端设备侧边的滑动按钮触发时生成预定触发指令,则在应用程序运行过程中,当用户按压“多任务”按键三次,或者当用户同时按压“多任务”按键和“音量+”按键时,或者当用户滑动终端设备侧边的滑动按钮时,终端设备即可以生成并获取到预定触发指令。
例如,终端设备中可以预先设置在应用程序运行过程中采集到“M”形手势等预设手势时生成预定触发指令,则在应用程序运行过程中,当用户输入与“M”形手势等预设手势相匹配的手势时,终端设备即可以生成并获取到预定触发指令。
例如,终端设备中还可以预先设置在应用程序运行过程中采集到指关节画的“M”形手势等预设手势时生成预定触发指令,则在应用程序运行过程中,当用户通过指关节输入与“M”形手势等预设手势相匹配的手势时,终端设备即可以生成并获取到预定触发指令。
例如,终端设备中还可以预先设置在应用程序运行过程中检测到“页面返回”等预设语音关键词时生成预定触发指令,则当用户输入的语音中含有“页面返回”等预设语音关键词时,终端设备即可以生成并获取到预定触发指令。
需要说明的是,当历史浏览视图包括多个视图页面时,终端设备可以根据各视图页面中浏览页面对应的浏览时间进行视图页面的排序,其中,浏览页面对应的浏览时间越新的视图页面,其 所对应的排序越靠前,而浏览页面对应的浏览时间越旧的视图页面,其对应的排序则越靠后。因此,在根据用户输入的预定触发指令,显示历史浏览视图时,终端设备则可以优先显示排序靠前的视图页面,并可以根据切换指令或者预设时长,进行视图页面的切换。应理解,预设时长可以理解为在终端设备中预先设置的时长,例如可以理解为在终端设备中预先设置的20秒、30秒等时长。
如图5所示,终端设备在显示界面中进行历史浏览视图的显示时,还可以在该显示界面中提供供用户进行视图页面切换的虚拟按键(如三角图形),用户可以通过点击虚拟按键来进行视图页面的切换。例如用户可以通过点击虚拟按键来切换至下一视图页面,或者返回至上一视图页面等。
示例的,终端设备也可以在视图页面的显示时长达到预设时长时,自动进行视图页面的切换。例如,当某一视图页面的显示时长达到预设时长(如30秒)时,终端设备则可以自动切换至下一视图页面。应理解,终端设备自动进行视图页面切换的操作可以循环执行,即当历史浏览视图中的最后一个视图页面的显示时长达到预设时长时,终端设备则可以自动切换至该历史浏览视图中的第一个视图页面。
S402、响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面。
具体地,在历史浏览视图的显示过程中,用户可以通过执行选定操作来返回至该选定操作所选定的目标浏览页面,实现目标浏览页面的快速返回,提升用户体验。
应理解,当历史浏览视图中的浏览页面较多时,用户往往需要多次进行视图页面的切换来查找其最终想返回的目标浏览页面,造成页面返回效率较低,降低用户体验。
在一种可能的实现方式中,为提高页面返回效率,提升用户体验,终端设备在根据页面浏览信息建立出应用程序的历史浏览视图之后,还可以首先获取页面浏览信息中各浏览页面对应的页面内容,然后可以根据各页面内容确定各浏览页面对应的页面关键词,并可以将所确定的各页面关键词与各浏览页面对应的页面缩略图进行关联,以作为各页面缩略图的索引。
需要说明的是,浏览页面对应的页面内容可以包括浏览页面中的正文内容,也可以包括浏览页面中的标题内容等。示例的,终端设备可以对各浏览页面中的正文内容进行关键词提取,和/或可以对各浏览页面中的标题内容进行关键词提取,并可以将所提取的各关键词确定为各浏览页面所对应的页面关键词。在此,终端设备可以利用现有关键词提取方法来对正文内容和/或标题内容进行关键词提取,本申请实施例对此不作限定。
如图9所示,终端设备在进行历史浏览视图的显示时,还可以在进行历史浏览视图显示的显示界面中提供搜索框,用户可以通过在该搜索框中进行搜索关键词的输入,终端设备接收到用户输入的搜索关键词后,则可以匹配与搜索关键词对应的目标页面关键词,获取并显示目标页面关键词关联的第三页面缩略图,用户则可以通过点击该第三页面缩略图来快速返回至所对应的目标浏览页面。其中,目标页面关键词为各浏览页面对应的页面关键词中一个或者多个。在此,通过搜索可方便用户快速定位出想要返回的目标浏览页面,从而提升用户体验。
示例的,终端设备在获取目标页面关键词关联的第三页面缩略图后,也可以直接跳转显示该第三页面缩略图对应的目标浏览页面,以实现浏览页面的快速返回,提升用户体验。
应理解,终端设备还可以将各浏览页面对应的浏览时间与各浏览页面对应的页面缩略图进行关联,以作为各页面缩略图的索引。因此,终端页面在进行历史浏览视图的显示时,用户可以通 过在上述的搜索框中输入搜索时间,终端设备接收到用户输入的搜索时间后,则可以匹配与该搜索时间对应的目标浏览时间,并可以获取并显示将目标浏览时间对应的页面缩略图,以方便快速返回至用户指定的目标浏览页面。其中,目标浏览时间为任一浏览页面对应的浏览时间。
本申请实施例中,当用户在应用程序中进行页面浏览时,终端设备可以获取应用程序中的页面浏览信息,并可以根据所获取的页面浏览信息建立应用程序的历史浏览视图,而当检测到对应用程序的预定触发指令时,终端设备可以直接显示该历史浏览视图,并可以根据用户在该历史浏览视图中的选定操作,返回至选定操作选定的目标浏览页面,以简化页面返回操作,从而可以简单、快速的返回至用户指定的浏览页面,提升用户体验。
在一种可能的方式中,为实现应用程序之间的数据共享,以加强应用程序间的联系,终端设备可以为可分屏显示的终端设备,即终端设备的显示屏幕可以划分成两个或者两个以上的显示区域,而每一个显示区域均可以进行应用程序的显示。以下将以显示屏幕被划分成两个显示区域为例进行说明。
在此,当终端设备的显示屏幕被划分成第一显示区域和第二显示区域时,第一显示区域可以用于显示第一应用程序(如应用程序A),第二显示区域可以用于显示第二应用程序(如应用程序B),使得用户可以在终端设备中同时进行第一应用程序和第二应用程序的浏览。当用户同时进行第一应用程序和第二应用程序的浏览时,终端设备则可以同时获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息,并可以根据第一页面浏览信息建立第一应用程序的第一历史浏览视图,以及可以根据第二页面浏览信息建立第二应用程序的第二历史浏览视图。而当检测到用户输入的预定触发指令时,终端设备可以在第一显示区域中显示第一历史浏览视图,如图10所示,或者可以在第二显示区域中显示第二历史浏览视图。
应理解,在显示第一历史浏览视图和/或显示第二历史浏览视图时,终端设备可以根据用户在第一历史浏览视图和/或第二历史浏览视图中的选定操作,在第一显示区域中显示选定操作选定的第三目标浏览页面和/或在第二显示区域中显示选定操作选定的第四目标浏览页面。另外,终端设备还可以根据用户的拖拽操作,将第一历史浏览视图中的第四页面缩略图拖拽至第二应用程序中,或者将第二历史浏览视图中的第五页面缩略图拖拽至第一应用程序中。例如,可以根据用户的拖拽操作将第一历史浏览视图中的第四页面缩略图(如历史浏览网页对应的页面缩略图)拖拽至第二应用程序(如即时通讯程序)中进行发送,从而实现应用程序之间的数据共享,提升用户体验。
如图11所示,当检测到用户输入的预定触发指令时,终端设备还可以同时显示第一历史浏览视图和第二历史浏览视图,并可以根据用户在第一历史浏览视图和第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,其中,第四页面缩略图为第一历史浏览视图中的任一页面缩略图,第五页面缩略图为第二历史浏览视图中的任一页面缩略图,并可以在用户选定第五页面缩略图进行返回时,可以显示包含第四页面缩略图的第五目标浏览页面,第五目标浏览页面为第五页面缩略图对应的浏览页面。例如,可以根据用户的拖拽操作将第一应用程序(如即时通讯程序)中的某一历史聊天记录页面拖拽至第二应用程序(如备忘录程序)中的某一备忘录页面,而当用户打开该备忘录页面时,终端设备在显示该备忘录页面的内容时,可以同时显示该历史聊天记录页面,实现应用程序之间的数据共享,提升用户体验。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的页面处理方法,图12示出了本申请实施例提供的页面处理装置的结 构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图12,该页面处理装置可以包括:
浏览视图显示模块1201,用于当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;
浏览页面返回模块1202,用于响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面。
可选地,所述页面处理装置,还可以包括:
程序状态获取模块,用于获取所述应用程序的当前程序状态;
浏览视图建立模块,用于当所述当前程序状态为预设程序状态时,获取所述应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图。
示例的,当所述页面浏览信息包括用户浏览的多个浏览页面时,所述浏览视图建立模块,可以包括:
第一浏览视图建立单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,所述历史浏览视图中各所述页面缩略图基于各所述浏览时间进行排布。
在一种可能的实现方式中,所述第一浏览视图建立单元,可以包括:
页面标识获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面标识;
第一目标页面确定分单元,用于根据所述页面标识和所述应用程序中配置的预设页面标识确定第一目标浏览页面,并获取所述第一目标浏览页面对应的第一页面缩略图和所述第一目标浏览页面对应的第一浏览时间;
第一浏览视图建立分单元,用于根据所述第一页面缩略图和所述第一浏览时间建立所述应用程序的历史浏览视图。
在另一种可能的实现方式中,所述第一浏览视图建立单元,还可以包括:
页面内容获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容;
第二目标页面确定分单元,用于根据所述页面内容确定第二目标浏览页面,并获取所述第二目标浏览页面对应的第二页面缩略图和所述第二目标浏览页面对应的第二浏览时间;
第二浏览视图建立分单元,用于根据所述第二页面缩略图和所述第二浏览时间建立所述应用程序的历史浏览视图。
可选地,所述页面处理装置,还可以包括:
页面关键词确定模块,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容,并根据各所述页面内容确定各所述页面缩略图对应的页面关键词;
页面搜索模块,用于当接收到用户输入的搜索关键词时,根据所述搜索关键词和所述页面关键词获取并显示第三页面缩略图,所述第三页面缩略图为所述页面缩略图中的任一页面缩略图。
示例的,所述浏览视图建立模块,还可以包括:
浏览信息获取单元,用于获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息;
第二浏览视图建立单元,用于根据所述第一页面浏览信息建立所述第一应用程序的第一历史浏览视图,并根据所述第二页面浏览信息建立所述第二应用程序的第二历史浏览视图;
所述浏览视图显示模块1201,还用于显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图。
在一种可能的实现方式中,所述页面处理装置,还可以包括:
拖拽模块,用于根据所述用户在所述第一历史浏览视图和所述第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,所述第四页面缩略图为所述第一历史浏览视图中的任一页面缩略图,所述第五页面缩略图为所述第二历史浏览视图中的任一页面缩略图;
所述浏览页面返回模块1202,还用于响应于所述用户对所述第五页面缩略图的选定操作,返回至包含所述第四页面缩略图的第五目标浏览页面,所述第五目标浏览页面为所述第五页面缩略图对应的浏览页面。
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
图13为本申请一实施例提供的终端设备的结构示意图。如图13所示,该实施例的终端设备13包括:至少一个处理器1300(图13中仅示出一个)、存储器1301以及存储在所述存储器1301中并可在所述至少一个处理器1300上运行的计算机程序1302,所述处理器1300执行所述计算机程序1302时实现上述任意各个页面处理方法实施例中的步骤。
所述终端设备13可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该终端设备可包括,但不仅限于,处理器1300、存储器1301。本领域技术人员可以理解,图13仅仅是终端设备13的举例,并不构成对终端设备13的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。
所述处理器1300可以是中央处理单元(Central Processing Unit,CPU),该处理器1300还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器1301在一些实施例中可以是所述终端设备13的内部存储单元,例如终端设备13的硬盘或内存。所述存储器1301在另一些实施例中也可以是所述终端设备13的外部存储设备,例如所述终端设备13上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器1301还可以既包括所述终端设备13的内部存储单元也包括外部存储设备。所述存储器1301用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器1301还可以用于暂时地存储已经输出或者将要输出的数据。
示例的,本申请实施例涉及的终端设备可以是手机、平板电脑、可穿戴设备等。以所述终端设备为手机为例:图14示出的是与本申请实施例提供的手机的部分结构的框图。如图14所示,该手机可以包括:射频(Radio Frequency,RF)电路1410、存储器1420、输入单元1430、显示单元1440、传感器1450、音频电路1460、无线保真(wireless fidelity,WiFi)模块1470、处理器1480、以及电源1490等部件。本领域技术人员可以理解,图14中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图14对手机的各个构成部件进行具体的介绍:
RF电路1410可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1480处理;另外,将设计上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1410还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器1420可用于存储软件程序以及模块,处理器1480通过运行存储在存储器1420的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1430可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1430可包括触控面板1431以及其他输入设备1432。触控面板1431,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1431上或在触控面板1431附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1431可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1480,并能接收处理器1480发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1431。除了触控面板1431,输入单元1430还可以包括其他输入设备1432。具体地,其他输入设备1432可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元1440可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1440可包括显示面板1441,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1441。进一步的,触控面板1431可覆盖显示面板1441,当触控面板1431检测到在其上或附近的触摸操作后,传送给处理器1480以确定触摸事件的类型,随后处理器1480根据触摸事件的类型在显示面板1441上提供相应的视觉输出。虽然在图14中,触控面板1431与显示面板1441是作为两个独立的部件来 实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1431与显示面板1441集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器1450,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1441的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1441和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1460、扬声器1461,传声器1462可提供用户与手机之间的音频接口。音频电路1460可将接收到的音频数据转换后的电信号,传输到扬声器1461,由扬声器1461转换为声音信号输出;另一方面,传声器1462将收集的声音信号转换为电信号,由音频电路1460接收后转换为音频数据,再将音频数据输出处理器1480处理后,经RF电路1410以发送给比如另一手机,或者将音频数据输出至存储器1420以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块1470可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图14示出了WiFi模块1470,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器1480是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1420内的软件程序和/或模块,以及调用存储在存储器1420内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1480可包括一个或多个处理单元;优选的,处理器1480可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1480中。
手机还包括给各个部件供电的电源1490(比如电池),优选的,电源可以通过电源管理系统与处理器1480逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头。可选地,摄像头在手机的上的位置可以为前置的,也可以为后置的,本申请实施例对此不作限定。
可选地,手机可以包括单摄像头、双摄像头或三摄像头等,本申请实施例对此不作限定。
例如,手机可以包括三摄像头,其中,一个为主摄像头、一个为广角摄像头、一个为长焦摄像头。
可选地,当手机包括多个摄像头时,这多个摄像头可以全部前置,或者全部后置,或者一部分前置、另一部分后置,本申请实施例对此不作限定。
另外,尽管未示出,手机还可以包括蓝牙模块等,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时可实现上述各个方法实施例中的步骤。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储 在一个计算机可读存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。
Claims (18)
- 一种页面处理方法,其特征在于,包括:当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面。
- 如权利要求1所述的页面处理方法,其特征在于,在所述显示所述应用程序的历史浏览视图之前包括:获取所述应用程序的当前程序状态;当所述当前程序状态为预设程序状态时,获取所述应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图。
- 如权利要求2所述的页面处理方法,其特征在于,当所述页面浏览信息包括用户浏览的多个浏览页面时,所述根据所述页面浏览信息建立所述应用程序的历史浏览视图包括:获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,所述历史浏览视图中各所述页面缩略图基于各所述浏览时间进行排布。
- 如权利要求3所述的页面处理方法,其特征在于,所述获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图包括:获取所述页面浏览信息中各所述浏览页面对应的页面标识;根据所述页面标识和所述应用程序中配置的预设页面标识确定第一目标浏览页面,并获取所述第一目标浏览页面对应的第一页面缩略图和所述第一目标浏览页面对应的第一浏览时间;根据所述第一页面缩略图和所述第一浏览时间建立所述应用程序的历史浏览视图。
- 如权利要求3所述的页面处理方法,其特征在于,所述获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图包括:获取所述页面浏览信息中各所述浏览页面对应的页面内容;根据所述页面内容确定第二目标浏览页面,并获取所述第二目标浏览页面对应的第二页面缩略图和所述第二目标浏览页面对应的第二浏览时间;根据所述第二页面缩略图和所述第二浏览时间建立所述应用程序的历史浏览视图。
- 如权利要求3所述的页面处理方法,其特征在于,在所述根据所述页面浏览信息建立所述应用程序的历史浏览视图之后包括:获取所述页面浏览信息中各所述浏览页面对应的页面内容,并根据各所述页面内容确定各所述页面缩略图对应的页面关键词;当接收到用户输入的搜索关键词时,根据所述搜索关键词和所述页面关键词获取并显示第三页面缩略图,所述第三页面缩略图为所述页面缩略图中的任一页面缩略图。
- 如权利要求2至6中任一项所述的页面处理方法,其特征在于,所述获取应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图包括:获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息;根据所述第一页面浏览信息建立所述第一应用程序的第一历史浏览视图,并根据所述第二页面浏览信息建立所述第二应用程序的第二历史浏览视图;所述显示所述应用程序的历史浏览视图包括:显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图。
- 如权利要求7所述的页面处理方法,其特征在于,在所述显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图之后还包括:根据所述用户在所述第一历史浏览视图和所述第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,所述第四页面缩略图为所述第一历史浏览视图中的任一页面缩略图,所述第五页面缩略图为所述第二历史浏览视图中的任一页面缩略图;所述响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面包括:响应于所述用户对所述第五页面缩略图的选定操作,返回至包含所述第四页面缩略图的第五目标浏览页面,所述第五目标浏览页面为所述第五页面缩略图对应的浏览页面。
- 一种页面处理装置,其特征在于,包括:浏览视图显示模块,用于当检测到对当前运行的应用程序的预定触发指令时,显示所述应用程序的历史浏览视图,所述历史浏览视图是根据页面浏览信息建立的,所述页面浏览信息包括用户浏览的一个或多个浏览页面;浏览页面返回模块,用于响应于所述用户在所述历史浏览视图中的选定操作,返回至所述选定操作对应的目标浏览页面,所述目标浏览页面为所述浏览页面中的任一浏览页面。
- 如权利要求9所述的页面处理装置,其特征在于,所述页面处理装置还包括:程序状态获取模块,用于获取所述应用程序的当前程序状态;浏览视图建立模块,用于当所述当前程序状态为预设程序状态时,获取所述应用程序中的页面浏览信息,并根据所述页面浏览信息建立所述应用程序的历史浏览视图。
- 如权利要求10所述的页面处理装置,其特征在于,当所述页面浏览信息包括用户浏览的多个浏览页面时,所述浏览视图建立模块包括:第一浏览视图建立单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面缩略图和各所述浏览页面对应的浏览时间,并根据各所述页面缩略图和各所述浏览时间建立所述应用程序的历史浏览视图,所述历史浏览视图中各所述页面缩略图基于各所述浏览时间进行排布。
- 如权利要求11所述的页面处理装置,其特征在于,所述第一浏览视图建立单元包括:页面标识获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面标识;第一目标页面确定分单元,用于根据所述页面标识和所述应用程序中配置的预设页面标识确定第一目标浏览页面,并获取所述第一目标浏览页面对应的第一页面缩略图和所述第一目标浏览页面对应的第一浏览时间;第一浏览视图建立分单元,用于根据所述第一页面缩略图和所述第一浏览时间建立所述应用程序的历史浏览视图。
- 如权利要求11所述的页面处理装置,其特征在于,所述第一浏览视图建立单元包括:页面内容获取分单元,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容;第二目标页面确定分单元,用于根据所述页面内容确定第二目标浏览页面,并获取所述第二 目标浏览页面对应的第二页面缩略图和所述第二目标浏览页面对应的第二浏览时间;第二浏览视图建立分单元,用于根据所述第二页面缩略图和所述第二浏览时间建立所述应用程序的历史浏览视图。
- 如权利要求11所述的页面处理装置,其特征在于,所述页面处理装置还包括:页面关键词确定模块,用于获取所述页面浏览信息中各所述浏览页面对应的页面内容,并根据各所述页面内容确定各所述页面缩略图对应的页面关键词;页面搜索模块,用于当接收到用户输入的搜索关键词时,根据所述搜索关键词和所述页面关键词获取并显示第三页面缩略图,所述第三页面缩略图为所述页面缩略图中的任一页面缩略图。
- 如权利要求10至14中任一项所述的页面处理装置,其特征在于,所述浏览视图建立模块包括:浏览信息获取单元,用于获取第一应用程序中的第一页面浏览信息和第二应用程序中的第二页面浏览信息;第二浏览视图建立单元,用于根据所述第一页面浏览信息建立所述第一应用程序的第一历史浏览视图,并根据所述第二页面浏览信息建立所述第二应用程序的第二历史浏览视图;所述浏览视图显示模块,还用于显示所述第一应用程序的第一历史浏览视图和所述第二应用程序的第二历史浏览视图。
- 如权利要求15所述的页面处理装置,其特征在于,所述页面处理装置还包括:拖拽模块,用于根据所述用户在所述第一历史浏览视图和所述第二历史浏览视图间的拖拽操作,将第四页面缩略图拖拽至第五页面缩略图,所述第四页面缩略图为所述第一历史浏览视图中的任一页面缩略图,所述第五页面缩略图为所述第二历史浏览视图中的任一页面缩略图;所述浏览页面返回模块,还用于响应于所述用户对所述第五页面缩略图的选定操作,返回至包含所述第四页面缩略图的第五目标浏览页面,所述第五目标浏览页面为所述第五页面缩略图对应的浏览页面。
- 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至8中任一项所述的页面处理方法。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的页面处理方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP20909393.9A EP4068122A4 (en) | 2019-12-30 | 2020-10-27 | PAGE PROCESSING APPARATUS AND METHOD, AND RECORDING MEDIA AND TERMINAL EQUIPMENT |
US17/854,509 US20220335094A1 (en) | 2019-12-30 | 2022-06-30 | Page processing method and apparatus, storage medium, and terminal device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911391187.1 | 2019-12-30 | ||
CN201911391187.1A CN113127773A (zh) | 2019-12-30 | 2019-12-30 | 页面处理方法、装置、存储介质及终端设备 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/854,509 Continuation US20220335094A1 (en) | 2019-12-30 | 2022-06-30 | Page processing method and apparatus, storage medium, and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021135578A1 true WO2021135578A1 (zh) | 2021-07-08 |
Family
ID=76686413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/124154 WO2021135578A1 (zh) | 2019-12-30 | 2020-10-27 | 页面处理方法、装置、存储介质及终端设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20220335094A1 (zh) |
EP (1) | EP4068122A4 (zh) |
CN (1) | CN113127773A (zh) |
WO (1) | WO2021135578A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112836100A (zh) * | 2021-02-26 | 2021-05-25 | 拉扎斯网络科技(上海)有限公司 | 历史浏览数据的展示方法及装置 |
CN113535311A (zh) * | 2021-07-29 | 2021-10-22 | 展讯半导体(成都)有限公司 | 一种页面显示方法、装置及电子设备 |
CN115292588A (zh) * | 2022-07-20 | 2022-11-04 | 盐城金堤科技有限公司 | 热点信息引导浏览方法和装置、及存储介质和电子设备 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111142723B (zh) * | 2019-12-24 | 2021-07-13 | 维沃移动通信有限公司 | 图标移动方法及电子设备 |
CN113722628B (zh) * | 2021-08-31 | 2022-10-28 | 北京百度网讯科技有限公司 | 显示信息流的方法、装置、设备和介质 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412923A (zh) * | 2013-08-12 | 2013-11-27 | 网际傲游(北京)科技有限公司 | 一种网页浏览状态切换的方法及网页浏览器 |
CN104216967A (zh) * | 2014-08-22 | 2014-12-17 | 北京金山安全软件有限公司 | 历史浏览记录的管理方法、装置和移动终端 |
US20150019577A1 (en) * | 2013-07-15 | 2015-01-15 | Cisco Technology Inc. | Device Selection for User Interface |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6460060B1 (en) * | 1999-01-26 | 2002-10-01 | International Business Machines Corporation | Method and system for searching web browser history |
US8205172B2 (en) * | 2005-03-31 | 2012-06-19 | Microsoft Corporation | Graphical web browser history toolbar |
US8600967B2 (en) * | 2010-02-03 | 2013-12-03 | Apple Inc. | Automatic organization of browsing histories |
US8589385B2 (en) * | 2011-09-27 | 2013-11-19 | Amazon Technologies, Inc. | Historical browsing session management |
CN103577490A (zh) * | 2012-08-08 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | 一种网页浏览历史展现方法及装置 |
US20140359489A1 (en) * | 2013-05-30 | 2014-12-04 | Qualcomm Incorporated | Web browser history |
US9117088B2 (en) * | 2013-06-19 | 2015-08-25 | Google Inc. | Methods and systems for controlling levels of geolocation access |
US9473883B2 (en) * | 2014-05-31 | 2016-10-18 | Apple Inc. | Location service authorization and indication |
US20170351387A1 (en) * | 2016-06-02 | 2017-12-07 | Ebay Inc. | Quick trace navigator |
US10885219B2 (en) * | 2017-02-13 | 2021-01-05 | Microsoft Technology Licensing, Llc | Privacy control operation modes |
US11693910B2 (en) * | 2018-12-13 | 2023-07-04 | Microsoft Technology Licensing, Llc | Personalized search result rankings |
-
2019
- 2019-12-30 CN CN201911391187.1A patent/CN113127773A/zh active Pending
-
2020
- 2020-10-27 WO PCT/CN2020/124154 patent/WO2021135578A1/zh unknown
- 2020-10-27 EP EP20909393.9A patent/EP4068122A4/en active Pending
-
2022
- 2022-06-30 US US17/854,509 patent/US20220335094A1/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150019577A1 (en) * | 2013-07-15 | 2015-01-15 | Cisco Technology Inc. | Device Selection for User Interface |
CN103412923A (zh) * | 2013-08-12 | 2013-11-27 | 网际傲游(北京)科技有限公司 | 一种网页浏览状态切换的方法及网页浏览器 |
CN104216967A (zh) * | 2014-08-22 | 2014-12-17 | 北京金山安全软件有限公司 | 历史浏览记录的管理方法、装置和移动终端 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4068122A4 |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112836100A (zh) * | 2021-02-26 | 2021-05-25 | 拉扎斯网络科技(上海)有限公司 | 历史浏览数据的展示方法及装置 |
CN112836100B (zh) * | 2021-02-26 | 2023-04-18 | 拉扎斯网络科技(上海)有限公司 | 历史浏览数据的展示方法及装置 |
CN113535311A (zh) * | 2021-07-29 | 2021-10-22 | 展讯半导体(成都)有限公司 | 一种页面显示方法、装置及电子设备 |
CN115292588A (zh) * | 2022-07-20 | 2022-11-04 | 盐城金堤科技有限公司 | 热点信息引导浏览方法和装置、及存储介质和电子设备 |
CN115292588B (zh) * | 2022-07-20 | 2024-03-26 | 盐城天眼察微科技有限公司 | 热点信息引导浏览方法和装置、及存储介质和电子设备 |
Also Published As
Publication number | Publication date |
---|---|
US20220335094A1 (en) | 2022-10-20 |
EP4068122A4 (en) | 2023-01-11 |
CN113127773A (zh) | 2021-07-16 |
EP4068122A1 (en) | 2022-10-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021135578A1 (zh) | 页面处理方法、装置、存储介质及终端设备 | |
EP2778870B1 (en) | Method and apparatus for copying and pasting of data | |
US10275295B2 (en) | Method and apparatus for presenting clipboard contents on a mobile terminal | |
AU2010327453B2 (en) | Method and apparatus for providing user interface of portable device | |
AU2014288039B2 (en) | Remote operation of applications using received data | |
US8826164B2 (en) | Device, method, and graphical user interface for creating a new folder | |
KR101726030B1 (ko) | 페이지 뒤로가기 제어방법, 장치, 프로그램 및 기록매체 | |
CN108369600B (zh) | web浏览器扩展 | |
CN108287917B (zh) | 文件打开方法、装置、存储介质及电子设备 | |
US11079926B2 (en) | Method and apparatus for providing user interface of portable device | |
WO2021047230A1 (zh) | 一种获取截图信息的方法及装置 | |
AU2019257433B2 (en) | Device, method and graphic user interface used to move application interface element | |
WO2024082913A1 (zh) | 多任务管理方法及电子设备 | |
CN110832449B (zh) | 一种控制方法及电子设备 | |
KR20130050705A (ko) | 키워드 검색 방법 및 장치 | |
KR20130028573A (ko) | 이동 단말기 및 그것의 제어 방법 | |
JP7002512B2 (ja) | アプリケーション・インタフェース要素を移動させるために使用されるデバイス、方法およびグラフィック・ユーザ・インタフェース | |
WO2021114919A1 (zh) | 内容获取方法、系统、用户终端及内容服务器 | |
GB2487449A (en) | Touch screen input while the host device is a locked state | |
TW201416957A (zh) | 幫助文檔查看方法及系統 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20909393 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2020909393 Country of ref document: EP Effective date: 20220627 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |