CN107085617B - Application page collection method and device and corresponding mobile terminal - Google Patents

Application page collection method and device and corresponding mobile terminal Download PDF

Info

Publication number
CN107085617B
CN107085617B CN201710399512.3A CN201710399512A CN107085617B CN 107085617 B CN107085617 B CN 107085617B CN 201710399512 A CN201710399512 A CN 201710399512A CN 107085617 B CN107085617 B CN 107085617B
Authority
CN
China
Prior art keywords
page
collection process
terminal
uniform resource
resource locator
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
CN201710399512.3A
Other languages
Chinese (zh)
Other versions
CN107085617A (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 CN201710399512.3A priority Critical patent/CN107085617B/en
Publication of CN107085617A publication Critical patent/CN107085617A/en
Application granted granted Critical
Publication of CN107085617B publication Critical patent/CN107085617B/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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The invention relates to the field of software, in particular to a method and a device for collecting application program pages and a corresponding mobile terminal, wherein the method comprises the following steps: responding to a control instruction acting on the terminal, and calling out a page collection process; the page collection process acquires an application program of a currently loaded page and acquires a uniform resource locator of the page from a network request of the application program; submitting a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server; and receiving page characteristic information fed back by the server and storing the uniform resource locator and the page characteristic information in an associated manner to collect the page. According to the invention, the uniform resource locator of the page loaded by the current application program is obtained through the page collection process, the characteristic information of the page is obtained according to the uniform resource locator and is stored in the local database, the barrier between applications is broken, and the page collection of the cross-application is realized.

Description

Application page collection method and device and corresponding mobile terminal
[ technical field ] A method for producing a semiconductor device
The invention relates to the field of software, in particular to a method and a device for collecting application program pages and a corresponding mobile terminal.
[ background of the invention ]
With the continuous development of the internet and network media, the network media gradually become an important channel for people to acquire news and knowledge, people generally browse various articles, pictures, videos and other contents through handheld devices, and in some special cases, a user cannot completely browse one article or one complete video in a short time.
The existing collection operation is generally directed to collection operation in the same application program, and as the number of applications increases, users are popular, users collect a plurality of pages from a plurality of applications, and when wanting to browse the page again, users need to open the corresponding application program first and then find the required page from the favorite of the application program, the operation process is complicated, and due to the increase of the collection pages, users who often collect an article/a page in which application are forgotten, thereby causing certain trouble to the users who need to find the article/page at that time. Meanwhile, if the network state when the user browses the page is not good, the page loading speed is too low, and certain trouble is caused to the collection operation of the page.
Therefore, the page collection operation in the prior art is too complicated, too closed, poor in flexibility and usability, and poor in user experience.
[ summary of the invention ]
The invention aims to provide a method and a device for collecting application program pages, which are used for breaking barriers between applications and realizing cross-application page collection.
Another object of the present invention is to provide a mobile terminal for executing the application page collection method.
In order to realize the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a method for collecting an application page, including the following steps:
responding to a control instruction acting on the terminal, and calling out a page collection process;
the page collection process acquires an application program of a currently loaded page and acquires a uniform resource locator of the page from a network request of the application program;
submitting a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server;
and receiving page characteristic information fed back by the server and storing the uniform resource locator and the page characteristic information in an associated manner to collect the page.
Specifically, the control instruction acting on the terminal includes a control instruction triggered by a preset action acting on the terminal and/or a control instruction triggered by a specific button acting on a preset application.
Specifically, the control instruction acting on the terminal includes a control instruction triggered by a double-click action, a long-press action or a gesture sliding action acting on the terminal.
Specifically, the control instruction acting on the terminal includes monitoring a click event of a preset application specific button, and when the click event is monitored, the control instruction is triggered.
Specifically, the step of acquiring the application program of the currently loaded page by the page collection process and acquiring the uniform resource locator of the page from the network request of the application program includes:
the page collection process acquires an application identifier of an application program of a currently loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
Preferably, the method further comprises:
and when the page collection process is called out, popping up a collection control, and executing the subsequent steps after receiving a collection instruction triggered by the operation of the collection control by the user.
Specifically, the state of the page collection process before being called out comprises a started state and/or an un-started state.
Specifically, the network request of the application program and/or the terminal is captured by presetting a listener at a designated network port.
Preferably, the network request is an HTTP request.
Furthermore, after the page collection process is called out, the page collection process is represented by a floating control and is output on a terminal user interface.
Further, when the page collection process acquires the application program of the currently loaded page and acquires the uniform resource locator of the page from the network request of the application program, the method further includes:
and acquiring icon information corresponding to the application program.
Further, the method further comprises:
and displaying the icon information of the application program on a floating control representing the page collection process.
Specifically, the page feature information includes one or more items of a title, a brief introduction, a picture, and a text of the page.
Further, the method further comprises the steps of:
and receiving a starting instruction acting on the application icon corresponding to the suspension control and/or the page collection process, and entering a user interface of the page collection process.
Further, the method further comprises the steps of:
and displaying the page characteristic information on a user interface of the page collection process according to a preset layout.
Further, the method further comprises the steps of:
and sending a page information collection instruction to a server to enable the server to store the page characteristic information and the uniform resource locator in an associated manner.
Preferably, after the uniform resource locator of the page is obtained, the method further includes the following steps:
submitting a request for acquiring all resource information of the page corresponding to the uniform resource locator to a server;
and receiving all resource information of the page fed back by the server and storing the uniform resource locator and all resource information of the page in a local database in an associated manner so as to collect the page.
Preferably, after the page collection process acquires the uniform resource locator of the page, when the network state of the terminal meets a preset condition, a request for acquiring the page feature information or all the resource information is submitted to the server.
In a second aspect, the present invention provides an application page collecting apparatus, including:
a response module: the system comprises a page collection process and a page display process, wherein the page collection process is used for responding to a control instruction acting on a terminal and comprises an acquisition module, a request module and a storage module;
an acquisition module: the method comprises the steps of obtaining an application program of a current loaded page and obtaining a uniform resource locator of the page from a network request of the application program;
a request module: the request is used for submitting a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server;
a storage module: and the page characteristic information is used for receiving the page characteristic information fed back by the server and storing the uniform resource locator and the page characteristic information in an associated manner so as to collect the page.
Specifically, the control instruction acting on the terminal includes a control instruction triggered by a preset action acting on the terminal and/or a control instruction triggered by a specific button acting on a preset application.
Specifically, the control instruction acting on the terminal includes a control instruction triggered by a double-click action, a long-press action or a gesture sliding action acting on the terminal.
Specifically, the control instruction acting on the terminal includes monitoring a click event of a preset application specific button, and when the click event is monitored, the control instruction is triggered.
Specifically, the obtaining module specifically executes:
acquiring an application identifier of an application program of a current loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
Preferably, when the page collection process is called out, a collection control is popped up, and the functions of the subsequent modules are executed only when a collection instruction triggered by the operation of the collection control by the user is received.
Specifically, the state of the page collection process before being called out comprises a started state and/or an un-started state.
Specifically, the network request of the application program and/or the terminal is captured by presetting a listener at a designated network port.
Preferably, the network request is an HTTP request.
Furthermore, after the page collection process is called out, the page collection process is represented by a floating control and is output on a terminal user interface.
Further, when the obtaining module obtains the application program of the currently loaded page and obtains the uniform resource locator of the page from the network request of the application program, the obtaining module also obtains the icon information corresponding to the application program.
Further, the apparatus further comprises:
and displaying the icon information of the application program on a floating control representing the page collection process.
Specifically, the page feature information includes one or more items of a title, a brief introduction, a picture, and a text of the page.
Further, the apparatus further comprises:
and receiving a starting instruction acting on the application icon corresponding to the suspension control and/or the page collection process, and entering a user interface of the page collection process.
Further, the apparatus further comprises:
and displaying the page characteristic information on a user interface of the page collection process according to a preset layout.
Further, the request module further performs:
and sending a page information collection instruction to a server to enable the server to store the page characteristic information and the uniform resource locator in an associated manner.
Preferably, the request module further performs: submitting a request for acquiring all resource information of the page corresponding to the uniform resource locator to a server;
the storage module further performs: and receiving all resource information of the page fed back by the server and storing the uniform resource locator and all resource information of the page in a local database in an associated manner so as to collect the page.
Preferably, after the obtaining module obtains the uniform resource locator of the page, when the network state of the terminal meets a preset condition, the requesting module submits a request for obtaining the page feature information or all the resource information to the server.
In a third aspect, the present invention further provides a mobile terminal, including a processor and a memory, where the memory stores a computer program, and the computer program, when executed by the processor, implements the steps of any one of the above-mentioned methods in the first aspect.
Compared with the prior art, the invention has the following advantages:
the invention calls out the page collection process by responding to the control instruction acting on the terminal, and then the page collection process acquires the feature information of the currently loaded page, and then the page feature information and the page uniform resource locator are stored in a local database in a correlation manner, so that the feature information of the page can be quickly collected into the appointed page collection process. The pages loaded in a plurality of different applications can be collected and managed locally through the page collection process, page collection among the cross-applications is realized, a sharing entrance accessed to a third-party application is not relied on, barriers among the applications are broken, the page collection efficiency of the applications is improved, and therefore the use of a user is facilitated; the problem that a user cannot completely browse the content of the whole page at the first time due to fragmentation time, message interference or network delay is solved.
Meanwhile, based on various modes of triggering the page collection process, the page collection process can be more quickly and variously called to collect the required page, and a user can also select a favorite/adaptive mode, so that the use efficiency is improved, and the operation experience of the user is improved.
In addition, no matter what state the page collection process is in before being called out, the page collection process is still operated and operated in the background after being called out, so that terminal resources are saved to a certain extent, and the operation of the user on the current application program is not directly influenced.
Moreover, the page information acquisition process outputs and displays the terminal user interface in a floating control mode, so that a user can conveniently and quickly enter the page information acquisition process to browse the contents of articles, videos and the like which are not browsed completely.
Moreover, because the uniform resource locator of the page to be collected can be obtained locally, the characteristic information or all resource information of the page can be obtained under the condition that the network state of the terminal is better, the loading speed is higher when the page is browsed again, and the actual requirements of the user can be better met.
It is to be understood that the foregoing general description of the advantages of the present invention is provided for illustration and description, and that various other advantages of the invention will be apparent to those skilled in the art from this disclosure.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
[ description of the drawings ]
FIG. 1 is a flowchart illustrating an embodiment of a method for collecting an application page according to the present invention.
Fig. 2 is a schematic diagram of a page loaded by an application.
FIG. 3 is a diagram illustrating a page collection process according to the present invention.
FIG. 4 is a schematic diagram illustrating a page collection process characterized by a floating control after the page collection process is invoked in the present invention.
FIG. 5 is a diagram illustrating the collected page feature information in the page collection process according to the present invention.
FIG. 6 is a diagram of an embodiment of the page collector of the application program according to the present invention.
FIG. 7 is a diagram of another embodiment of the page collector of the application program according to the present invention.
Fig. 8 is a schematic structural diagram of a mobile terminal according to the present invention.
[ detailed description ] embodiments
The present invention is further described with reference to the drawings and the exemplary embodiments, wherein like reference numerals are used to refer to like elements throughout. In addition, if a detailed description of the known art is not necessary to show the features of the present invention, it is omitted.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "terminal" as used herein includes both devices that are wireless signal receivers, devices that have only wireless signal receivers without transmit capability, and devices that include receive and transmit hardware, devices that have receive and transmit hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "terminal" or "terminal device" may be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. As used herein, a "terminal Device" may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, or a smart tv, a set-top box, etc.
As will be appreciated by those skilled in the art, a remote network device, as used herein, includes, but is not limited to, a computer, a network host, a single network server, a collection of multiple network servers, or a cloud of multiple servers. Here, the Cloud is composed of a large number of computers or network servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, a super virtual computer composed of a group of loosely coupled computer sets. In the embodiment of the present invention, the remote network device, the terminal device and the WNS server may communicate with each other through any communication method, including but not limited to mobile communication based on 3GPP, LTE and WIMAX, computer network communication based on TCP/IP and UDP protocols, and short-range wireless transmission based on bluetooth and infrared transmission standards.
Those skilled in the art can understand that the user interface/operation interface described in the present invention generally refers to a display interface capable of sending a control instruction to an intelligent terminal, for example, an option (or a key, which is added by the application program, the same below) in a setting page of an Android system, an option in a notification bar or an interactive page called from a desktop, or an option in a page constructed by an active component of the application program.
It will be appreciated by those skilled in the art that the terms "application," "application software," "client software," and the like, as used herein, are intended to refer to computer software organically constructed from a series of computer instructions and associated data resources adapted for electronic operation, and are understood to represent similar concepts as those skilled in the art. Unless otherwise specified, such nomenclature is not itself limited by the programming language class, level, or operating system or platform upon which it depends. Of course, such concepts are not limited to any type of terminal.
In the embodiment of the invention, the page collection process can be an independent application program or a functional module built in another application program or a functional module built in the system OS, and the functional module built in the system OS is more convenient and safer; the representation form of the page collection process is not used as a limitation of the present invention, and when the application program/function module executes the function, the page collection process is equivalent to a process running in a system. Taking the android system as an example for explanation, a process is a running active process of an application program in the android system, is an entity for operating system resource management, is also a basic unit for allocating and scheduling resources such as system memory, CPU time slice and the like by the operating system, and provides a running environment for the running application program.
FIG. 1 is a flowchart illustrating an embodiment of a method for collecting application pages of the present invention, including steps S100-S400.
Step S100: and responding to a control instruction acting on the terminal to call out a page collection process.
In the embodiment of the invention, when the terminal receives the corresponding control instruction, the corresponding page collection process is called. Specifically, the control instruction acting on the terminal includes a control instruction triggered by a preset action acting on the terminal and/or a control instruction triggered by a specific button acting on a preset application. Based on various modes of triggering the control instruction, the page collection process can be more quickly and variously called to collect the required page, and meanwhile, the user can select a favorite/adaptive mode, so that the operation experience of the user is improved.
In an embodiment of the present invention, the control instruction acting on the terminal includes a control instruction triggered by a double-click action, a long-press action, or a gesture sliding action acting on the terminal. Specifically, the actions acting on the terminal include actions acting on a terminal screen, actions acting on a terminal virtual key and actions acting on a terminal physical key, or a combination of the actions. For example, the operation acting on the terminal screen includes a double-click action and a long-press action, and the action can be set to be executed in a preset area to be effective, for example, executed at the edge of the terminal screen; similarly, the double-click action or the long-press action can also be adopted when acting on the terminal virtual key or the physical key; in addition, the method can also be a gesture sliding motion acting on the terminal screen, for example, a three-finger sliding motion or a special gesture sliding motion such as an S-shaped gesture motion is adopted on the terminal screen to trigger the control instruction, and then the page collection process is called.
In another embodiment of the present invention, the control instruction acting on the terminal includes monitoring a click event of a preset application specific button, and triggering the control instruction when the click event is monitored. Specifically, a preset listener is used for monitoring click events of a specific button of a preset application, the embodiment is realized by relying on a function mechanism integrated in a system, the function mechanism is defined as a BM mechanism, the BM mechanism provides an ART for modifying functions of JAVA classes and methods, the listener is abstracted by virtue of an ART running mechanism and a Proxy mechanism of JAVA, the abstraction comprises abstraction of the classes to be monitored and abstraction of the methods to be monitored, the loading of the listener comprises two modes of direct loading and delayed loading, and the direct loading mode is used for monitoring a target application before a main interface of the target application is not displayed; the delayed loading mode is to monitor the main interface of the target application after the main interface is presented, and can reduce the influence of the loading of the monitor on the starting speed of the target application and ensure better user experience; as the BM mechanism is system integrated, the BM mechanism can be disabled in special cases, and once the system after disabling the BM mechanism is the same as the system without integrating the BM mechanism, all the methods rely onThe functions realized by the mechanism are all failed, and the fault-tolerant design is prepared for the system crash caused by the occurrence of the heavy BUG of the BM mechanism and cannot cause the crash of a third-party application. For example, after disabling the BM mechanism, the monitor cannot listen to the operation event of the specific button of the preset application, and then cannot perform the subsequent operation of the embodiment, but the operation of the preset application itself is not affected at this time. In this embodiment, the specific button of the preset application is an entry button in the preset application itself, which is used for sharing the current page, and the page loaded by the current preset application can be collected in the preset application or shared to other applications authorized by the preset application after a click event of the specific button is triggered. For example, the preset application is 'WeChat', and the specific button is on a browsing interface of WeChat articles
Figure BDA0001309375790000101
A button; the preset application is ' top bar today ', and the specific button is a ' × button on an article browsing interface of the top bar today. In this embodiment, the trigger of the click event of the specific button is monitored through the monitor, that is, the class or method corresponding to the specific button is monitored, and when the click event is monitored, the control instruction is triggered, and then the page collection process is invoked.
Step S200: the page collection process acquires an application program of a current loaded page and acquires a uniform resource locator of the page from a network request of the application program.
In the embodiment of the present invention, after the page collection process is called out, the execution main body of the subsequent step is the page collection process, that is, the execution main bodies of the steps S200 to S400 are the page collection processes, the application program of the currently loaded page is obtained through the page collection process, and the uniform resource locator of the page is obtained from the network request of the application program.
In the embodiment of the invention, the state of the page collection process before being called out comprises a started state and/or an un-started state. Preferably, the started state is a background running state, and when the page collection process is in the background running state before being called out, after responding to a control instruction acting on a terminal, the page acquisition process is still in the background running state and executes subsequent operations; when the page collection process is in an un-started state before being called out, only one service is needed to be kept for responding to a control instruction acting on the terminal, then the page collection process is called out, and the page collection process only needs to be in a background work after being called out and subsequent operations are executed. No matter what kind of state the page collection process is in, the page collection process is still placed in the background to run and operate after being called up, so that terminal resources are saved to a certain extent, and the operation of the user on the current application program is not directly influenced.
Specifically, in this embodiment of the present invention, the step of acquiring, by the page collection process, the application program of the currently loaded page, and acquiring the uniform resource locator of the page from the network request of the application program includes:
the page collection process acquires an application identifier of an application program of a currently loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
Specifically, if the page collection process is called out by a preset action acting on the terminal, the page collection process acquires an application identifier of an application program running in the foreground of the current system; and if the page collection process is called out by a specific button acting on a preset application on the terminal, the preset application is an application program operated in the current system foreground, and an application identifier of the application program is correspondingly acquired. The application identifier is application identity information allocated by the system for each application program, i.e. the application ID. In the application installed in the Android system, by default, each application is assigned a unique user id (uid), which corresponds to application identity information, and in the Android system, a specific application can be identified by a uid.
And when the page collection process acquires the application identifier of the application program of the currently loaded page, screening the network request containing the application identifier from the acquired terminal network request to acquire the uniform resource locator of the page. As is known, most applications acquire data by interacting with a server, and in the embodiment of the present invention, a network request listener is preset in a designated network port to capture a network request of a terminal, and preferably, the listener is preset in a system OS with a system function. The monitor monitors the network request of the terminal to count the network flow usage of the terminal, and each network request can trace the source application initiating the network request so as to count the network flow usage of each application. In this embodiment, a network request including the application identifier is screened from the captured terminal network request, that is, a network request initiated by a corresponding application is screened according to the obtained application identifier, so that the network request of the application program can be screened, and then the uniform resource locator of the currently loaded page of the application program is obtained from the network request of the application program. For example, the listener monitors that a network request of the terminal includes information "URL: www.example.com/xxx/uid: 020", and then knows that the network request is a request sent by an application program with uid of 20, and then cleans the network request to obtain a URL (uniform resource locator) therein, where the URL is the uniform resource locator of a page currently loaded by the application program, and generally, the network request is a latest network request including URL of the application program.
In an embodiment of the present invention, the network request of the application/the network request of the terminal is an HTTP request, in the Android system, if an HTTP protocol is used to transmit and receive network data, HTTP connection and HTTP policy need to be used, and the Android system provides the two manners to perform HTTP operation, and both the two manners support an HTTPs protocol, upload and download in a streaming manner, configure timeout time, IPv6, and a connection pool, and it can be known that most applications receive and transmit data through the HTTP protocol, so in the embodiment of the present invention, the network request is more representative.
Step S300: and the page collection process submits a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server.
The page collection process submits a request for obtaining the page feature information corresponding to the uniform resource locator to a specific server according to the obtained uniform resource locator, wherein the server is a server set in the page collection process, generally, the server is a server of a terminal manufacturer providing the page collection function of the embodiment, but not a server of a manufacturer of the application program of the currently loaded page. In the embodiment of the invention, the server loads the corresponding page according to the uniform resource locator, and then extracts the feature information of the page from the page according to the set rule, the extraction rule of the page feature information can be operated by combining with big data, the feature information of the page is obtained by utilizing the stronger computing capability of the server, and the computing pressure of directly obtaining, extracting and analyzing the page feature information by the terminal is reduced. Specifically, the characteristic information includes one or more items of information of a title, a brief introduction, a subject picture and a character of the page. Furthermore, the server can compress the extracted page feature information into a smaller data packet and then forward the data packet to the terminal of the page collection process, so that the bandwidth resource occupation of the terminal is reduced. As shown in fig. 2, the screenshot is a screenshot of a page loaded by an application, where the page is an article, and the feature information extracted from the page in this embodiment includes "title: over the past 40 hours, # what happened in the city in the book reading war, #; brief introduction: the 256 th article of New age; and (3) writing: in the last two days, you may also participate in the discussion of the big battle # reading book or pick up/drop a book, wherein the text is part of the text at the beginning of the article, and if the article contains pictures, the subject picture can be extracted as a item of page feature information.
Step S400: and the page collection process receives page characteristic information fed back by the server and stores the uniform resource locator and the page characteristic information in an associated manner so as to collect the page.
After submitting the request for acquiring the page feature information, the page collection process receives a page feature information data packet fed back by the server, and then stores the uniform resource locator and the page information in a local database in an associated manner so as to achieve the purpose of collecting the page.
According to the method and the device, the pages loaded in the different applications can be collected and managed locally through the page collection process, the page collection among the cross-applications is realized, the method and the device do not depend on the access of a sharing entrance of a third-party application, the barrier among the applications is broken, the page collection efficiency of the applications is improved, and therefore the use of a user is facilitated.
Further, in an embodiment of the present invention, when the page collection process is called out, a collection control is popped up, and the subsequent steps are executed only when a collection instruction triggered by the user operating the collection control is received. The method comprises the steps of responding to a control instruction acting on a terminal, calling out a page collection process, simultaneously popping up a corresponding collection control, enabling a user to intuitively perceive the process of page collection through the collection control, simultaneously outputting and displaying the collection control on the upper layer of a currently running application program, not influencing the operation of the currently running application program, correspondingly triggering the collection instruction when receiving the operation of the user, and executing the subsequent steps of the method if clicking the collection control to trigger the corresponding collection instruction. FIG. 3 is a schematic diagram of the page collection process as called out, and the collection control is shown at 31 and is displayed under the name "read later".
In an embodiment of the present invention, the invoked page collection process is represented and output on a terminal user interface by a floating control, which is described above to keep the page collection process in a background running state, and in order to enable a user to more intuitively sense the existence of the page collection process, the page collection process is represented in the form of a floating control, which may be a floating button, a floating window, or the like, and further, the floating control may be attached to an edge position of a terminal screen so as not to affect the user to operate a current application program.
Further, in an embodiment of the present invention, when the step of acquiring the application program of the currently loaded page and acquiring the uniform resource locator of the page from the network request of the application program by the page collection process, the method further includes the steps of: and acquiring icon information corresponding to the application program. Specifically, the icon information of the application can be found according to the obtained application identifier of the application program of the currently loaded page, and then the icon information is extracted for subsequent use.
Further, in an embodiment of the present invention, the obtained icon information is combined to display the icon information of the application program on a floating control representing the page collection process. When the functional steps of the embodiment of the invention are executed once, the acquired icon information of the application program is displayed on the floating control representing the page acquisition process, so that the source application of the currently collected page can be displayed for a user, or whether the collection of the page is successful or not is displayed. Fig. 4 is a schematic diagram showing that the page collection process is represented by a floating control after the page collection process is called out, in which 41 is the floating control, and the icon information of the application program is displayed on the floating control representing the page collection process.
Further, in an embodiment of the present invention, the method further includes the following steps: receiving a starting instruction acting on the suspension control and/or the application icon corresponding to the page collection process, and entering a user interface of the page collection process; and after entering the user interface of the page collection process, displaying the page characteristic information on the user interface of the page collection process according to a preset layout. In this embodiment, after the user enters the page collection process, the collection process loads the database file of the collected pages, displays the feature information of the collected pages according to a preset layout, and manages the collected page/pages by the page collection process, so that the user can browse the content of the collected pages from the page collection process conveniently. Fig. 5 is a schematic diagram illustrating the page feature information collected by the page collection process, wherein the feature information of one page in the collection includes 51, 52 and 53.
Further, in an embodiment of the present invention, when the page collection operation is executed on the local computer, a page information collection instruction is sent to the server, that is, while a request for obtaining page feature information corresponding to the uniform resource locator is submitted to the server, a page information collection instruction is sent to the server so that the server stores the page feature information in association with the uniform resource locator, and the page to be collected on the local computer is synchronized to the cloud so as to facilitate data storage of the user. The server stores the collected pages according to the account information of the user, and the subsequent user can log in from different terminals and view the collected pages on the server by using the account information of the user, for example, the server stores the pages collected by the user in a cloud disk, and the user can view the collected pages by logging in the cloud disk.
Further, in an embodiment of the present invention, after the page collection process obtains the uniform resource locator of the page, a request for obtaining all resource information of the page corresponding to the uniform resource locator is submitted to a server, and then all resource information of the page fed back by the server is received and the uniform resource locator and all resource information of the page are stored in a local database in an associated manner to collect the page. If all the resource information of the page is stored in the local database, all the resource information of the page can be loaded from the local page collection process under the condition of no networking, and the page is completely displayed and the loading speed is higher; preferably, this operation is performed when the terminal memory conditions permit or the user enables the function. All resource information of the pages to be collected is stored in the local database, so that the user can conveniently check the corresponding page content at any time. Preferably, if the content of the page resource includes the video resource, the operation can be executed if the storage space required for downloading the video resource is within the preset capacity, so that the video resource is prevented from occupying too much storage space.
Further, in an embodiment of the present invention, after the page collection process obtains the uniform resource locator of the page, when the network state of the terminal meets a preset condition, a request for obtaining feature information or all resource information of the page is sent to the server. Specifically, after the user executes the page collection operation and the page collection process obtains the uniform resource locator, the task of obtaining the characteristic information or all the resource information of the page is added into a task list of the page collection process, and the task is executed one by one until the network state where the terminal is located meets the condition, especially when the user sets to obtain all the resource information of the page. For example, when the network state of the terminal is set to be in WIFI connection, the task of acquiring the page feature information or all the resource information is executed, so that the traffic usage of the user is reduced better, and the user is served better.
Fig. 6 is a schematic diagram of an embodiment of the application page collection apparatus of the present invention, including:
the response module 100: the method is used for responding to a control instruction acting on the terminal and calling out a page collection process, wherein the page collection process comprises an acquisition module 200, a request module 300 and a storage module 400.
In the embodiment of the present invention, when the response module 100 receives the corresponding control instruction, the corresponding page collection process is invoked. Specifically, the control instruction acting on the terminal includes a control instruction triggered by a preset action acting on the terminal and/or a control instruction triggered by a specific button acting on a preset application. Based on various modes of triggering the control instruction, the page collection process can be more quickly and variously called to collect the required page, and meanwhile, the user can select a favorite/adaptive mode, so that the operation experience of the user is improved.
In an embodiment of the present invention, the control instruction acting on the terminal includes a control instruction triggered by a double-click action, a long-press action, or a gesture sliding action acting on the terminal. Specifically, the actions acting on the terminal include actions acting on a terminal screen, actions acting on a terminal virtual key and actions acting on a terminal physical key, or a combination of the actions.
In another embodiment of the present invention, the control instruction acting on the terminal includes monitoring a click event of a preset application specific button, and triggering the control instruction when the click event is monitored. Specifically, a preset listener is used to monitor a click event of a specific button of a preset application, in this embodiment, the specific button of the preset application is an entry button in the preset application for sharing a current page, and after the click event of the specific button is triggered, a page loaded by the current preset application can be collected into the preset application or shared to other applications authorized by the preset application.
In the embodiment of the present invention, after the page collection process is called out, the main execution body of the subsequent function is the page collection process, as shown in fig. 7, the page process includes an obtaining module 200, a requesting module 300, and a storing module 400.
The acquisition module 200: the method comprises the steps of obtaining an application program of a current loading page and obtaining a uniform resource locator of the page from a network request of the application program.
In the embodiment of the invention, the state of the page collection process before being called out comprises a started state and/or an un-started state. Preferably, the started state is a background running state, and when the page collection process is in the background running state before being called out, after responding to a control instruction acting on a terminal, the page acquisition process is still in the background running state and executes subsequent operations; when the page collection process is in an un-started state before being called out, only one service is needed to be kept for responding to a control instruction acting on the terminal, then the page collection process is called out, and the page collection process only needs to be in a background work after being called out and subsequent operations are executed. No matter what kind of state the page collection process is in, the page collection process is still placed in the background to run and operate after being called up, so that terminal resources are saved to a certain extent, and the operation of the user on the current application program is not directly influenced.
Specifically, in the embodiment of the present invention, the obtaining module 200 specifically executes:
the page collection process acquires an application identifier of an application program of a currently loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
Specifically, if the page collection process is invoked by a preset action acting on the terminal, the obtaining module 200 obtains an application identifier of an application program currently running in the foreground of the system; if the page collection process is called out by a specific button acting on a preset application on the terminal, the preset application is an application program running in the current system foreground, and the obtaining module 200 correspondingly obtains the application identifier of the application program.
After the obtaining module 200 obtains the application identifier of the application program of the currently loaded page, the network request including the application identifier is screened from the captured terminal network requests to obtain the uniform resource locator of the page. As is known, most applications acquire data by interacting with a server, and in the embodiment of the present invention, a network request listener is preset in a designated network port to capture a network request of a terminal, and preferably, the listener is preset in a system OS with a system function. The monitor monitors the network request of the terminal to count the network flow usage of the terminal, and each network request can trace the source application initiating the network request so as to count the network flow usage of each application. In this embodiment, the obtaining module 200 screens a network request including the application identifier from the captured terminal network request, that is, screens a network request initiated by a corresponding application according to the obtained application identifier, so as to screen a network request of the application program, and then obtains a uniform resource locator of a currently loaded page of the application program from the network request of the application program. For example, the listener monitors that a network request of the terminal includes information "URL: www.example.com/xxx/uid: 020", and then knows that the network request is a request sent by an application program with uid of 20, and then cleans the network request to obtain a URL (uniform resource locator) therein, where the URL is the uniform resource locator of a page currently loaded by the application program, and generally, the network request is a latest network request including URL of the application program.
In an embodiment of the present invention, the network request of the application/the network request of the terminal is an HTTP request, in the Android system, if an HTTP protocol is used to transmit and receive network data, HTTP connection and HTTP policy need to be used, and the Android system provides the two manners to perform HTTP operation, and both the two manners support an HTTPs protocol, upload and download in a streaming manner, configure timeout time, IPv6, and a connection pool, and it can be known that most applications receive and transmit data through the HTTP protocol, so in the embodiment of the present invention, the network request is more representative.
The request module 300: the request is used for submitting a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server;
the request module 300 submits a request for acquiring the page feature information corresponding to the uniform resource locator to a specific server according to the uniform resource locator acquired by the acquisition module 200, where the server is a server set in a page collection process, and generally, the server is a server of a terminal manufacturer providing the page collection function of this embodiment, but not a server of a manufacturer of the application program currently loading the page. In the embodiment of the invention, the server loads the corresponding page according to the uniform resource locator, and then extracts the feature information of the page from the page according to the set rule, the extraction rule of the page feature information can be operated by combining with big data, the feature information of the page is obtained by utilizing the stronger computing capability of the server, and the computing pressure of directly obtaining, extracting and analyzing the page feature information by the terminal is reduced. Specifically, the characteristic information includes one or more items of information of a title, a brief introduction, a subject picture and a character of the page. Furthermore, the server can compress the extracted page feature information into a smaller data packet and then forward the data packet to the terminal of the page collection process, so that the bandwidth resource occupation of the terminal is reduced. As shown in fig. 2, the screenshot is a screenshot of a page loaded by an application, where the page is an article, and the feature information extracted from the page in this embodiment includes "title: over the past 40 hours, # what happened in the city in the book reading war, #; brief introduction: the 256 th article of New age; and (3) writing: in the last two days, you may also participate in the discussion of the big battle # reading book or pick up/drop a book, wherein the text is part of the text at the beginning of the article, and if the article contains pictures, the subject picture can be extracted as a item of page feature information.
The storage module 400: and the page characteristic information is used for receiving the page characteristic information fed back by the server and storing the uniform resource locator and the page characteristic information in an associated manner so as to collect the page.
After the submitting module 300 submits the request for obtaining the page feature information, the storage module 400 receives a page feature information data packet fed back by the server, and then associates and stores the uniform resource locator and the page information in a local database to achieve the purpose of collecting the page.
According to the method and the device, the pages loaded in the different applications can be collected and managed locally through the page collection process, the page collection among the cross-applications is realized, the method and the device do not depend on the access of a sharing entrance of a third-party application, the barrier among the applications is broken, the page collection efficiency of the applications is improved, and therefore the use of a user is facilitated.
Further, in an embodiment of the present invention, when the page collection process is called, the collection control is popped up, and the subsequent functions of each module are executed only when a collection instruction triggered by the user operating the collection control is received. The response module 100 responds to a control instruction acting on the terminal, the corresponding collection control is popped up while the page collection process is called, a user can intuitively perceive the page collection process through the collection control, meanwhile, the collection control is output and displayed on the upper layer of the currently running application program, the operation of the currently running application program is not influenced, the collection instruction is correspondingly triggered when the operation of the user is received, the corresponding collection instruction is triggered when the collection control is clicked, and the subsequent steps of the method are executed. FIG. 3 is a schematic diagram of the page collection process as called out, and the collection control is shown at 31 and is displayed under the name "read later".
In an embodiment of the present invention, the invoked page collection process is represented and output on a terminal user interface by a floating control, which is described above to keep the page collection process in a background running state, and in order to enable a user to more intuitively sense the existence of the page collection process, the page collection process is represented in the form of a floating control, which may be a floating button, a floating window, or the like, and further, the floating control may be attached to an edge position of a terminal screen so as not to affect the user to operate a current application program.
Further, in an embodiment of the present invention, when the obtaining module executes a function of obtaining an application program of a currently loaded page and obtaining a uniform resource locator of the page from a network request of the application program, the method further includes executing: and acquiring icon information corresponding to the application program. Specifically, the icon information of the application can be found according to the obtained application identifier of the application program of the currently loaded page, and then the icon information is extracted for subsequent use.
Further, in an embodiment of the present invention, the obtained icon information is combined to display the icon information of the application program on a floating control representing the page collection process. When the module function of the embodiment of the invention is executed once, the acquired icon information of the application program is displayed on the suspension control representing the page acquisition process, so that the source application of the currently collected page can be displayed for a user, or whether the collection of the page is successful or not is displayed. Fig. 4 is a schematic diagram showing that the page collection process is represented by a floating control after the page collection process is called out, in which 41 is the floating control, and the icon information of the application program is displayed on the floating control representing the page collection process.
Further, in an embodiment of the present invention, the method further includes: receiving a starting instruction acting on the suspension control and/or the application icon corresponding to the page collection process, and entering a user interface of the page collection process; and after entering the user interface of the page collection process, displaying the page characteristic information on the user interface of the page collection process according to a preset layout. In this embodiment, after the user enters the page collection process, the collection process loads the database file of the collected pages, displays the feature information of the collected pages according to a preset layout, and manages the collected page/pages by the page collection process, so that the user can browse the content of the collected pages from the page collection process conveniently. Fig. 5 is a schematic diagram illustrating the page feature information collected by the page collection process, wherein the feature information of one page in the collection includes 51, 52 and 53.
Further, in an embodiment of the present invention, when the page collection operation is executed on the local computer, a page information collection instruction is sent to the server, that is, while a request for obtaining page feature information corresponding to the uniform resource locator is submitted to the server, a page information collection instruction is sent to the server so that the server stores the page feature information in association with the uniform resource locator, and the page to be collected on the local computer is synchronized to the cloud so as to facilitate data storage of the user. The server stores the collected pages according to the account information of the user, and the subsequent user can log in from different terminals and view the collected pages on the server by using the account information of the user, for example, the server stores the pages collected by the user in a cloud disk, and the user can view the collected pages by logging in the cloud disk.
Further, in an embodiment of the present invention, after the page collection process obtains the uniform resource locator of the page, a request for obtaining all resource information of the page corresponding to the uniform resource locator is submitted to a server, and then all resource information of the page fed back by the server is received and the uniform resource locator and all resource information of the page are stored in a local database in an associated manner to collect the page. If all the resource information of the page is stored in the local database, all the resource information of the page can be loaded from the local page collection process under the condition of no networking, and the page is completely displayed and the loading speed is higher; preferably, this operation is performed when the terminal memory conditions permit or the user enables the function. All resource information of the pages to be collected is stored in the local database, so that the user can conveniently check the corresponding page content at any time. Preferably, if the content of the page resource includes the video resource, the operation can be executed if the storage space required for downloading the video resource is within the preset capacity, so that the video resource is prevented from occupying too much storage space.
Further, in an embodiment of the present invention, after the page collection process obtains the uniform resource locator of the page, when the network state of the terminal meets a preset condition, a request for obtaining feature information or all resource information of the page is sent to the server. Specifically, after the user executes the page collection operation and the page collection process obtains the uniform resource locator, the task of obtaining the characteristic information or all the resource information of the page is added into a task list of the page collection process, and the task is executed one by one until the network state where the terminal is located meets the condition, especially when the user sets to obtain all the resource information of the page. For example, when the network state of the terminal is set to be in WIFI connection, the task of acquiring the page feature information or all the resource information is executed, so that the traffic usage of the user is reduced better, and the user is served better.
In addition, the present invention further provides a mobile terminal for implementing the above-mentioned application page collection method, as shown in fig. 8, for convenience of description, only the part related to the embodiment of the present invention is 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 mobile terminal as the mobile phone as an example:
fig. 8 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. 8, the handset includes: baseband processing module 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuitry 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 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 baseband processing module 810 may be used to synthesize a baseband signal to be transmitted or decode a received baseband signal. Specifically, the audio signal is compiled into a baseband code for transmission when being transmitted; upon reception, the received baseband code is interpreted as an audio signal. Meanwhile, the system is also responsible for compiling address information (mobile phone numbers, website addresses), text information (short message texts and website texts) and picture information (multimedia messages).
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program 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 820 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 830 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 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 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 831 may include two portions, i.e., 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 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 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 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 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 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like, as an option. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the 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 860, speaker 861, microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another cellular phone via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone 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 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The handset also includes a power supply 890 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 880 via a power management system 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 the embodiment of the present invention, the processor 880 included in the terminal further has the following functions:
establishing a remote connection channel with a relative mobile terminal;
receiving a local interface image stream transmitted by the relative mobile terminal through the connecting channel, and synchronously transmitting the local interface image stream of the relative mobile terminal to the relative mobile terminal so that the relative mobile terminal can superimpose the local interface image stream on the local interface image to output and display the local interface image stream;
and overlaying the received local interface image stream of the relative mobile terminal onto the local interface image of the relative mobile terminal, and outputting and displaying the local interface image.
In summary, the invention transmits the interface image streams of the mobile terminal and the relative mobile terminal in a bidirectional way, so that the terminal users can see the interface image of the other party when performing remote control, the visual effect of the remote control is improved, and the purpose of teaching, such as remote control, is more efficient and convenient. Meanwhile, the mobile terminal and the interface image stream of the relative mobile terminal are bidirectionally transmitted, so that diversified remote control functions such as remote teaching, remote sharing, remote office and the like are added, and more convenience is brought to users.
Meanwhile, after receiving the interface image transmitted by the relative mobile terminal, the mobile terminal superposes and presents the interface image on a local user interface in a floating window mode, so that the picture content transmitted by the relative mobile terminal can be observed, other operations on the mobile terminal can be carried out, and a user can freely switch between a remote control state and a non-remote control state more conveniently. And the size display of the floating window can be controlled by the user, the effect of coexistence of most coordinated watching and operation is achieved, meanwhile, the control authority of the mobile terminal can be opened or closed by the user, and the privacy of the user is protected to the greatest extent.
Furthermore, the remote control method of the invention is realized by utilizing the functional module capable of realizing point-to-point transmission, breaks through the limitation of the existing remote control terminal, realizes the remote control among the cross-brand mobile terminals, and enables users of terminals of different brands to freely realize the remote control of the terminal. Meanwhile, the load of the cloud server is reduced and the definition and the fluency of the image are improved through point-to-point transmission when the mobile terminal and the relative mobile terminal transmit respective interface images in a two-way mode.
Although a few exemplary embodiments of the present invention have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these exemplary embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the claims and their equivalents.

Claims (35)

1. A method for collecting application program pages is characterized by comprising the following steps:
monitoring a preset action acting on a terminal through a preset monitor, calling out a page collection process in response to a control instruction triggered by the preset action acting on the terminal, or monitoring an operation event of a specific button of a preset application through the preset monitor, and calling out the page collection process when the operation event of the specific button of the preset application is monitored; the monitor is mutually associated with the page collection process, and the page collection process is called out when the operation event is monitored through a hook;
the page collection process acquires an application program of a currently loaded page and acquires a uniform resource locator of the page from a network request of the application program;
the page collection process submits a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server;
and the page collection process receives page characteristic information fed back by the server and stores the uniform resource locator and the page characteristic information in an associated manner so as to collect the page.
2. The method according to claim 1, wherein the control instruction acting on the terminal comprises a control instruction triggered by a double-click action, a long-press action or a gesture sliding action acting on the terminal.
3. The method according to claim 1, wherein the control command for the terminal comprises a click event for monitoring a preset application specific button, and the control command is triggered when the click event is monitored.
4. The method of claim 1, wherein the step of the page collecting process obtaining the application program of the currently loaded page and obtaining the uniform resource locator of the page from the network request of the application program comprises:
the page collection process acquires an application identifier of an application program of a currently loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
5. The method of claim 1, further comprising, after said invoking said page favorite process:
and popping up a collection control, and executing the subsequent steps only when a collection instruction triggered by the operation of the collection control by the user is received.
6. The method of claim 1, wherein the state of the page favorite process prior to being evoked comprises an activated state or an inactivated state.
7. Method according to claim 4, characterized in that the network requests of the application and/or the terminal are captured by means of a pre-set listener at a designated network port.
8. The method of claim 1, wherein the network request is an HTTP request.
9. The method of claim 1, wherein the page favorite process is characterized by a hover control and output on a terminal user interface after being invoked.
10. The method according to claim 1, wherein when the page collecting process obtains the application program of the currently loaded page and obtains the uniform resource locator of the page from the network request of the application program, the method further comprises:
and acquiring icon information corresponding to the application program.
11. The method according to claim 10, further comprising, after the step of obtaining the icon information corresponding to the application program:
and displaying the icon information of the application program on a floating control representing the page collection process.
12. The method of claim 1, wherein the page characteristic information comprises one or more of a title, a brief description, a picture, and a text of the page.
13. The method of claim 9, further comprising the subsequent step of:
and receiving a starting instruction acting on the application icon corresponding to the suspension control and/or the page collection process, and entering a user interface of the page collection process.
14. The method of claim 1, further comprising the subsequent steps of:
and displaying the page characteristic information on a user interface of the page collection process according to a preset layout.
15. The method of claim 1, further comprising, after the step of obtaining the uniform resource locator of the page:
and sending a page information collection instruction to a server to enable the server to store the page characteristic information and the uniform resource locator in an associated manner.
16. The method of claim 1, further comprising, after the step of obtaining the uniform resource locator of the page:
submitting a request for acquiring all resource information of the page corresponding to the uniform resource locator to a server;
and receiving all resource information of the page fed back by the server and storing the uniform resource locator and all resource information of the page in a local database in an associated manner so as to collect the page.
17. The method according to claim 16, wherein after the page collection process obtains the uniform resource locator of the page, the request for obtaining the page feature information or all the resource information is submitted to the server only when the network status of the terminal meets a preset condition.
18. An application page collection apparatus, comprising:
a response module: the system comprises a preset monitor, a page collection process and a page collection process, wherein the preset monitor is used for monitoring a preset action acted on a terminal and responding to a control instruction triggered by the preset action acted on the terminal to call out the page collection process, or the preset monitor is used for monitoring an operation event of a specific button of a preset application and calling out the page collection process when the operation event of the specific button of the preset application is monitored; the monitor is mutually associated with the page collection process, and the page collection process is called out when the operation event is monitored through a hook; the page collection process comprises an acquisition module, a request module and a storage module;
an acquisition module: the method comprises the steps of obtaining an application program of a current loaded page and obtaining a uniform resource locator of the page from a network request of the application program;
a request module: the request is used for submitting a request for acquiring the page characteristic information corresponding to the uniform resource locator to a server;
a storage module: and the page characteristic information is used for receiving the page characteristic information fed back by the server and storing the uniform resource locator and the page characteristic information in an associated manner so as to collect the page.
19. The apparatus according to claim 18, wherein the control command acting on the terminal comprises a control command triggered by a double-click action, a long-press action or a gesture sliding action acting on the terminal.
20. The apparatus according to claim 18, wherein the control command for the terminal comprises a click event for monitoring a preset application specific button, and the control command is triggered when the click event is monitored.
21. The apparatus of claim 18, wherein the obtaining module specifically performs:
acquiring an application identifier of an application program of a current loaded page;
and screening the network request containing the application identification from the captured terminal network request to obtain the uniform resource locator of the page.
22. The apparatus of claim 18, wherein the response module, after invoking the page favorite process, further comprises performing:
and popping up a collection control, and after receiving a collection instruction triggered by the operation of the collection control by a user, executing corresponding functions by the acquisition module, the request module and the storage module.
23. The apparatus of claim 18, wherein the state of the page favorite process prior to call-out comprises an activated state or an inactivated state.
24. The apparatus of claim 21, wherein the application and/or the terminal's network request is captured by a pre-set listener at a designated network port.
25. The apparatus of claim 18, wherein the network request is an HTTP request.
26. The apparatus of claim 18, wherein the page favorite process is characterized by a hover control and output on a terminal user interface after being invoked.
27. The apparatus of claim 18, wherein when the obtaining module obtains the application program of the currently loaded page and obtains the uniform resource locator of the page from the network request of the application program, the obtaining module further performs:
and acquiring icon information corresponding to the application program.
28. The apparatus according to claim 27, wherein after the obtaining module obtains the icon information corresponding to the application program, the apparatus further comprises:
and displaying the icon information of the application program on a floating control representing the page collection process.
29. The apparatus of claim 18, wherein the page characteristic information comprises one or more of a title, a brief description, a picture, and a text of the page.
30. The apparatus of claim 26, further comprising:
and receiving a starting instruction acting on the application icon corresponding to the suspension control and/or the page collection process, and entering a user interface of the page collection process.
31. The apparatus of claim 18, further comprising:
and displaying the page characteristic information on a user interface of the page collection process according to a preset layout.
32. The apparatus of claim 18, wherein after the obtaining module obtains the uniform resource locator of the page, the requesting module further performs:
and sending a page information collection instruction to a server to enable the server to store the page characteristic information and the uniform resource locator in an associated manner.
33. The apparatus of claim 18, wherein after the obtaining module obtains the uniform resource locator of the page, the requesting module further performs: submitting a request for acquiring all resource information of the page corresponding to the uniform resource locator to a server;
the storage module further performs: and receiving all resource information of the page fed back by the server and storing the uniform resource locator and all resource information of the page in a local database in an associated manner so as to collect the page.
34. The apparatus according to claim 33, wherein after the obtaining module obtains the uniform resource locator of the page, the requesting module submits the request for obtaining the page feature information or all resource information to the server when the network status of the terminal satisfies a preset condition.
35. A mobile terminal comprising a processor and a memory, said memory having stored thereon a computer program, characterized in that the computer program, when being executed by the processor, is adapted to carry out the steps of the method according to any of the claims 1-17.
CN201710399512.3A 2017-05-31 2017-05-31 Application page collection method and device and corresponding mobile terminal Active CN107085617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710399512.3A CN107085617B (en) 2017-05-31 2017-05-31 Application page collection method and device and corresponding mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710399512.3A CN107085617B (en) 2017-05-31 2017-05-31 Application page collection method and device and corresponding mobile terminal

Publications (2)

Publication Number Publication Date
CN107085617A CN107085617A (en) 2017-08-22
CN107085617B true CN107085617B (en) 2020-11-24

Family

ID=59607830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710399512.3A Active CN107085617B (en) 2017-05-31 2017-05-31 Application page collection method and device and corresponding mobile terminal

Country Status (1)

Country Link
CN (1) CN107085617B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329985B (en) * 2017-05-31 2021-01-12 北京安云世纪科技有限公司 Page collection method and device and mobile terminal
CN107657045B (en) * 2017-09-30 2021-09-21 努比亚技术有限公司 Information collection method, mobile terminal and computer readable storage medium
WO2019134172A1 (en) * 2018-01-08 2019-07-11 青岛海信电器股份有限公司 Program processing method, and terminal and television
CN115174733A (en) * 2018-04-28 2022-10-11 华为技术有限公司 Interface display method, device and equipment
CN110401842A (en) * 2019-07-26 2019-11-01 广州华多网络科技有限公司 Live broadcasting method, device and storage medium
CN111596845B (en) * 2020-04-30 2022-02-22 维沃移动通信有限公司 Display control method and device and electronic equipment
CN111737613A (en) * 2020-06-22 2020-10-02 浙江大搜车软件技术有限公司 APP page collection method and device, computer equipment and storage medium
CN114513575B (en) * 2020-10-29 2023-06-06 华为技术有限公司 Method for collection processing and related device
CN112416875B (en) * 2020-11-24 2024-04-09 平安消费金融有限公司 Log management method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN106095999A (en) * 2016-06-22 2016-11-09 腾讯科技(深圳)有限公司 Obtain the method and device of content of pages
CN106249992A (en) * 2016-07-21 2016-12-21 广东欧珀移动通信有限公司 A kind of webpage control method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9268867B2 (en) * 2005-08-03 2016-02-23 Aol Inc. Enhanced favorites service for web browsers and web applications
CN105183899A (en) * 2015-09-29 2015-12-23 上海斐讯数据通信技术有限公司 Collection function sharing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN106095999A (en) * 2016-06-22 2016-11-09 腾讯科技(深圳)有限公司 Obtain the method and device of content of pages
CN106249992A (en) * 2016-07-21 2016-12-21 广东欧珀移动通信有限公司 A kind of webpage control method and mobile terminal

Also Published As

Publication number Publication date
CN107085617A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
CN107203630B (en) Application page collection method and device and corresponding mobile terminal
CN107085617B (en) Application page collection method and device and corresponding mobile terminal
CN107092707B (en) Display method and device for collected application program page
WO2021013158A1 (en) Display method and related apparatus
US20220413670A1 (en) Content Sharing Method and Electronic Device
EP3342172B1 (en) Method of controlling the sharing of videos and electronic device adapted thereto
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
CN110837327B (en) Message viewing method and terminal
US10019414B2 (en) Method and device for processing web page content
CN110224920B (en) Sharing method and terminal equipment
CN105320616B (en) External device control method and device
CN108491148B (en) Application sharing method and terminal
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN110780940A (en) Application program loading method, electronic device and storage medium
CN109284144A (en) A kind of fast application processing method and mobile terminal
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
CN105631059B (en) Data processing method, data processing device and data processing system
CN111142731B (en) Display method and electronic equipment
WO2018209802A1 (en) Method for displaying device identifier, mobile terminal, and terminal device
CN111142998A (en) Sharing method of background application and electronic equipment
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN111309934A (en) Collected resource processing method and electronic equipment
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN111796744B (en) Application program control method and device and electronic equipment
CN111274054B (en) Message processing method and electronic equipment

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