CN107329985B - Page collection method and device and mobile terminal - Google Patents

Page collection method and device and mobile terminal Download PDF

Info

Publication number
CN107329985B
CN107329985B CN201710405398.0A CN201710405398A CN107329985B CN 107329985 B CN107329985 B CN 107329985B CN 201710405398 A CN201710405398 A CN 201710405398A CN 107329985 B CN107329985 B CN 107329985B
Authority
CN
China
Prior art keywords
page
information
application
browsing
collection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710405398.0A
Other languages
Chinese (zh)
Other versions
CN107329985A (en
Inventor
汤涌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710405398.0A priority Critical patent/CN107329985B/en
Publication of CN107329985A publication Critical patent/CN107329985A/en
Application granted granted Critical
Publication of CN107329985B publication Critical patent/CN107329985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72445User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting Internet browser applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons

Abstract

The embodiment of the invention provides a page collection method, a device and a mobile terminal, wherein the method comprises the following steps: detecting a collection operation for a page loaded in a first application; acquiring page information of the page according to the collection operation; and aggregating the favorite information in the second application according to the page information. On one hand, the pages of different first applications are collected in the second application, so that the user is prevented from logging in account collection pages in different first applications, the number of accounts is reduced, the simplicity of management operation is improved, the pages which are collected in a confused mode are reduced, the first application is prevented from being repeatedly started for searching, on the other hand, an additional collection function can be provided for the first application which does not support the collection function, the collection of the pages is realized, the additional recording in the modes of using bookmarks and the like is avoided, and the probability of being forgotten by the user is reduced.

Description

Page collection method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a page collection method, a page collection device, and a mobile terminal.
Background
With the development of mobile communication technology, mobile terminals such as mobile phones and tablet computers are more and more popular, and great convenience is brought to life, study and work of people.
In order to meet the requirements of learning, work, entertainment, and the like, a user typically installs various applications, such as a browser, a communication application, a news application, a video application, and the like, in a mobile terminal.
After the demand is diversified, the time displayed by the working life of the user is fragmented, namely the user waits for elevators, buses and subways, takes buses and other dispersive time, and the user uses the mobile terminal to load pages to browse in the dispersive time, such as reading news, watching videos and the like.
The dispersive time length is small, the information amount of the page is large, browsing can not be finished in the dispersive time, in order to continue browsing in the future, if the application provides the collection function, the user can log in the account in the application and collect the pages, however, under the condition that the application is more, the number of the account is increased, the management operation is troublesome, the collected pages are easy to be confused, the application search is repeatedly started, if the application does not support the collection function, additional records are recorded by using a bookmark mode and the like, but the records are easy to be forgotten by the user, and the page is lost.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a page collecting method and a corresponding page collecting apparatus, a mobile terminal, which overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention provides a method for collecting a page, including:
detecting a collection operation for a page loaded in a first application;
acquiring page information of the page according to the collection operation;
and aggregating the favorite information in the second application according to the page information.
In one possible design, the step of detecting a collection operation for a page in the first application includes:
detecting a processing interface popped up for a loaded page in a first application;
hooking the processing interface;
loading a collection control based on the processing interface after the hook;
and detecting a collection operation triggered based on the collection control and aiming at the page.
In one possible design, the step of detecting a processing interface popped up for the loaded page in the first application includes:
detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
In one possible design, the step of hooking the processing interface includes:
loading a first application into a designated virtual machine;
and hooking the function corresponding to the processing interface in the virtual machine.
In one possible design, the step of loading the favorite control based on the post-hooking processing interface includes:
determining the area where the original control is located in the processing interface after the hook is hooked as a control area;
and generating a suspension control outside the control area as a collection control.
In one possible design, the page information includes one or more of:
address information, application information, collection time, summary information, and browsing progress information.
In a possible design, the step of obtaining the page information of the page according to the collection operation includes:
querying a browsing component for loading the page in the first application;
address information is read from a location specified in the browsing component.
In a possible design, the step of obtaining the page information of the page according to the collection operation includes:
determining a link copy control in the processing interface after hooking;
and simulating and clicking the link copying control to acquire address information.
In one possible design, the browsing progress information includes one or more of page number information, playing progress information and cache data;
the step of obtaining the page information of the page according to the collection operation comprises the following steps:
determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
if the multimedia data are played in the page, determining the playing progress information of the multimedia data;
and/or the presence of a gas in the gas,
and if the multimedia data are played in the page, reading the cache data of the multimedia data in the installation file of the first application.
In one possible design, the method further comprises:
and if the browsing operation aiming at the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information.
In one possible design, the browse operation includes a first browse operation;
the step of loading the page in the first application or the second application according to the favorite information comprises:
accessing the address information in the second application according to the first browsing operation to load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
In one possible design, the browse operation includes a second browse operation;
the step of loading the page in the first application or the second application according to the favorite information comprises:
hooking a browsing interface of the first application according to the second browsing operation;
transmitting the address information to the browsing interface so as to access the address information and load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
In a possible design, the step of hooking the browsing interface of the first application according to the second browsing operation includes:
loading a first application into a designated virtual machine;
and hooking a function corresponding to the browsing interface in the virtual machine.
In a second aspect, an embodiment of the present invention provides a device for collecting pages, including:
the collection operation detection module is used for detecting collection operation aiming at the page loaded in the first application;
the page information acquisition module is used for acquiring the page information of the page according to the collection operation;
and the favorite information aggregation module is used for aggregating the favorite information in the second application according to the page information.
In one possible design, the stowage operation detection module includes:
the processing interface detection submodule is used for detecting a processing interface popped up from the loaded page in the first application;
the processing interface hooking submodule is used for hooking the processing interface;
the collection control loading sub-module is used for loading the collection control based on the processing interface after the hook;
and the collection control triggering detection submodule is used for detecting collection operation which is triggered based on the collection control and aims at the page.
In one possible design, the processing interface detection sub-module includes:
the function name detection unit is used for detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
In one possible design, the processing interface hooking sub-module includes:
the first virtual machine loading unit is used for loading the first application into a specified virtual machine;
and the first function hooking unit is used for hooking the function corresponding to the processing interface in the virtual machine.
In one possible design, the favorite control loading sub-module includes:
the control area determining submodule is used for determining the area where the original control is located in the processing interface after the hook is hooked to be used as the control area;
and the suspension control generation submodule is used for generating a suspension control outside the control area to serve as a collection control.
In one possible design, the page information includes one or more of:
address information, application information, collection time, summary information, and browsing progress information.
In one possible design, the page information obtaining module includes:
the browsing component query sub-module is used for querying a browsing component loading the page in the first application;
and the address information reading submodule is used for reading the address information from the position appointed in the browsing component.
In one possible design, the page information obtaining module includes:
the link copying control determining submodule is used for determining a link copying control in a processing interface behind the hook;
and the link copying control simulation clicking submodule is used for simulating and clicking the link copying control to acquire the address information.
In one possible design, the browsing progress information includes one or more of page number information, playing progress information and cache data;
the page information acquisition module comprises:
the page number information determining submodule is used for determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
the playing progress information determining submodule is used for determining the playing progress information of the multimedia data if the multimedia data are played in the page;
and/or the presence of a gas in the gas,
and the cache data reading submodule is used for reading the cache data of the multimedia data in the installation file of the first application if the multimedia data is played in the page.
In one possible design, the method further comprises:
and the page loading module is used for loading the page in the first application or the second application according to the favorite information if the browsing operation aiming at the favorite information is detected in the second application.
In one possible design, the browse operation includes a first browse operation;
the page loading module comprises:
the address information access submodule is used for accessing the address information in the second application according to the first browsing operation so as to load the page;
and the first information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
In one possible design, the browse operation includes a second browse operation;
the page loading module comprises:
the browsing interface hooking sub-module is used for hooking the browsing interface of the first application according to the second browsing operation;
the address information transmission submodule is used for transmitting the address information to the browsing interface so as to access the address information and load the page;
and the second information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
In one possible design, the browsing interface hooking sub-module includes:
the second virtual machine loading unit is used for loading the first application into the specified virtual machine;
and the second function hooking unit is used for hooking the function corresponding to the browsing interface in the virtual machine.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor and a memory;
the memory is used for storing a program supporting the execution of the page collection method;
the processor is configured to execute programs stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for the mobile terminal, which includes a program designed for the mobile terminal to execute the above aspect.
The embodiment of the invention detects the collection operation aiming at the page loaded in the first application, acquires the page information of the page and aggregates the page information into the collection information in the second application, on one hand, the page of different first applications is collected in the second application, the user is prevented from logging in the account collection page in different first applications, the number of accounts is reduced, the simplicity and convenience of management operation are improved, the page which is collected in a confused mode is reduced, the first application is prevented from being repeatedly started for searching, on the other hand, an additional collection function can be provided for the first application which does not support the collection function, the collection of the page is realized, the additional recording in the modes of using bookmarks and the like is avoided, and the probability of being forgotten by the user is reduced.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for page collection according to an embodiment of the present invention;
FIGS. 2A-2C illustrate exemplary collections of pages in accordance with one embodiment of the present invention;
3A-3B illustrate exemplary diagrams of a favorite information according to one embodiment of the invention;
FIG. 4 is a flowchart illustrating steps of another embodiment of a method for page favorites according to one embodiment of the present invention;
FIG. 5 is a block diagram illustrating an embodiment of a page collector according to an embodiment of the present invention;
FIG. 6 illustrates a block diagram of a favorites embodiment of another page, according to one embodiment of the present invention; and
fig. 7 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for collecting a page according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 101, a collection operation for a page loaded in a first application is detected.
In specific implementation, the embodiments of the present invention may be applied to a mobile terminal, such as a mobile phone, a tablet computer, a personal digital assistant, a wearable device (such as glasses, a watch, etc.), and the like.
The operating systems of these mobile terminals may include Android (Android), IOS, Windows Phone, Windows, and so on.
In an operating system, different types of system applications are usually preset for users to use, and in order to meet other needs of learning, work, entertainment, and the like, users usually install various types of third-party applications in the operating system, such as browsers, communication applications, news applications, video applications, and the like.
The user launches a system application or a third party application in which pages are loaded for browsing, such as reading news, watching videos, and the like.
If the user does not browse the information of the page, the collection operation can be triggered to collect the page, and the system applications or the third-party applications to be collected in the loaded page can be called as first applications.
In one embodiment of the present invention, step 101 may comprise the following sub-steps:
in sub-step S11, a processing interface popped up for the loaded page in the first application is detected.
The processing interface belongs to an interface of the first application, is generally a secondary interface, contains one or more controls provided by the first application, and can perform corresponding processing on the currently loaded page by triggering the controls.
For example, as shown in fig. 2A, a user starts a communication application, logs in a communication account in the communication application, where the communication account concerns the official public number of the guangzhou subway, and the official public number of the guangzhou subway pushes a piece of news, and after the user clicks the news, the communication application starts a new page to load the news for the user to read.
As shown in FIG. 2B, the user clicks on the control 201 in the upper right corner of the page, at which point a processing interface 202 pops up in the first application.
In the processing interface, the user may send the page to a friend, favorite the page, search for content on the page, copy a link of the page, adjust a font, etc. by triggering the relevant control.
Of course, the processing interface is only an example, and when implementing the embodiment of the present invention, different applications may set other pop-up modes and contents thereof according to actual situations, which is not limited in the embodiment of the present invention.
In specific implementation, some first applications may call a function generation processing interface of the system, and some first applications may call a self-defined function processing interface, and for a function of the system, a function name (i.e., a system function name) of the function may be recorded, and for a self-defined function, the function name may be reversely parsed, and a recorder function name (i.e., a self-defined function name) may be obtained and recorded.
Therefore, a processing page generated by calling a function corresponding to the designated function name can be detected.
Wherein, the appointed function name comprises a system function name and/or a self-defined function name.
And the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application.
And the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
And a substep S12 of hooking the processing interface.
Hooks (Hook), also known as hooks, on which an application can set a subroutine to monitor a certain message for a given window, and the monitored window can be created by another process, which processes the message before the target window handles the function when it arrives.
In an embodiment of the present invention, the first application may be loaded into a specified virtual machine, and a function corresponding to the processing interface is hooked in the virtual machine.
In the embodiment of the present invention, the operating system may be modified, the virtual machine adapted to the application extension component may be customized, and the communication application may be loaded into the virtual machine to run, so that the application extension component may dynamically extend and repair the communication application, for example, cloud repair, cloud advertisement, module decoupling, black technology, and the like.
The application extension component comprises four parts of a running environment, an activity thread, an installation package and a component file.
The operation environment is responsible for providing core capability, the activity thread is responsible for constructing the operation environment, the installation package is responsible for providing management mechanisms such as a core interface and identity authentication, and the final functional characteristics are provided by the component files.
The runtime environment is a custom android runtime environment (e.g., ART) that provides the application extension component with the ability to adapt Java classes and methods (e.g., Hook).
The active thread is used to provide a set of mechanisms for determining and launching application extension components, thereby reducing the performance impact of the application extension components on the application.
Whether the application needs the component file to be loaded for capacity expansion can be determined by quickly judging whether the application needs the support of the application expansion component through the path.
The installation package is started using the provider signature, which carries the interfaces required by the underlying component files inside it. The Interface is a set of Application Programming Interfaces (APIs) and is used for reducing the memory occupation of the Application expansion component on the Application and reducing the influence on the Application performance when the component file is loaded.
The interface is a Jar package for use by developers in developing component files. The basic APIs commonly used are provided in the Jar package, enabling component files to dynamically modify Java classes and methods and some methods in Hook.
The component files are integrated by the inside of the installation package, so that version control is facilitated, and the size of the component files is reduced. More common base libraries as well as extension libraries can be developed based on the interface. The expansion library is not a specific function, but provides some necessary capabilities for realizing some specific functions, and can be shared by various modules.
The component files are bodies for implementing business functions, and each component file includes a plurality of class abstract objects and method abstract objects. Wherein a class abstract object may comprise a plurality of method abstract objects. The class abstract object is an abstraction of a class to be subjected to Hook, and the method abstract object is an abstraction of a method to be subjected to Hook, and a mapping relation is formed between the method abstract object and the method abstract object. A specific function is realized by a plurality of class abstract objects in a sharing mode after the information is acquired by a method abstract object.
In addition, since the first application is already running, other manners may be used for hooking, for example, hooking using Xposed, and the like, which is not limited in this embodiment of the present invention.
And a substep S13, loading the favorite control based on the processing interface after the hook.
In a specific implementation, a function corresponding to a specified function name is not modified, that is, the function normally generates a processing interface, an area where an original control is located is determined in the processing interface after hooking to serve as a control area, and a suspended control is generated outside the control area to serve as a collection control.
The original control is originally provided by the first application, and the favorite control is provided by a program independent from the first application.
For example, as shown in FIG. 2C, a hover control with text "read later" may be generated over the processing interface 202 as a favorite control.
And a substep S14, detecting a collection operation triggered based on the collection control and aiming at the page.
The user can trigger the collection operation by clicking the collection control and other operations, and collects the currently displayed page.
And 102, acquiring page information of the page according to the collection operation.
If the collection operation aiming at the page currently displayed by the first application is detected, the related page information can be obtained to be used for generating the collection information.
In particular implementations, the page information may include one or more of:
1. address information
Address information, including a URL (Uniform Resource Locator), etc., is accessed by the first application to load the relevant page.
In one embodiment, a reverse analysis may be performed on a browsing component in the first application, such as WebView (web view), in advance to obtain a location where the address information is written, and record an association relationship between information (such as a name, a version number, a package name, and the like) of the first application and the location.
Therefore, the browsing component of the loaded page in the first application can be queried through the association relationship, and the address information is read from the position specified in the browsing component.
In another embodiment, many applications provide a sharing function, which allows the user to directly copy address information for sharing or browse to other applications.
Thus, a link copy control, such as link copy control 202 shown in FIG. 2B, may be determined in the processing interface after hooking, simulating clicking on the link copy control to obtain the address information.
2. Application information
In this example, information of the first application is read as application information, such as name, version number, package name, etc., to identify the source of the page of the collection.
3. Time of collection
In this example, the current time may be read from the operating system or network as the time of the collection.
4. Summary information
In this example, information such as image data, a title, N top-ranked texts (N is a positive integer), and a keyword may be directly extracted as summary information, or summary information may be generated by using a summary generation algorithm, and the like, which is not limited in this embodiment of the present invention.
5. Browsing progress information
In this example, the position of each piece of information in the page may be analyzed, and browsing progress information may be generated to facilitate the user to continue browsing from the position.
In a specific implementation, the browsing progress information may include one or more of page number information, playing progress information (such as playing time, position of a progress bar, and the like), and cache data.
Thus, in this example, on the one hand, page number information of information in a page displayed at the time of favorite is determined.
On the other hand, if multimedia data (such as audio data, video data, etc.) is played in the page, the playing progress information of the multimedia data is determined.
On the other hand, the installation file in the first application may be analyzed in a reverse direction in advance to obtain a location where the first application stores the cache data, and record an association relationship between information (such as a name, a version number, a package name, and the like) of the first application and the location.
If the multimedia data (such as audio data, video data, etc.) is played in the page, the cache data of the multimedia data is read from the installation file of the first application according to the association relationship.
Of course, the above page information is only used as an example, and when the embodiment of the present invention is implemented, other page information may be set according to an actual situation, for example, tag information input by a user is received, and the like. In addition, besides the above page information, a person skilled in the art may also use other page information according to actual needs, and the embodiment of the present invention is not limited to this.
And 103, aggregating the favorite information in the second application according to the page information.
In a specific implementation, a favorite template may be generated in advance, the position of the page information in the favorite template is marked, and partial page information of a page loaded in a first application is embedded into the corresponding position in the favorite template, so that visual favorite information may be generated, loaded in a second application, and displayed to a user.
In addition, another part of the page information is recorded in the database of the second application as the invisible favorite information.
It should be noted that the second application, being independent of the first application, may be used to manage the favorite information, for example, sorting according to favorite time, sorting according to page type, deleting the favorite information, and so on.
For example, if the user clicks the collection control 203 shown in fig. 2C to trigger a collection operation, the address information, the application information (name "communication application", package name), the collection time ("2017-5-23"), the summary information (picture, title, first segment of text, keyword), and the browsing progress information (page 2) of the currently displayed page may be extracted.
The name "communication application", collection time and summary information are embedded into a favorite template, as shown in fig. 3A, card-type favorite information is generated, the brief information is displayed to the user, and the rest information can be recorded in a database.
As shown in fig. 3B, the favorite information of different first applications may be displayed in the second application, which is convenient for the user to manage, the respective favorite information is sorted according to the collection time, if the user clicks the "home page", all the favorite information is displayed, if the user clicks the "internet", the favorite information belonging to the internet type is displayed, and so on.
The embodiment of the invention detects the collection operation aiming at the page loaded in the first application, acquires the page information of the page and aggregates the page information into the collection information in the second application, on one hand, the page of different first applications is collected in the second application, the user is prevented from logging in the account collection page in different first applications, the number of accounts is reduced, the simplicity and convenience of management operation are improved, the page which is collected in a confused mode is reduced, the first application is prevented from being repeatedly started for searching, on the other hand, an additional collection function can be provided for the first application which does not support the collection function, the collection of the page is realized, the additional recording in the modes of using bookmarks and the like is avoided, and the probability of being forgotten by the user is reduced.
Referring to fig. 4, a flowchart illustrating steps of another embodiment of a method for collecting a page according to an embodiment of the present invention is shown, which may specifically include the following steps:
step 401, a collection operation for a page loaded in a first application is detected.
Step 402, obtaining page information of the page according to the collection operation.
And step 403, aggregating the favorite information in the second application according to the page information.
Step 404, if a browsing operation for the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information.
In a specific implementation, if the user clicks the visual favorite information in the second application, for example, clicks "read full text" of the favorite information as in fig. 3A or fig. 3B, a browsing operation may be triggered to continue browsing the corresponding page.
In one embodiment, the related page may be directly loaded in the second application, and in the second application, optimization processing such as advertisement removal, related information provision, and the like may be performed.
In another mode, if some functions (e.g. payment) in the related page need to be supported by the original application (i.e. the first application), the page may be loaded in the first application, so as to ensure the normal operation of the functions.
In one embodiment of the present invention, the browsing operation includes a first browsing operation, and in one embodiment of the present invention, step 404 may include the following sub-steps:
and a substep S21, accessing the address information in the second application according to the first browsing operation to load the page.
And a substep S22, positioning the information displayed during collection in the page according to the browsing progress information.
In the embodiment of the present invention, the favorite information includes address information, such as a URL, and the address information may be read from the database of the second application, and the address information may be accessed to load the relevant page.
Furthermore, the favorite information includes browsing progress information, such as page number information, playing progress information (such as playing time, position of a progress bar, and the like), cache data, and the like, so that the browsing progress information can be read from the database of the second application, and information displayed during collection is positioned in a page loaded by the second application, so that a user can conveniently continue to read from the reading progress during collection, operations such as dragging and page turning are avoided, and the reading efficiency is improved.
For example, the information of the page is displayed on the current interface according to the page number information, the multimedia data is fast-forwarded according to the play progress information, and the like.
If the cache data of the multimedia data is obtained in advance, the cache data can be read from the installation file of the second application and directly played, the response speed of the multimedia data is increased, and bandwidth waste caused by repeated caching is reduced.
In another embodiment of the present invention, the browsing operation includes a second browsing operation, and in an embodiment of the present invention, step 404 may include the following sub-steps:
and a substep S31, hooking the browsing interface of the first application according to the second browsing operation.
In the embodiment of the invention, the browsing interface of the first application can be hooked through Black Magic.
In specific implementation, the first application is loaded into a specified virtual machine, and a function corresponding to the browsing interface is hooked in the virtual machine.
It should be noted that the browsing interface may be an interface for browsing a page, such as an interface loaded by a browsing component (e.g., WebView) or an interface of a browser itself.
And a substep S32, transmitting the address information to the browsing interface to access the address information and load the page.
In the embodiment of the present invention, address information (e.g., a URL) is transmitted to the browsing interface, so that the first application can access the address information and load a related page on the browsing interface.
And a substep S33, positioning the information displayed during collection in the page according to the browsing progress information.
Similarly, the favorite information includes browsing progress information, such as page number information, playing progress information (such as playing time, position of a progress bar, and the like), cache data, and the like, and the browsing progress information can be read from the database of the second application, and information displayed during collection is positioned in the page loaded by the first application, so that the user can conveniently continue to read from the reading progress during collection, operations such as dragging and page turning are avoided, and the reading efficiency is improved.
For example, the information of the page is displayed on the current interface according to the page number information, the multimedia data is fast-forwarded according to the play progress information, and the like.
In one embodiment, the number of pages of the page and the playing progress of the multimedia data can be positioned by simulating user operations such as clicking, dragging, sliding and the like.
In another embodiment, if the first application calls an audio player or a video player of the operating system to play multimedia data, the audio player or the video player may be monitored to locate the playing progress.
Of course, the above positioning manner is only an example, and when implementing the embodiment of the present invention, other positioning manners may be set according to actual situations, and the embodiment of the present invention is not limited thereto. In addition, besides the above positioning manners, a person skilled in the art may also adopt other positioning manners according to actual needs, and the embodiment of the present invention is not limited thereto.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram illustrating a structure of an embodiment of a page favorite apparatus according to an embodiment of the present invention may specifically include the following modules:
a collection operation detection module 501, configured to detect a collection operation for a page loaded in a first application;
a page information obtaining module 502, configured to obtain page information of the page according to the collection operation;
and a favorite information aggregation module 503, configured to aggregate the favorite information in the second application according to the page information.
In one embodiment of the present invention, the collecting operation detecting module 501 includes:
the processing interface detection submodule is used for detecting a processing interface popped up from the loaded page in the first application;
the processing interface hooking submodule is used for hooking the processing interface;
the collection control loading sub-module is used for loading the collection control based on the processing interface after the hook;
and the collection control triggering detection submodule is used for detecting collection operation which is triggered based on the collection control and aims at the page.
In one embodiment of the present invention, the processing interface detection sub-module includes:
the function name detection unit is used for detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
In one embodiment of the invention, the processing interface hooking sub-module comprises:
the first virtual machine loading unit is used for loading the first application into a specified virtual machine;
and the first function hooking unit is used for hooking the function corresponding to the processing interface in the virtual machine.
In an embodiment of the present invention, the favorite control loading sub-module includes:
the control area determining submodule is used for determining the area where the original control is located in the processing interface after the hook is hooked to be used as the control area;
and the suspension control generation submodule is used for generating a suspension control outside the control area to serve as a collection control.
In a specific implementation, the page information includes one or more of the following:
address information, application information, collection time, summary information, and browsing progress information.
In an embodiment of the present invention, the page information obtaining module 502 includes:
the browsing component query sub-module is used for querying a browsing component loading the page in the first application;
and the address information reading submodule is used for reading the address information from the position appointed in the browsing component.
In an embodiment of the present invention, the page information obtaining module 502 includes:
the link copying control determining submodule is used for determining a link copying control in a processing interface behind the hook;
and the link copying control simulation clicking submodule is used for simulating and clicking the link copying control to acquire the address information.
In an embodiment of the present invention, the browsing progress information includes one or more of page number information, playing progress information, and cache data;
the page information obtaining module 502 includes:
the page number information determining submodule is used for determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
the playing progress information determining submodule is used for determining the playing progress information of the multimedia data if the multimedia data are played in the page;
and/or the presence of a gas in the gas,
and the cache data reading submodule is used for reading the cache data of the multimedia data in the installation file of the first application if the multimedia data is played in the page.
Referring to fig. 6, a block diagram of a structure of another embodiment of a page favorite apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
a collection operation detection module 601, configured to detect a collection operation for a page loaded in a first application;
a page information obtaining module 602, configured to obtain page information of the page according to the collection operation;
the favorite information aggregation module 603 is configured to aggregate favorite information in the second application according to the page information;
a page loading module 604, configured to, if a browsing operation for the favorite information is detected in the second application, load the page in the first application or the second application according to the favorite information.
In one embodiment of the invention, the browsing operation comprises a first browsing operation;
the page loading module 604 includes:
the address information access submodule is used for accessing the address information in the second application according to the first browsing operation so as to load the page;
and the first information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
In one embodiment of the invention, the browsing operation comprises a second browsing operation;
the page loading module 604 includes:
the browsing interface hooking sub-module is used for hooking the browsing interface of the first application according to the second browsing operation;
the address information transmission submodule is used for transmitting the address information to the browsing interface so as to access the address information and load the page;
and the second information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
In an embodiment of the present invention, the browsing interface hooking module includes:
the second virtual machine loading unit is used for loading the first application into the specified virtual machine;
and the second function hooking unit is used for hooking the function corresponding to the browsing interface in the virtual machine.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
As shown in fig. 7, for convenience of description, only the parts related to the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 7 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 7, the handset includes: radio Frequency (RF) circuit 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuit 760, wireless fidelity (WiFi) module 770, processor 780, and power supply 790. Those skilled in the art will appreciate that the handset configuration shown in fig. 7 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 7:
the RF circuit 710 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 780; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 710 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. In addition, the RF circuit 710 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 720. The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 720 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 730 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, also referred to as a touch screen, can collect touch operations of a user (e.g. operations of the user on or near the touch panel 731 by using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 780, and can receive and execute commands from the processor 780. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 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 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near the touch panel 731, the touch operation is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides a corresponding visual output on the display panel 741 according to the type of the touch event. Although the touch panel 731 and the display panel 741 are two independent components in fig. 7 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 741 and/or a backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 760, and then processes the audio data output processor 780, and then transmits the audio data to, for example, another cellular phone through the RF circuit 710, or outputs the audio data to the memory 720 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 770, and provides wireless broadband Internet access for the user. Although fig. 7 shows the WiFi module 770, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby integrally monitoring the mobile phone. Optionally, processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The handset also includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 780 via a power management system, so that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In this embodiment of the present invention, the processor 780 included in the terminal further has the following functions:
detecting a collection operation for a page loaded in a first application;
acquiring page information of the page according to the collection operation;
and aggregating the favorite information in the second application according to the page information.
Optionally, the processor 780 included in the terminal further has the following functions:
detecting a processing interface popped up for a loaded page in a first application;
hooking the processing interface;
loading a collection control based on the processing interface after the hook;
and detecting a collection operation triggered based on the collection control and aiming at the page.
Optionally, the processor 780 included in the terminal further has the following functions:
detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
Optionally, the processor 780 included in the terminal further has the following functions:
loading a first application into a designated virtual machine;
and hooking the function corresponding to the processing interface in the virtual machine.
Optionally, the processor 780 included in the terminal further has the following functions:
determining the area where the original control is located in the processing interface after the hook is hooked as a control area;
and generating a suspension control outside the control area as a collection control.
Optionally, the page information includes one or more of the following:
address information, application information, collection time, summary information, and browsing progress information.
Optionally, the processor 780 included in the terminal further has the following functions:
querying a browsing component for loading the page in the first application;
address information is read from a location specified in the browsing component.
Optionally, the processor 780 included in the terminal further has the following functions:
determining a link copy control in the processing interface after hooking;
and simulating and clicking the link copying control to acquire address information.
Optionally, the browsing progress information includes one or more of page number information, playing progress information, and cache data; the processor 780 included in the terminal also has the following functions:
determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
if the multimedia data are played in the page, determining the playing progress information of the multimedia data;
and/or the presence of a gas in the gas,
and if the multimedia data are played in the page, reading the cache data of the multimedia data in the installation file of the first application.
Optionally, the processor 780 included in the terminal further has the following functions:
and if the browsing operation aiming at the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information.
Optionally, the browsing operation comprises a first browsing operation; the processor 780 included in the terminal also has the following functions:
accessing the address information in the second application according to the first browsing operation to load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
Optionally, the browsing operation comprises a second browsing operation; the processor 780 included in the terminal also has the following functions:
hooking a browsing interface of the first application according to the second browsing operation;
transmitting the address information to the browsing interface so as to access the address information and load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
Optionally, the processor 780 included in the terminal further has the following functions:
loading a first application into a designated virtual machine;
and hooking a function corresponding to the browsing interface in the virtual machine.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
While the mobile terminal provided by the present invention has been described in detail, for those skilled in the art, the idea of the embodiment of the present invention may be changed in the specific implementation and application scope, and in summary, the content of the present description should not be construed as limiting the present invention.

Claims (25)

1. A page collection method comprises the following steps:
detecting a collection operation for a page loaded in a first application;
acquiring page information of the page according to the collection operation;
aggregating into favorite information in a second application according to the page information;
wherein the step of detecting a collection operation for a page in a first application comprises:
detecting a processing interface popped up for a loaded page in a first application;
hooking the processing interface;
loading a collection control based on the processing interface after the hook;
and detecting a collection operation triggered based on the collection control and aiming at the page.
2. The method of claim 1, wherein the step of detecting a processing interface popped up for the loaded page in the first application comprises:
detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
3. The method of claim 1, wherein the step of hooking the processing interface comprises:
loading a first application into a designated virtual machine;
and hooking the function corresponding to the processing interface in the virtual machine.
4. The method of claim 1, wherein the step of loading a favorites control based on the post-hooking processing interface comprises:
determining the area where the original control is located in the processing interface after the hook is hooked as a control area;
and generating a suspension control outside the control area as a collection control.
5. The method of claim 1, wherein the page information comprises one or more of:
address information, application information, collection time, summary information, and browsing progress information.
6. The method of claim 5, wherein the step of obtaining page information of the page according to the favorite operation comprises:
querying a browsing component for loading the page in the first application;
address information is read from a location specified in the browsing component.
7. The method of claim 5, wherein the step of obtaining page information of the page according to the favorite operation comprises:
determining a link copy control in the processing interface after hooking;
and simulating and clicking the link copying control to acquire address information.
8. The method of claim 5, wherein the browsing progress information includes one or more of page number information, play progress information, cache data;
the step of obtaining the page information of the page according to the collection operation comprises the following steps:
determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
if the multimedia data are played in the page, determining the playing progress information of the multimedia data;
and/or the presence of a gas in the gas,
and if the multimedia data are played in the page, reading the cache data of the multimedia data in the installation file of the first application.
9. The method of any one of claims 1-8, further comprising:
and if the browsing operation aiming at the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information.
10. The method of claim 5, further comprising:
if the browsing operation aiming at the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information,
the browsing operation comprises a first browsing operation;
the step of loading the page in the first application or the second application according to the favorite information comprises:
accessing the address information in the second application according to the first browsing operation to load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
11. The method of claim 5, further comprising:
if the browsing operation aiming at the favorite information is detected in the second application, loading the page in the first application or the second application according to the favorite information,
the browsing operation comprises a second browsing operation;
the step of loading the page in the first application or the second application according to the favorite information comprises:
hooking a browsing interface of the first application according to the second browsing operation;
transmitting the address information to the browsing interface so as to access the address information and load the page;
and positioning information displayed during collection in the page according to the browsing progress information.
12. The method of claim 11, wherein hooking the browsing interface of the first application according to the second browsing operation comprises:
loading a first application into a designated virtual machine;
and hooking a function corresponding to the browsing interface in the virtual machine.
13. A device for page collection, comprising:
the collection operation detection module is used for detecting collection operation aiming at the page loaded in the first application;
the page information acquisition module is used for acquiring the page information of the page according to the collection operation;
the favorite information aggregation module is used for aggregating the favorite information in the second application according to the page information;
wherein the collection operation detection module includes:
the processing interface detection submodule is used for detecting a processing interface popped up from the loaded page in the first application;
the processing interface hooking submodule is used for hooking the processing interface;
the collection control loading sub-module is used for loading the collection control based on the processing interface after the hook;
and the collection control triggering detection submodule is used for detecting collection operation which is triggered based on the collection control and aims at the page.
14. The apparatus of claim 13, wherein the processing interface detection submodule comprises:
the function name detection unit is used for detecting a processing page generated by calling a function corresponding to the specified function name;
wherein the designated function name comprises a system function name and/or a custom function name;
the function corresponding to the system function name is used for generating a processing page of the system for the page loaded in the first application;
and the function corresponding to the self-defined function name is used for generating a self-defined processing page for the loaded page in the first application.
15. The apparatus of claim 13, wherein the processing interface hooking sub-module comprises:
the first virtual machine loading unit is used for loading the first application into a specified virtual machine;
and the first function hooking unit is used for hooking the function corresponding to the processing interface in the virtual machine.
16. The apparatus of claim 13, wherein the favorite control loading sub-module comprises:
the control area determining submodule is used for determining the area where the original control is located in the processing interface after the hook is hooked to be used as the control area;
and the suspension control generation submodule is used for generating a suspension control outside the control area to serve as a collection control.
17. The apparatus of claim 13, wherein the page information comprises one or more of:
address information, application information, collection time, summary information, and browsing progress information.
18. The apparatus of claim 17, wherein the page information obtaining module comprises:
the browsing component query sub-module is used for querying a browsing component loading the page in the first application;
and the address information reading submodule is used for reading the address information from the position appointed in the browsing component.
19. The apparatus of claim 17, wherein the page information obtaining module comprises:
the link copying control determining submodule is used for determining a link copying control in a processing interface behind the hook;
and the link copying control simulation clicking submodule is used for simulating and clicking the link copying control to acquire the address information.
20. The apparatus of claim 17, wherein the browsing progress information includes one or more of page number information, play progress information, cache data;
the page information acquisition module comprises:
the page number information determining submodule is used for determining page number information of information displayed during collection in the page;
and/or the presence of a gas in the gas,
the playing progress information determining submodule is used for determining the playing progress information of the multimedia data if the multimedia data are played in the page;
and/or the presence of a gas in the gas,
and the cache data reading submodule is used for reading the cache data of the multimedia data in the installation file of the first application if the multimedia data is played in the page.
21. The apparatus of any one of claims 13-20, further comprising:
and the page loading module is used for loading the page in the first application or the second application according to the favorite information if the browsing operation aiming at the favorite information is detected in the second application.
22. The apparatus of claim 17, further comprising:
a page loading module, configured to load the page in the first application or the second application according to the favorite information if a browsing operation for the favorite information is detected in the second application,
the browsing operation comprises a first browsing operation;
the page loading module comprises:
the address information access submodule is used for accessing the address information in the second application according to the first browsing operation so as to load the page;
and the first information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
23. The apparatus of claim 17, further comprising:
a page loading module, configured to load the page in the first application or the second application according to the favorite information if a browsing operation for the favorite information is detected in the second application,
the browsing operation comprises a second browsing operation;
the page loading module comprises:
the browsing interface hooking sub-module is used for hooking a browsing interface of the first application according to the second browsing operation;
the address information transmission submodule is used for transmitting the address information to the browsing interface so as to access the address information and load the page;
and the second information positioning sub-module is used for positioning the information displayed during collection in the page according to the browsing progress information.
24. The apparatus of claim 23, wherein the browse interface hooking sub-module comprises:
the second virtual machine loading unit is used for loading the first application into the specified virtual machine;
and the second function hooking unit is used for hooking the function corresponding to the browsing interface in the virtual machine.
25. A mobile terminal comprising a processor and a memory;
the memory is used for storing a program supporting execution of a collection method of pages described in claims 1 to 12;
the processor is configured to execute programs stored in the memory.
CN201710405398.0A 2017-05-31 2017-05-31 Page collection method and device and mobile terminal Active CN107329985B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710405398.0A CN107329985B (en) 2017-05-31 2017-05-31 Page collection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710405398.0A CN107329985B (en) 2017-05-31 2017-05-31 Page collection method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107329985A CN107329985A (en) 2017-11-07
CN107329985B true CN107329985B (en) 2021-01-12

Family

ID=60194125

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710405398.0A Active CN107329985B (en) 2017-05-31 2017-05-31 Page collection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107329985B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948095B (en) * 2017-11-27 2022-09-30 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for displaying webpage content
CN108196760B (en) * 2017-12-12 2020-12-04 咪咕音乐有限公司 Method, device and storage medium for collecting processing by adopting suspension list
CN109088979A (en) * 2018-06-28 2018-12-25 珠海格力电器股份有限公司 A kind of collection control method, device, storage medium and terminal
CN109697262A (en) * 2018-12-21 2019-04-30 维沃移动通信有限公司 A kind of information display method and device
CN110007814B (en) * 2018-12-25 2022-07-12 创新先进技术有限公司 Session marking method and device
CN111045571A (en) * 2019-12-27 2020-04-21 珠海市魅族科技有限公司 Method, device, equipment and storage medium for adding expression files in application program
CN113312115A (en) * 2020-02-26 2021-08-27 华为技术有限公司 Information collection method, electronic device and computer readable storage medium
CN111680482B (en) * 2020-05-07 2024-04-12 车智互联(北京)科技有限公司 Title image-text generation method and computing device
CN114513575B (en) * 2020-10-29 2023-06-06 华为技术有限公司 Method for collection processing and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542031A (en) * 2011-12-22 2012-07-04 上海量明科技发展有限公司 Method, client and system for network link collection in instant messaging
CN104486430A (en) * 2014-12-18 2015-04-01 北京奇虎科技有限公司 Method, device and client for realizing data sharing in mobile browser client
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN105183899A (en) * 2015-09-29 2015-12-23 上海斐讯数据通信技术有限公司 Collection function sharing system and method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678502B (en) * 2013-11-19 2017-02-08 小米科技有限责任公司 Information collection method and device
CN104376075B (en) * 2014-11-14 2018-05-29 小米科技有限责任公司 Collection of data method and apparatus
CN106095985B (en) * 2016-06-20 2019-08-20 网际傲游(北京)科技有限公司 A kind of method of dynamic collection and cluster web pages information
CN106202223A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Content collection method, device and for collecting the device of content in application program
CN106293705A (en) * 2016-07-27 2017-01-04 维沃移动通信有限公司 A kind of collecting method and mobile terminal
CN107229705A (en) * 2017-05-25 2017-10-03 北京小米移动软件有限公司 Information resources lookup method, device and computer-readable recording medium
CN107229527B (en) * 2017-05-25 2022-03-01 北京小米移动软件有限公司 Information resource collection method and device and computer readable storage medium
CN107193975A (en) * 2017-05-25 2017-09-22 北京小米移动软件有限公司 Information resources collecting method, device and computer-readable recording medium
CN107203630B (en) * 2017-05-31 2020-11-24 北京安云世纪科技有限公司 Application page collection method and device and corresponding mobile terminal
CN107085617B (en) * 2017-05-31 2020-11-24 北京安云世纪科技有限公司 Application page collection method and device and corresponding mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542031A (en) * 2011-12-22 2012-07-04 上海量明科技发展有限公司 Method, client and system for network link collection in instant messaging
CN104486430A (en) * 2014-12-18 2015-04-01 北京奇虎科技有限公司 Method, device and client for realizing data sharing in mobile browser client
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN105183899A (en) * 2015-09-29 2015-12-23 上海斐讯数据通信技术有限公司 Collection function sharing system and method

Also Published As

Publication number Publication date
CN107329985A (en) 2017-11-07

Similar Documents

Publication Publication Date Title
CN107329985B (en) Page collection method and device and mobile terminal
US10971189B2 (en) Special effect synchronization method and apparatus, and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN107908952B (en) Method and device for identifying real machine and simulator and terminal
CN104298666B (en) Webpage sharing method and device
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
WO2020238351A1 (en) Application downloading and classification method and terminal device
US10956653B2 (en) Method and apparatus for displaying page and a computer storage medium
CN107423794B (en) Code scanning method and device for graphic coding and mobile terminal
CN115454286B (en) Application data processing method and device and terminal equipment
CN112148579B (en) User interface testing method and device
US20150169874A1 (en) Method, device, and system for identifying script virus
US10621259B2 (en) URL error-correcting method, server, terminal and system
US11063962B2 (en) Malicious URL detection method and apparatus, terminal, and computer storage medium
CN106959859B (en) Calling method and device of system calling function
CN106547844A (en) A kind for the treatment of method and apparatus of user interface
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN104750730A (en) Display method and display device implemented by browsers
CN104424203A (en) Method and system for viewing photo sharing state in mobile device
CN109873901A (en) A kind of screenshot method for managing resource and terminal, computer readable storage medium
CN110399721B (en) Software identification method, server and client
CN104615622A (en) Document opening method and device and mobile terminal
CN106383870A (en) Picture playing method and mobile terminal
CN104166652B (en) Browse information synchronization method and device
CN106230919B (en) File uploading method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant