CN102779177A - Back-up method, restoring method and device of browse history of browser - Google Patents
Back-up method, restoring method and device of browse history of browser Download PDFInfo
- Publication number
- CN102779177A CN102779177A CN2012102195325A CN201210219532A CN102779177A CN 102779177 A CN102779177 A CN 102779177A CN 2012102195325 A CN2012102195325 A CN 2012102195325A CN 201210219532 A CN201210219532 A CN 201210219532A CN 102779177 A CN102779177 A CN 102779177A
- Authority
- CN
- China
- Prior art keywords
- browser
- window
- current
- data
- page
- 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.)
- Granted
Links
Images
Abstract
The invention provides a data back-up method of browse history of a browser. The method includes acquiring data required by restoring of the browse history of the browser. The data at least comprise browser window information and current webpage resource address of each browser window. After the browser is switched to the back stage preset time section of an operation system, the obtained data are stored in a permanent storage medium of a mobile terminal according to the preset data structure rule. Stored sequence is that corresponding information of the current browser window is first stored, and then corresponding information of a non-current browser window is stored. A data storage method used for restoring the browse history, a data back-up device, a data restoring device and the mobile terminal with the devices are further provided. By means of the technical scheme, the browse history can be conveniently and quickly restored.
Description
Technical field
The present invention relates to moving communicating field; More particularly; Relate to and be used for method and the device that the browsing histories to the browser of portable terminal backs up, be used for method and device that the browsing histories to the browser of portable terminal recovers, and the portable terminal with said apparatus.
Background technology
Along with the continuous development of the continuous development, particularly smart mobile phone of portable terminal, the application program of on portable terminal, installing is more and more.Go up the various application programs of installing via being installed in portable terminal (for example, smart mobile phone), can provide such as web page browsing, online game or the like service, strengthen user's experience thus for the user.
When in portable terminal, running application, need take the internal memory of portable terminal.Along with the application program that will move increases, required memory size is also becoming big.Yet memory size built-in in the portable terminal is normally limited, therefore, need manage the internal memory in the portable terminal.For example, after 2.3 reach, in the Android system of version, a kind of memory ram management method is provided; In this management method, for the bigger background application of some committed memories, for example; Browser of mobile terminal; When the current free memory in the portable terminal was not enough perhaps relatively lower, the operating system in the portable terminal can kill these background applications, thereby releasing memory supplies portable terminal to use.
In existing portable terminal; After being killed by operating system because free memory is not enough when the browser that is placed on the operating system backstage; When restarting browser; Browser can be lost by the page that the user browsed before killing usually, perhaps needs the webpage that the user browsed before networking was opened in real time again.In the former case, the page is lost and is caused the user can't continue web page browsing before.Under one situation of back, though the web page browsing of user before can continuing, this needs the user to network again, thereby extraly expends user's the flow and the stand-by period of networking, causes user experience poor thus.
In addition, in existing portable terminal, when existing leak Bug to cause application crash to withdraw from owing to the low memory in moving or the current application program of moving, user's the behavior of browsing is terminated.In this case, the user must manually open application program again could continue collapse operation before, thereby brings inconvenience to the user.
Summary of the invention
In view of the above problems; An object of the present invention is to provide method and device that a kind of browsing histories that is used for the browser of portable terminal backs up; Utilize this method and device; Can the browsing histories desired data that recover browser be saved in the non-volatile memory medium of portable terminal according to predetermined data structure rule, thereby be convenient to fast quick-recovery in the future.
Another object of the present invention provides method and the device that a kind of browsing histories that is used for the browser of portable terminal recovers; Utilize this method and device; Can recover desired data based on the browsing histories in the portable terminal according to the backup of predetermined data-structure rule; Recover the browsing histories of the browser of portable terminal in this locality apace, thereby saved release time and customer flow, protect user's the experience that surfs the web that continues thus.
Another object of the present invention provides a kind of portable terminal that comprises above-mentioned data backup device and Data Recapture Unit.
According to an aspect of the present invention; Provide a kind of being used for that the browsing histories of the browser of portable terminal is carried out the backed up data backup method; Comprise: obtain the required data of browsing histories of recovering browser, desired data comprises the browser window information browsed and the current page resource address of each browser window at least; After browser is switched to operating system backstage predetermined amount of time; According to predetermined data structure rule; The data of being obtained are saved in the permanent storage media of portable terminal; The order of wherein preserving begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned, wherein, said predetermined data structure rule comprises successively: the browser window field is used to store the browser window information of being browsed; Current page resource address field is used to store the current page resource address of each browser window; Historical viewings page resource address list field is used to store the historical viewings page resource address list of each browser window; And current page content field; Be used to store the current page content of each browser window; And the order of said preservation begins from the corresponding informance of current browsing device window; Thereafter the corresponding informance that is non-current browsing device window comprises: the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned, the storage order of non-current browsing device window is definite in proper order according to the establishment of non-current browsing device window, the non-current browsing device window of wherein creating earlier storage earlier.
In one or more examples aspect above-mentioned; Whether the startup configuration file at said browser can be provided with backstage collapse mark, be used to identify said browser and normally withdrawed from, wherein; When said browser was normally withdrawed from, the value of said backstage being collapsed mark was revised as predetermined value.
According to a further aspect in the invention; Provide a kind of being used for that the browsing histories of the browser of portable terminal is carried out the backed up data back-up device; Comprise: acquiring unit; Be used to obtain the required data of browsing histories of recovering browser, desired data comprises the browser window information browsed and the current page resource address of each browser window at least; Preserve the unit; Be used for after browser is switched to operating system backstage predetermined amount of time; Data structure rule according to predetermined is saved in the data that acquiring unit obtained in the permanent storage media of portable terminal, wherein; The order of preserving begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned; Said data backup device can also comprise: revise the unit; Be used for when said browser is normally withdrawed from, the value of the backstage being collapsed mark is revised as predetermined value, and said predetermined value is used to identify said browser and is normally withdrawed from.
According to a further aspect in the invention; Provide a kind of being used for that the browsing histories of the browser of portable terminal is carried out the data recovered restoration methods; Comprise: when after browser is withdrawed from unusually, restarting, read the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule; From the data structure of being preserved, read and recover the resource address of the current page of each browser window; Behind the resource address of the current page that recovers each browser window, whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved; When the complete page data of the current page that stores this current browser window; According to this page data; Current page at this current browser window of portable terminal local recovery; And when the complete content of pages of the current page of not storing this current browser window; Utilize the resource address of the current page of the current browsing device window recovered, the page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window, wherein; Window storage order in each field in the said predetermined data structure rule all begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned, wherein, said predetermined data structure rule comprises successively: the browser window field is used to store the browser window information of being browsed; Current page resource address field is used to store the current page resource address of each browser window; Historical viewings page resource address list field is used to store the historical viewings page resource address list of each browser window; And current page content field; Be used to store the current page content of each browser window; And the order of said preservation begins from the corresponding informance of current browsing device window; Thereafter the corresponding informance that is non-current browsing device window comprises: the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned; After the resource address of the current page that recovers each browser window; Said data reconstruction method can also comprise: read the historical viewings page resource address list of each browser window of storing in the permanent storage media of portable terminal, recover the historical viewings page resource address list of this browser window.
In one or more examples aspect above-mentioned; What whether said browser withdrawed from unusually confirms that whether equaling said predetermined value through the collapse mark of the backstage in the startup configuration file of judging browser realizes that said predetermined value is used to identify said browser and is normally withdrawed from.
In one or more examples aspect above-mentioned; What whether said browser withdrawed from unusually confirms through realizing with the finger daemon of said browser binding; Wherein, said finger daemon is started by said browser when said browser is activated, and when said browser withdraws from, is withdrawed from by said browser notice; And when said finger daemon moves; The process that whether has said browser in the current process list of the operating system of enquiry mobile terminal, and when not having the process of said browser, withdrawed from unusually to the user notification browser.
According to a further aspect in the invention; Provide a kind of being used for that the browsing histories of the browser of portable terminal is carried out the data recovered recovery device; Comprise: the browser window recovery unit; When being used for after browser is withdrawed from unusually, restarting, reading the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule; Current page resource address row recovery unit is used for reading and recovering from the data structure of being preserved the resource address of the current page of each browser window; Inspection unit is used for behind the resource address of the current page that recovers each browser window, and whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved; The current page recovery unit; Be used for when the complete page data of the current page that stores this current browser window; According to this page data; At the current page of this current browser window of portable terminal local recovery, and when the complete content of pages of the current page of not storing this current browser window, utilize the resource address of the current page of the current browsing device window that is recovered; The page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window; Wherein, the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
In one or more examples aspect above-mentioned; Said Data Recapture Unit can also comprise: historical viewings page resource address list recovery unit; Be used for after the resource address of the current page that recovers each browser window; Read the historical viewings page resource address list of each browser window of storing in the permanent storage media of portable terminal, recover the historical viewings page resource address list of this browser window.
In one or more examples aspect above-mentioned; Said Data Recapture Unit can also comprise: judging unit; Whether the backstage collapse mark that is used for the startup configuration file through judging browser equals said predetermined value is judged whether said browser withdraws from unusually, and said predetermined value is used to identify said browser and is normally withdrawed from.
According to a further aspect in the invention, a kind of portable terminal is provided, has comprised: aforesaid data backup device; And/or aforesaid Data Recapture Unit.
Utilize above-mentioned data back up method and device, can the browsing histories desired data that recover browser be saved in the non-volatile memory medium of portable terminal according to predetermined data structure rule, thereby be convenient to fast quick-recovery in the future.
Utilize above-mentioned data reconstruction method and device; Can recover desired data based on the browsing histories in the portable terminal according to the backup of predetermined data-structure rule; Recover the browsing histories of the browser of portable terminal apace in this locality; Thereby saved release time and customer flow, protected user's the experience that surfs the web that continues thus.
In order to realize above-mentioned and relevant purpose, one or more aspects of the present invention comprise the characteristic that the back will specify and in claim, particularly point out.Following explanation and accompanying drawing have specified some illustrative aspects of the present invention.Yet, the indication of these aspects only be some modes that can use in the variety of way of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Description of drawings
According to following detailed description of carrying out with reference to accompanying drawing, above-mentioned and other purposes, feature and advantage of the present invention will become more obvious.In the accompanying drawings:
Fig. 1 shows the process flow diagram that is used for the browsing histories of the browser of portable terminal is carried out the backed up data backup method according to of the present invention;
Fig. 2 shows the synoptic diagram according to data structure rule of the present invention;
The synoptic diagram that Fig. 3 A and 3B show the user when using browser to open three browse window;
Fig. 4 shows the synoptic diagram that has the data structure of three browse window according to of the present invention;
Fig. 5 shows the synoptic diagram of the example that the browsing histories that is used for the browser of portable terminal according to the present invention backs up;
Fig. 6 shows the block diagram that is used for the browsing histories of the browser of portable terminal is carried out the backed up data back-up device according to of the present invention;
Fig. 7 shows the process flow diagram that is used for the browsing histories of the browser of portable terminal is carried out the data recovered restoration methods according to of the present invention;
Fig. 8 shows the process flow diagram of judging an example of the process whether browser in the portable terminal is withdrawed from unusually according to of the present invention;
Fig. 9 shows the process flow diagram of judging another example of the process whether browser in the portable terminal is withdrawed from unusually according to of the present invention;
Figure 10 shows the block diagram that is used for the browsing histories of the browser of portable terminal is carried out the data recovered recovery device according to of the present invention; With
Figure 11 shows the block diagram according to portable terminal of the present invention.
Identical label is indicated similar or corresponding feature or function in institute's drawings attached.
Embodiment
Below will combine accompanying drawing that specific embodiment of the present invention is described in detail.
Fig. 1 shows the overview flow chart that is used for the browsing histories of the browser of portable terminal is carried out the backed up data backup method according to of the present invention.
As shown in Figure 1, after carry out on the backstage that browser is switched to operating system,, obtain the required data of browsing histories of recovering browser at step S110.Desired data for example can comprise resource address for example URL (URL, Uniform Resource Location), the historical viewings page resource address list (for example url list) of each browser window forward-reverse and/or the current page data of each browse window of the current page of the browser window information (these information for example comprise window number, current window sign etc.) browsed, each browser window.Wherein, desired data comprises the resource address URL for example of the current page of the browser window information browsed and each browser window at least.Need to prove that resource address can be a file path also except URL, visit these resources and also can open window that the present invention mainly is that URL illustrates but is not limited to this with the resource address.
Then, at step S120, after browser was switched to operating system backstage predetermined amount of time (for example, 5 seconds), the data structure rule according to predetermined was saved in the data of being obtained in the permanent storage media of portable terminal.Wherein, said predetermined data structure rule comprises successively: the browser window field is used to store the browser window information of being browsed; Current page resource address field is used to store the current page resource address of each browser window; Historical viewings page resource address list field is used to store the historical viewings page resource address list of each browser window; And the current page content field, the current page content that is used to store each browser window.In addition, in each field in said predetermined data structure rule, the window storage order can begin from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.In addition, said predetermined amount of time can be an any desired value, for example 5 seconds.
Fig. 2 shows the synoptic diagram according to data structure rule of the present invention.As shown in Figure 2, in predetermined data structure, be browser window field, current page resource address field, historical viewings page resource address list field and current page content field in regular turn.In each field, at first storage and the relevant information of current browsing device window, the relevant information of right and wrong current browsing device window thereafter.In addition, if there are a plurality of non-current browsing device windows, the storage order of then non-current browsing device window is definite in proper order according to the establishment of non-current browsing device window, the non-current browsing device window of wherein creating earlier storage earlier.
The synoptic diagram that Fig. 3 A and 3B show the user when using browser to open three browse window.Fig. 4 shows the synoptic diagram that has the data structure of three browse window according to of the present invention.
Of Fig. 3 A, the user has opened three browser windows through browser, that is, window 1, window 2 and window 3, the current page on the window 1 are 3G door homepages, and the current page on the window 2 is that the current page on mobile phone sohu.com, the window 3 is using Baidu.com.Fig. 3 B shows the synoptic diagram of these three browser windows.Window A be current window (promptly; Window 1 among Fig. 3 A), the current page on the window A is the page 1 (that is a 3G door homepage); Window B and window C correspond respectively to the window 2 and window 3 among Fig. 3 A; And the current page on it is respectively the page 2 (that is mobile phone sohu.com) and the page 3 (that is, using Baidu.com).And window B created before window C.
Fig. 4 shows the synoptic diagram of the data structure under the said circumstances.In each field of Fig. 4, the element in the field contents according to shown in the order in regular turn the storage.
Fig. 5 shows the synoptic diagram of the concrete example that the browsing histories that is used for the browser of portable terminal according to the present invention backs up, and in this example, adopts the example of URL as resource address.
As shown in Figure 5; At step S510; After carry out on the backstage that switches to the operating system of portable terminal when browser, obtain and recover the required data of browsing histories, this desired data comprises the browser window information browsed and the current page URL of each browser window at least.In a more preferred example, this desired data can also comprise the historical viewings page url list of each browser window forward-reverse and/or the current page data of each browse window.
Be switched to the backstage execution predetermined amount of time (for example, 5 seconds) of operating system when browser after,, the window information of current window A is stored (that is, filling) in the window information field of predetermined data-structure at step S515.
Then, in step S520, according to the establishment order (sequencing) of non-current window; In the window information field; After the window information of current window A, store the window information of (inserting) non-current window in regular turn, for example; Insert the window information of window B earlier, then insert the window information of window C.Repeated execution of steps S520 is up to accomplishing aforesaid operations to all browser windows.
After having stored window information,, the URL of the page 1 of current window A is stored in the current page url field of predetermined data-structure at step S525.
Then; In step S530, according to the establishment order (sequencing) of non-current window, in the current page url field; After the current page URL of current window A; Store the current page URL of (inserting) non-current window in regular turn, repeated execution of steps S530 is up to accomplishing aforesaid operations to all browser windows.
After having stored the current page url field; If have the historical viewings page url list of each browser window forward-reverse and/or the current page data of each browse window; Then at step S535, the browsing histories url list of current window A is stored in the browsing histories url list field of predetermined data-structure.
Then; At step S540, according to the establishment order (sequencing) of non-current window, in browsing histories url list field; After the browsing histories url list of current window A; Store the browsing histories url list of (inserting) non-current window in regular turn, repeated execution of steps S540 is up to accomplishing aforesaid operations to all browser windows.
After having stored the browsing histories url list,, the page data of the current page (that is, the page 1) of current window A is stored in the current page content field in the predetermined data-structure at step S545.
Then; At step S550, according to the establishment order (sequencing) of non-current window, in the current page content field; After the page data of the current page of current window A; Store the page data of the current page of (inserting) non-current window in regular turn, repeated execution of steps S550 is up to accomplishing aforesaid operations to all browser windows.
Carry out said process, up in step S555, browser is killed (that is, withdrawing from unusually) by operating system.
In addition, in an example of the present invention, can also comprise collapse mark in backstage in the startup configuration file of browser, be used to identify browser and whether withdrawed from unusually.Usually, the default value of backstage collapse mark is 1, and when the backstage collapse was labeled as 1, the expression browser was withdrawed from unusually.When browser normally withdrawed from, this backstage collapse mark was modified to 0 (that is the predetermined value in the claim).And when browser withdrawed from unusually, backstage collapse mark kept default value constant.Obviously, the default value and the predetermined value of backstage collapse mark can adopt other arbitrary value.
Fig. 6 shows the block diagram that is used for the browsing histories of the browser of portable terminal is carried out backed up data back-up device 600 according to of the present invention.
As shown in Figure 6, data backup device 600 comprises acquiring unit 610 and preserves unit 620.
Acquiring unit 610 is used to obtain the required data of browsing histories of recovering browser, and desired data comprises the browser window information browsed and the current page resource address of each browser window at least.In addition, in another example, desired data can also comprise the historical viewings page resource address list of each browser window forward-reverse and/or the current page data of each browse window.
In addition, alternatively, data backup device 600 can also comprise revises unit 630, is used for when said browser is normally withdrawed from, and the value of the backstage being collapsed mark is revised as predetermined value, and said predetermined value is used to identify said browser and is normally withdrawed from.For example, said predetermined value can be 0.
As above described according to of the present invention being used for the browsing histories of portable terminal has been carried out backed up data backup method and device referring to figs. 1 through Fig. 6.
Utilize above-mentioned data back up method and device, can the browsing histories desired data that recover browser be saved in the non-volatile memory medium of portable terminal according to predetermined data structure rule, thereby be convenient to fast quick-recovery in the future.
Fig. 7 shows the process flow diagram that is used for the browsing histories of the browser of portable terminal is carried out the data recovered restoration methods according to of the present invention, in this example, also adopts the example of URL as resource address.
As shown in Figure 7, when restarting browser, at first in step S710, whether withdrawed from from the last time of judging browser is to withdraw from unusually.
Fig. 8 shows the process flow diagram of judging an example of the process whether browser in the portable terminal is withdrawed from unusually according to of the present invention.As shown in Figure 8, when carrying out the judgement that browser withdraws from unusually, at first, in step S810, whether the value of the backstage collapse mark in the startup configuration file of inspection browser equals predetermined value (for example, whether equaling 0).If be not equal to 0, then at step S820, withdrawed from from the last time of confirming this browser is to withdraw from unusually, needs to recover the browsing histories of browser.If equal 0, then in step S830, withdrawed from from the last time of confirming browser is normally to withdraw from, thereby need not recover the browsing histories of browser, and flow process finishes.
Fig. 9 shows the process flow diagram of judging another example of the process whether browser in the portable terminal is withdrawed from unusually according to of the present invention.In the example shown in Fig. 9, what browser combined that finger daemon realizes browser withdraws from monitoring unusually.
As shown in Figure 9, when user's open any browser, the process of browser is activated, and this moment, the process of browser can start finger daemon (step S910) automatically.Here be noted that when the user withdraws from browser the process of browser can notify finger daemon to withdraw from.
After finger daemon is activated; Finger daemon can be monitored the current process list (step S920) of the operating system of portable terminal; For example periodically inquire about this current process list, to obtain the process (step S930) that whether has browser in this current process list.What need explanation is also can periodically not inquire about, but by system notice is provided.
If there is the process of browser in the current process list, then turns back to step S920 and proceed monitoring.If do not have the process of browser in the current process list, then withdraw from (step S940) unusually to the user notification browser.For example, finger daemon can eject a dialog box, tells that user browser is withdrawed from unusually; And whether inquiry need restart browser, such as, eject dialog box " very sorry; that browser is because cause collapse unusually, and whether may I ask needs open any browser again ".The user can select " being " or " denying ", simultaneously, can also edit this dialog box and lets the user insert feedback information.When the user selects " being ", open any browser again automatically, and carry out user's browsing histories rejuvenation.
The last time of determining browser withdraw from be to withdraw from unusually after; At step S720, read the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule.Said predetermined data structure rule comprises successively: browser window and current page url field are used to store the current page URL of the browser window information browsed and this browser window; Historical viewings page url list field is used to store the historical viewings page url list of each browser window; And the current page content field, the current page content that is used to store each browser window.In addition, the window storage order in each field in the said predetermined data structure rule all begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
After recovering each browser window, in step S730, from the data structure of being preserved, read and recover the URL of the current page of each browser window.
Behind the URL of the current page that recovers each browser window, at step S750, whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved.
If store the complete page data of the current page of this current browser window, that is, the check result of step S750 is for being, then at step S760, according to this page data, at the current page of this current browser window of portable terminal local recovery.
If do not store the complete content of pages of the current page of this current browser window; Promptly; The check result of step S750 is for denying; Then at step S770, utilize the URL of the current page of the current browsing device window that is recovered, the page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window.
In addition, alternatively, after step S730 and before the step 750, can also comprise step S740.In step S740, read the historical viewings page URL table of each browser window of storing in the data structure that is kept, recover the historical viewings page URL table of this browser window.Be noted that this step also can carry out after step S750.
Figure 10 shows the block diagram that is used for the browsing histories of the browser of portable terminal is carried out data recovered recovery device 1000 according to of the present invention.
Shown in figure 10, Data Recapture Unit 1000 comprises browser window recovery unit 1010, current page resource address recovery unit 1020, inspection unit 1030 and current page recovery unit 1040.
When browser window recovery unit 1010 is used for after browser is withdrawed from unusually, restarting, reads the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule.Said predetermined data structure rule comprises successively: browser window and current page resource address field are used to store the current page resource address of the browser window information browsed and this browser window; Historical viewings page resource address list field is used to store the historical viewings page resource address list of each browser window; And the current page content field, the current page content that is used to store each browser window.In addition, the window storage order in each field in the said predetermined data structure rule all begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
Current page resource address recovery unit 1020 is used for reading and recovering from the data structure of being preserved the resource address of the current page of each browser window.Inspection unit 1030 is used for behind the resource address of the current page that recovers each browser window, and whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved.
When the complete page data of the current page that stores this current browser window, current page recovery unit 1040 is according to this page data, at the current page of this current browser window of portable terminal local recovery.When the complete content of pages of the current page of not storing this current browser window; The resource address of the current page of the current browsing device window that current page recovery unit 1040 utilization is recovered, the page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window.
In another example of the present invention; Said Data Recapture Unit 1000 can also comprise historical viewings page resource address list recovery unit (not shown); Be used for after the URL of the current page that recovers each browser window; Read the historical viewings page URL table of each browser window of storing in the permanent storage media of portable terminal, recover the historical viewings page resource address list of this browser window.
In addition; In another example of the present invention; Said Data Recapture Unit 1000 can also comprise the judging unit (not shown); Whether the backstage collapse mark that is used for the startup configuration file through judging browser equals said predetermined value is judged whether said browser withdraws from unusually, and said predetermined value is used to identify said browser and is normally withdrawed from.
Described according to of the present invention being used for to Figure 10 with reference to Fig. 7 above the browsing histories of the browser of portable terminal has been carried out data recovered restoration methods and device.
Utilize above-mentioned data reconstruction method and device; Can recover desired data based on the browsing histories in the portable terminal according to the backup of predetermined data-structure rule; Recover the browsing histories of the browser of portable terminal apace in this locality; Thereby saved release time and customer flow, protected user's the experience that surfs the web that continues thus.
In addition, can be used in combination with reference to the data backup process of Fig. 1 description and the data recovery procedure of describing with reference to Fig. 7 above.
Figure 11 shows the block diagram according to portable terminal 10 of the present invention.Shown in figure 11, portable terminal 10 comprises data backup device 600 shown in Fig. 6 and the Data Recapture Unit 1000 shown in Figure 10.In addition, portable terminal 10 also can only comprise in data backup device 600 and the Data Recapture Unit 1000, perhaps can comprise the modification of data backup device 600 and Data Recapture Unit 1000.
In addition, typically, portable terminal of the present invention can be various hand-held terminal devices, for example mobile phone, PDA(Personal Digital Assistant) etc., so protection scope of the present invention should not be defined as the portable terminal of certain particular type.
In addition, can also be implemented as the computer program of carrying out by CPU according to the method for the invention.When this computer program is carried out by CPU, carry out the above-mentioned functions that limits in the method for the present invention.
In addition, said method step and the system unit computer readable storage devices that also can utilize controller (for example, processor) and be used to store the computer program that makes controller realize above-mentioned steps or Elementary Function realizes.
In addition, should be understood that computer readable storage devices as herein described (for example, storer) can be volatile memory or nonvolatile memory, perhaps can comprise volatile memory and nonvolatile memory.And nonrestrictive, nonvolatile memory can comprise ROM (read-only memory) (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory as an example.Volatile memory can comprise random-access memory (ram), and this RAM can serve as the External Cache storer.As an example and nonrestrictive; RAM can obtain in a variety of forms, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM (DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and direct RambusRAM (DRRAM).The memory device of disclosed aspect is intended to include but not limited to the storer of these and other suitable type.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with the described various illustrative logical blocks of disclosure herein, module, circuit and algorithm steps.For this interchangeability of hardware and software clearly is described, it has been carried out general description with regard to the function of various exemplary components, square, module, circuit and step.This function is implemented as software or is implemented as hardware and depends on concrete application and the design constraint that imposes on total system.Those skilled in the art can realize described function in every way to every kind of concrete application, but this realization determines should not be interpreted as to cause departing from the scope of the present invention.
Data reconstruction method and device and portable terminal are as above described according to data back up method of the present invention and device with the mode of example with reference to accompanying drawing.But, it will be appreciated by those skilled in the art that for said method and device, can also on the basis that does not break away from content of the present invention, make various improvement.Therefore, protection scope of the present invention should be confirmed by the content of appending claims.
Claims (14)
1. one kind is used for the browsing histories of the browser of portable terminal is carried out the backed up data backup method, comprising:
Obtain the required data of browsing histories of recovering browser, desired data comprises the browser window information browsed and the current page resource address of each browser window at least;
After browser was switched to operating system backstage predetermined amount of time, the data structure rule according to predetermined was saved in the data of being obtained in the permanent storage media of portable terminal,
Wherein, the order of preservation begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
2. data back up method as claimed in claim 1,
Wherein, said predetermined data structure rule comprises successively: the browser window field is used to store the browser window information of being browsed; Current page resource address field is used to store the current page resource address of each browser window; Historical viewings page resource address list field is used to store the historical viewings page resource address list of each browser window; And the current page content field, the current page content that is used to store each browser window, and
The order of said preservation begins from the corresponding informance of current browsing device window; Thereafter the corresponding informance that is non-current browsing device window comprises: the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
3. data back up method as claimed in claim 1, wherein, the storage order of non-current browsing device window is definite in proper order according to the establishment of non-current browsing device window, wherein, the non-current browsing device window of creating earlier storage earlier.
4. data back up method as claimed in claim 1 wherein, is provided with backstage collapse mark at the startup configuration file of said browser, and be used to identify said browser and whether normally withdrawed from,
Wherein, when said browser was normally withdrawed from, the value of said backstage being collapsed mark was revised as predetermined value.
5. one kind is used for the browsing histories of the browser of portable terminal is carried out the backed up data back-up device, comprising:
Acquiring unit is used to obtain the required data of browsing histories of recovering browser, and desired data comprises the browser window information browsed and the current page resource address of each browser window at least;
Preserve the unit; Be used for after browser is switched to operating system backstage predetermined amount of time; Data structure rule according to predetermined is saved in the data that acquiring unit obtained in the permanent storage media of portable terminal, wherein; The order of preserving begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
6. data backup device as claimed in claim 5 also comprises:
Revise the unit, be used for when said browser is normally withdrawed from, the value of the backstage being collapsed mark is revised as predetermined value, and said predetermined value is used to identify said browser and is normally withdrawed from.
7. one kind is used for the browsing histories of the browser of portable terminal is carried out the data recovered restoration methods, comprising:
When after browser is withdrawed from unusually, restarting, read the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule;
From the data structure of being preserved, read and recover the resource address of the current page of each browser window;
Behind the resource address of the current page that recovers each browser window, whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved;
When the complete page data of the current page that stores this current browser window, according to this page data, at the current page of this current browser window of portable terminal local recovery, and
When the complete content of pages of the current page of not storing this current browser window; Utilize the resource address of the current page of the current browsing device window that is recovered; The page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window
Wherein, the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
8. data reconstruction method as claimed in claim 7, after the resource address of the current page that recovers each browser window, said data reconstruction method also comprises:
Read the historical viewings page resource address list of each browser window of storing in the permanent storage media of portable terminal, recover the historical viewings page resource address list of this browser window.
9. data reconstruction method as claimed in claim 7; Wherein, What whether said browser withdrawed from unusually confirms that whether equaling said predetermined value through the collapse mark of the backstage in the startup configuration file of judging browser realizes that said predetermined value is used to identify said browser and is normally withdrawed from.
10. data reconstruction method as claimed in claim 7, wherein, whether said browser withdraws from unusually is confirmed to realize through the finger daemon of binding with said browser,
Wherein, said finger daemon is started by said browser when said browser is activated, and when said browser withdraws from, is withdrawed from by said browser notice, and
When said finger daemon moves, whether there is the process of said browser in the current process list of the operating system of enquiry mobile terminal, and
When not having the process of said browser, withdrawed from unusually to the user notification browser.
11. one kind is used for the browsing histories of the browser of portable terminal is carried out the data recovered recovery device, comprises:
The browser window recovery unit; When being used for after browser is withdrawed from unusually, restarting, reading the window information of each browser window and recover each browser window in the required data of the browsing histories of the recovery browser of from the permanent storage media of portable terminal, preserving according to predetermined data structure rule;
Current page resource address recovery unit is used for reading and recovering from the data structure of being preserved the resource address of the current page of each browser window;
Inspection unit is used for behind the resource address of the current page that recovers each browser window, and whether inspection stores the complete page data of the current page of this current browser window in the data structure of being preserved;
The current page recovery unit; Be used for when the complete page data of the current page that stores this current browser window; According to this page data; At the current page of this current browser window of portable terminal local recovery, and when the complete content of pages of the current page of not storing this current browser window, utilize the resource address of the current page of the current browsing device window that is recovered; The page data that obtains the current page of current browsing device window from web page server recovers the current page of current browsing device window
Wherein, the window storage order in each field in the said predetermined data structure rule begins from the corresponding informance of current browsing device window, is thereafter the corresponding informance of non-current browsing device window.
12. Data Recapture Unit as claimed in claim 11 also comprises:
Historical viewings page resource address list recovery unit; Be used for after the resource address of the current page that recovers each browser window; Read the historical viewings page resource address list of each browser window of storing in the permanent storage media of portable terminal, recover the historical viewings page resource address list of this browser window.
13. Data Recapture Unit as claimed in claim 11 also comprises:
Judging unit, whether the backstage collapse mark that is used for the startup configuration file through judging browser equals said predetermined value is judged whether said browser withdraws from unusually, said predetermined value is used to identify said browser and is normally withdrawed from.
14. a portable terminal comprises:
Like claim 5 or 6 described data backup devices; And/or
Like any one described Data Recapture Unit in the claim 11 to 13.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210219532.5A CN102779177B (en) | 2012-06-27 | 2012-06-27 | Back-up method, restoring method and device of browse history of browser |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210219532.5A CN102779177B (en) | 2012-06-27 | 2012-06-27 | Back-up method, restoring method and device of browse history of browser |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102779177A true CN102779177A (en) | 2012-11-14 |
CN102779177B CN102779177B (en) | 2015-07-22 |
Family
ID=47124089
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210219532.5A Active CN102779177B (en) | 2012-06-27 | 2012-06-27 | Back-up method, restoring method and device of browse history of browser |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102779177B (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102999402A (en) * | 2012-12-07 | 2013-03-27 | 北京奇虎科技有限公司 | User information recovering method and device for browser |
CN103020215A (en) * | 2012-12-07 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for restoring user information of browser |
CN103259688A (en) * | 2013-06-04 | 2013-08-21 | 北京搜狐新媒体信息技术有限公司 | Failure diagnosis method and device of distributed storage system |
CN103491451A (en) * | 2013-09-26 | 2014-01-01 | 深圳Tcl新技术有限公司 | Method and device for obtaining webpage data |
CN103970803A (en) * | 2013-02-05 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Browser access prompting method and system |
CN104008004A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Process protection method and electronic device |
CN104077194A (en) * | 2013-03-26 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Text input protection method and text input protection device |
CN105653432A (en) * | 2015-12-22 | 2016-06-08 | 北京奇虎科技有限公司 | Processing method and device of crash data |
CN106155736A (en) * | 2016-06-22 | 2016-11-23 | 广州优视网络科技有限公司 | Software is installed and is started type detection method, device and user terminal |
CN106250766A (en) * | 2016-07-27 | 2016-12-21 | 北京金山安全软件有限公司 | Information security processing method and device and terminal |
CN106383752A (en) * | 2016-08-24 | 2017-02-08 | 乐视控股(北京)有限公司 | Browser page abnormity recovery processing method and device |
US9582368B2 (en) | 2013-03-26 | 2017-02-28 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for text input protection |
CN106528627A (en) * | 2016-10-01 | 2017-03-22 | 奇酷互联网络科技(深圳)有限公司 | Method and apparatus for loading and locating webpage browsing position |
CN106649618A (en) * | 2016-12-01 | 2017-05-10 | 惠州Tcl移动通信有限公司 | Web page switching method and system of mobile terminal |
WO2017120876A1 (en) * | 2016-01-15 | 2017-07-20 | 杨瑛 | Method for collecting data when restarting webpage, and electronic device |
WO2017120878A1 (en) * | 2016-01-15 | 2017-07-20 | 杨瑛 | Method for restarting browser webpage, and electronic device |
CN107451228A (en) * | 2017-07-21 | 2017-12-08 | 北京海泰方圆科技股份有限公司 | A kind of browser data backup method and device |
CN110968815A (en) * | 2019-12-04 | 2020-04-07 | 北京达佳互联信息技术有限公司 | Page refreshing method, device, terminal and storage medium |
CN111221590A (en) * | 2019-11-25 | 2020-06-02 | 无锡安腾软件开发有限公司 | Method for acquiring URL of browser with chrome as kernel |
CN111459715A (en) * | 2019-01-20 | 2020-07-28 | 华为技术有限公司 | Application exception recovery |
CN112333497A (en) * | 2020-09-28 | 2021-02-05 | 深圳Tcl新技术有限公司 | User data display method, device, equipment and readable storage medium |
CN113127239A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Page state monitoring method, device, terminal and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847150A (en) * | 2009-03-26 | 2010-09-29 | 北京搜狗科技发展有限公司 | Browser status synchronization method and device |
CN102185915A (en) * | 2011-04-27 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Mobile device and webpage loading method thereof |
CN102508700A (en) * | 2011-09-30 | 2012-06-20 | 广州市动景计算机科技有限公司 | Method and device for quickly recovering webpage of mobile terminal |
-
2012
- 2012-06-27 CN CN201210219532.5A patent/CN102779177B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847150A (en) * | 2009-03-26 | 2010-09-29 | 北京搜狗科技发展有限公司 | Browser status synchronization method and device |
CN102185915A (en) * | 2011-04-27 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Mobile device and webpage loading method thereof |
CN102508700A (en) * | 2011-09-30 | 2012-06-20 | 广州市动景计算机科技有限公司 | Method and device for quickly recovering webpage of mobile terminal |
Cited By (34)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105045687A (en) * | 2012-12-07 | 2015-11-11 | 北京奇虎科技有限公司 | User information restoration method and device used for browser |
CN103020215A (en) * | 2012-12-07 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for restoring user information of browser |
CN105045687B (en) * | 2012-12-07 | 2018-04-17 | 北京奇虎科技有限公司 | User information restoring method and device for browser |
CN102999402A (en) * | 2012-12-07 | 2013-03-27 | 北京奇虎科技有限公司 | User information recovering method and device for browser |
CN102999402B (en) * | 2012-12-07 | 2015-11-25 | 北京奇虎科技有限公司 | For user profile method of reducing and the device of browser |
CN103020215B (en) * | 2012-12-07 | 2015-09-02 | 北京奇虎科技有限公司 | The method of reducing of browser client information and device |
CN103970803B (en) * | 2013-02-05 | 2018-06-15 | 腾讯科技(深圳)有限公司 | Browser access reminding method and system |
CN103970803A (en) * | 2013-02-05 | 2014-08-06 | 腾讯科技(深圳)有限公司 | Browser access prompting method and system |
CN104008004A (en) * | 2013-02-27 | 2014-08-27 | 联想(北京)有限公司 | Process protection method and electronic device |
CN104077194A (en) * | 2013-03-26 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Text input protection method and text input protection device |
WO2014153970A1 (en) * | 2013-03-26 | 2014-10-02 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for text input protection |
US9582368B2 (en) | 2013-03-26 | 2017-02-28 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for text input protection |
CN103259688A (en) * | 2013-06-04 | 2013-08-21 | 北京搜狐新媒体信息技术有限公司 | Failure diagnosis method and device of distributed storage system |
CN103491451A (en) * | 2013-09-26 | 2014-01-01 | 深圳Tcl新技术有限公司 | Method and device for obtaining webpage data |
CN103491451B (en) * | 2013-09-26 | 2017-06-16 | 深圳Tcl新技术有限公司 | A kind of web data acquisition methods and device |
CN105653432B (en) * | 2015-12-22 | 2019-02-15 | 北京奇虎科技有限公司 | A kind for the treatment of method and apparatus of crash data |
CN105653432A (en) * | 2015-12-22 | 2016-06-08 | 北京奇虎科技有限公司 | Processing method and device of crash data |
WO2017120878A1 (en) * | 2016-01-15 | 2017-07-20 | 杨瑛 | Method for restarting browser webpage, and electronic device |
WO2017120876A1 (en) * | 2016-01-15 | 2017-07-20 | 杨瑛 | Method for collecting data when restarting webpage, and electronic device |
CN106155736B (en) * | 2016-06-22 | 2019-04-12 | 广州优视网络科技有限公司 | Software installation starts type detection method, apparatus and user terminal |
CN106155736A (en) * | 2016-06-22 | 2016-11-23 | 广州优视网络科技有限公司 | Software is installed and is started type detection method, device and user terminal |
CN106250766A (en) * | 2016-07-27 | 2016-12-21 | 北京金山安全软件有限公司 | Information security processing method and device and terminal |
CN106383752A (en) * | 2016-08-24 | 2017-02-08 | 乐视控股(北京)有限公司 | Browser page abnormity recovery processing method and device |
CN106528627A (en) * | 2016-10-01 | 2017-03-22 | 奇酷互联网络科技(深圳)有限公司 | Method and apparatus for loading and locating webpage browsing position |
CN106649618B (en) * | 2016-12-01 | 2020-08-11 | 惠州Tcl移动通信有限公司 | Method and system for switching web pages by mobile terminal |
CN106649618A (en) * | 2016-12-01 | 2017-05-10 | 惠州Tcl移动通信有限公司 | Web page switching method and system of mobile terminal |
CN107451228A (en) * | 2017-07-21 | 2017-12-08 | 北京海泰方圆科技股份有限公司 | A kind of browser data backup method and device |
CN111459715A (en) * | 2019-01-20 | 2020-07-28 | 华为技术有限公司 | Application exception recovery |
US11803451B2 (en) | 2019-01-20 | 2023-10-31 | Huawei Technologies Co., Ltd. | Application exception recovery |
CN111221590A (en) * | 2019-11-25 | 2020-06-02 | 无锡安腾软件开发有限公司 | Method for acquiring URL of browser with chrome as kernel |
CN111221590B (en) * | 2019-11-25 | 2023-04-14 | 无锡安腾软件开发有限公司 | Method for acquiring URL of browser with chrome as kernel |
CN110968815A (en) * | 2019-12-04 | 2020-04-07 | 北京达佳互联信息技术有限公司 | Page refreshing method, device, terminal and storage medium |
CN113127239A (en) * | 2019-12-31 | 2021-07-16 | 深圳云天励飞技术有限公司 | Page state monitoring method, device, terminal and storage medium |
CN112333497A (en) * | 2020-09-28 | 2021-02-05 | 深圳Tcl新技术有限公司 | User data display method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN102779177B (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102779177A (en) | Back-up method, restoring method and device of browse history of browser | |
US10783211B2 (en) | Page processing method and device thereof | |
US10212563B2 (en) | Updating web resources | |
US20160371095A1 (en) | Implementation and Deletion Methods and Apparatuses for Multiple Operating Systems on Smart Device | |
CN101377744A (en) | Method and apparatus for recovering terminal equipment software upgrade | |
CN102346697A (en) | Method and system for backing up and recovering Android package (APK) and mobile terminal | |
CN103473326A (en) | Method and device providing searching advices | |
CN104040496A (en) | Terminal And Application Program Restoration Method | |
CN104836879A (en) | Address list updating method, server and system | |
CN108959384B (en) | Webpage data acquisition method and device, computer equipment and storage medium | |
CN102752371A (en) | Method for achieving splash on client side and client side | |
CN101873217B (en) | Ethernet power supply equipment restart control method and device thereof | |
CN103336736A (en) | System log acquisition method and device | |
CN104572354A (en) | Backup and restoration method for operating system based on restoration service and equipment thereof | |
CN108205482B (en) | File mount restoration methods | |
CN109358864A (en) | Method for upgrading system and device | |
CN104679824A (en) | Webpage generating method and webpage generating system of network platform | |
US8468388B2 (en) | Restoring programs after operating system failure | |
CN106959906B (en) | Information processing method, information processing device and electronic equipment | |
CN106033363B (en) | Upgrading method and upgrading device for application program of embedded system | |
CN106202176A (en) | A kind of method and system realizing website version heat upgrading | |
CN109359482B (en) | Webpage browsing method and device | |
CN109474386B (en) | Signaling tracking method, system, network element equipment and storage medium | |
CN111338889A (en) | Evidence obtaining method, device, equipment and storage medium supporting multiple operating systems | |
CN112291317B (en) | Data downloading method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200609 Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province Patentee after: Alibaba (China) Co.,Ltd. Address before: 100080 building 16, building 1610-1620, building 18, Building 29, Suzhou Street, Beijing, Haidian District Patentee before: UC MOBILE Ltd. |
|
TR01 | Transfer of patent right |