Movatterモバイル変換


[0]ホーム

URL:


CN106201736A - Pre-cache method and device thereof - Google Patents

Pre-cache method and device thereof
Download PDF

Info

Publication number
CN106201736A
CN106201736ACN201610481713.3ACN201610481713ACN106201736ACN 106201736 ACN106201736 ACN 106201736ACN 201610481713 ACN201610481713 ACN 201610481713ACN 106201736 ACN106201736 ACN 106201736A
Authority
CN
China
Prior art keywords
application program
mobile terminal
local address
data
address
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.)
Pending
Application number
CN201610481713.3A
Other languages
Chinese (zh)
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu 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 Meizu Technology Co LtdfiledCriticalMeizu Technology Co Ltd
Priority to CN201610481713.3ApriorityCriticalpatent/CN106201736A/en
Publication of CN106201736ApublicationCriticalpatent/CN106201736A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The present invention provides control method and the device thereof of a kind of mobile terminal, and control method includes: start application program;Judge whether application program has caching mechanism, if it is not, then the network request of application program is turned to local address;If local address comprises the data of correspondence, then obtain data corresponding in local address.And use the control device of this control method.When judging that application program has caching mechanism, the network request of application program is turned to local address, when local address comprises the data of correspondence, then obtain data corresponding in local address, after making mobile terminal carry out the pre-cache of data, being no longer necessary to when user re-uses obtain additionally by mixed-media network modules mixed-media networking, therefore be effectively saved the electricity of mobile terminal and save the flow of wireless telecommunications, the scope of application simultaneously also making caching function is wider.

Description

Pre-cache method and device thereof
Technical field
The present invention relates to mobile communication technology field, particularly relate to a kind of pre-cache method, and use this pre-cache sideThe pre-cache device of method.
Background technology
The application of existing mobile terminal all can have caching mechanism as browser, news read application or Video Applications,When user is when using above-mentioned application, and the content that can be browsed by needs downloads in caching in advance so that user browses actualTime reduce wait time, user can carry out reading and browsing more glibly.
But not all application all has caching mechanism, some application uses in use in real time according to request groundLocation obtains data on the internet, carries out reading and browsing again after obtaining data, yet with needing real-time to pass through mobile terminalMixed-media network modules mixed-media obtain data, cause suitable power consumption and also expense wireless telecommunications flow.
And the caching mechanism of above-mentioned application all rests on application level, i.e. apply when opening and using or at running backgroundThe pre-cache of Shi Jinhang content, when application is closed, then cannot carry out pre-cache to content, therefore cannot be in system level to multipleThe overall situation that application is carried out controls and pre-cache.
Summary of the invention
The first object of the present invention is to provide the control method of a kind of mobile terminal, so that the scope of application of caching functionWider.
The second object of the present invention is to provide a kind of mobile terminal, so that the scope of application of caching function is wider.
In order to realize the first object of the present invention, the present invention provides the control method at a kind of mobile terminal, wherein, bagInclude: start application program;Judge whether application program has caching mechanism, the most then the network request of application program is turned to thisWay address;If local address comprises the data of correspondence, then obtain data corresponding in local address.
From such scheme, when judging that application program has caching mechanism, the network request of application program is turned toLocal address, when local address comprises the data of correspondence, then obtains data corresponding in local address so that mobile terminal is carried outAfter the pre-cache of data, it is no longer necessary to when user re-uses obtain additionally by mixed-media network modules mixed-media networking, therefore is effectively saved movementThe electricity of terminal and the flow of saving wireless telecommunications, the scope of application simultaneously also making caching function is wider.
Further scheme is, if local address does not comprise the data of correspondence, then turns to the actual address of network requestObtain data.
Further scheme is, turns to local address to include the network request of application program: by the net of application programNetwork server address in network request address replaces with the local address of local built-in server.
Therefore, then to Network Capture data when there is no a corresponding data in this locality, and after data are carried out pre-cache, whenWhen user needs the content of viewer applications, the data that the request address of this content is corresponding pass through pre-cache and download and protectBeing stored in caching, therefore by the replacement of network server address and local address, i.e. being cached by reading just can promptly logarithmBrowse according to content, as cache contents does not exists, go to obtain data normally through network..
Further scheme is, also includes: judge whether mobile terminal is in preset state before starting application program,If then backstage starts application program;If application program does not has caching mechanism, then by the network request of application program by built-inServer forwards and intercepts the data received;The data that storage receives are to local address.
Further scheme is, preset state include following at least one: mobile terminal is in breath screen state, moveDynamic terminal accesses the Internet by WiFi, and the electricity of mobile terminal reaches preset value, and mobile terminal is in charged state, mobile wholeEnd is in preset period of time.
Therefore, under mobile terminal is in preset state, then system automatically opens up relevant default application program, makesThe application program that must preset is at running background, and makes this application program preset download relevant preset data to cachingIn so that user is when using the application of mobile terminal, it is possible to reduce the waiting time browsed, user can read more gliblyReading browses, and when carrying out the pre-cache of data under WiFi connection status, user is no longer necessary in use additionally by network mouldBlock networking obtains, therefore is effectively saved the electricity of mobile terminal and saves the flow of wireless telecommunications, owing to certain applications do not have phaseThe caching mechanism answered, therefore system can carry out judging and being forwarded and intercepted the data received by built-in server so that formerOriginally the application not having caching mechanism still can carry out the pre-cache of data, and its suitability is wide.
In order to realize the second object of the present invention, the present invention provides at the control device of a kind of mobile terminal, including forThe memorizer of storage program and for performing the processor of program, wherein, processor is used for performing to start application program, judging shouldWhether there is caching mechanism by program and the network request of application program is turned to local address;If local address comprises the number of correspondenceAccording to, processor is additionally operable to obtain data corresponding in local address.
From such scheme, when judging that application program has caching mechanism, the network request of application program is turned toLocal address, when local address comprises the data of correspondence, then obtains data corresponding in local address so that mobile terminal is carried outAfter the pre-cache of data, it is no longer necessary to when user re-uses obtain additionally by mixed-media network modules mixed-media networking, therefore is effectively saved movementThe electricity of terminal and the flow of saving wireless telecommunications, the scope of application simultaneously also making caching function is wider.
Accompanying drawing explanation
Fig. 1 is the flow chart of pre-cache embodiment of the method for the present invention.
Fig. 2 is the flow chart of pre-cache step in pre-cache embodiment of the method for the present invention.
Fig. 3 is the flow chart using step in pre-cache embodiment of the method for the present invention.
Fig. 4 is the system block diagram of pre-cache device embodiment of the present invention.
Below in conjunction with drawings and Examples, the invention will be further described.
Detailed description of the invention
It is the flow chart of pre-cache method of the present invention with reference to Fig. 1, Fig. 1.Step S1 is first carried out, i.e. setting steps, arrangesStep includes screen setting steps, set of time step, updates interval setting steps, deletion setting, electricity consumption setting steps, networkSetting steps, application program setting steps and curriculum offering step, wherein, screen setting steps includes that being arranged on breath screen state existsCarrying out pre-cache, set of time step includes being arranged on such as 0 o'clock to 7 o'clock time period of preset time period or 11 o'clock to 12 o'clock time periodsCarry out pre-cache, update interval setting steps and include that being arranged on preset interval time is updated and inside the Pass re-request download mutuallyHolding, deletion setting includes arranging deletes old content according to Preset Time, and to empty related cache space, electricity arranges stepSuddenly include arranging and carry out pre-cache in the charge state and carry out pre-cache, network settings again in the case of meeting default electricityStep includes that being arranged on the networks such as WiFi network connection status and/or 4G, 3G, 2G carries out pre-cache application program setting, applicationProgram setting steps includes that arranging which application program needs to carry out pre-cache is made without pre-cache with which application program,Curriculum offering step includes, to needing the pre-cache content carrying out the application program of pre-cache to be configured, i.e. arranging which contentNeed to carry out pre-cache, as the content of application homepage is carried out pre-cache or high to subscription, concern or the click frequency of applicationContent carries out pre-cache.
Perform subsequently to judge to move whether be in preset state, specifically include: whether mobile terminal is in breath screen state, moveWhether dynamic terminal accesses the Internet by WiFi, and whether the electricity of mobile terminal reaches preset value, and whether mobile terminal is in is filledElectricity condition, whether mobile terminal is in preset period of time.
Mobile terminal is in breath screen state, mobile terminal accesses the Internet by WiFi, the electricity of mobile terminal reaches pre-If value, mobile terminal are in charged state, mobile terminal is in preset period of time, mobile terminal is in above-mentioned preset stateAt least one, then perform step S2, perform pre-cache step.
It is the flow chart of pre-cache step with reference to Fig. 2, Fig. 2, step S21 is first carried out, opens default application program, subsequentlyPerform step S22, it is judged that whether the default application program opened exists caching mechanism, and the default application program as opened does not existsCaching mechanism, then perform step S23, arrange and preset the caching that application program associates, i.e. service at the built-in http of system, and openWard off relevant spatial cache, the network request of application program is forwarded and intercepted the data received by built-in server, soRear execution step S24, downloads and stores the data received to local address, owing to being provided with the content needing pre-cache, thereforeThe host address acquisition data of the request address url that the content of pre-cache is corresponding as required, and these data are downloaded and preservedIn corresponding caching, also carry out preserving stand-by by request address corresponding for these data simultaneously.Such as the default application program openedThere is caching mechanism, then application can have been used self to have had caching mechanism, and perform step S24.
It is the flow chart using step with reference to Fig. 3, Fig. 3, after pre-cache step S2 is finished, performs step S3, i.e.Perform to use step.Step S31 is first carried out, starts application program, and the content that object browse is read is clicked on, and clicks on justCorresponding network request can be obtained, perform step S32 subsequently, find corresponding data cached, subsequently of network request in the bufferPerform step S33, it is judged that whether local address exists corresponding data cached of network request, as existed, then perform stepS34, obtains data corresponding in local address, and judges whether application program has caching mechanism, the most then by application programNetwork request turns to local address, and is replaced with in this locality by the network server address in the network request address of application programBuild the local address of server, for there is no the application of caching mechanism, the host address of the networking request url of application is replaced toLocal built-in http address of service, completes then by the data cached application program being back to correspondence.As caching in the most notThere is corresponding data cached of request address, then perform step S35, turn to the actual address of network request to obtain data, i.e. fromReal request address is applied to go to obtain data by the Internet.Finally performing step S36, display corresponding contents browses for userRead.
But, the step in above-described embodiment can carry out selecting to perform according to practical situation under many circumstances, andAccording to practical situation executed in parallel, can arrange when using first such as setting steps rather than operation is intended to arrange every time, arrangeSetting steps, direct pre-cache step it is no longer needed for after Hao.And for example screen state judge step, electricity consumption condition adjudgement step andWiFi its execution sequence of connection judgment step can be have multiple, as long as meeting the screen state, with electricity condition and WiFi even presetConnect one of them in the preset state such as state and just can perform pre-cache step.
Pre-cache device embodiment:
Being pre-cache apparatus system block diagram with reference to Fig. 4, Fig. 4, and combine above-mentioned pre-cache embodiment of the method, pre-cache device includesFor storing the memorizer 12 of program and for performing the processor 11 of program, processor 11 includes arranging module 111, judging mouldBlock 112, startup module 113, cache module 114, download module 115, searching module 116, return module 117 and display module118.Arrange module 111 for perform arrange screen settings, set of time, renewal interval arrange, delete arrange, electricity consumption setting,Network settings, application program are arranged and curriculum offering, it is judged that module 112 is used for judging whether mobile terminal is in preset state,Preset state include following at least one: mobile terminal is in breath screen state, mobile terminal by WiFi access the Internet,The electricity of mobile terminal reaches preset value, and mobile terminal is in charged state, and mobile terminal is in preset period of time.
Processor is additionally operable to perform pre-cache, specifically, starts module 113 and is used for starting application program and being opened by backstageDynamic application program, cache module 114 is used for judging whether application program has caching mechanism, cache module 114 to be additionally operable to applyThe network request of program is forwarded by built-in server and is intercepted the data received, and download module 114 receives for storageData to local address.
Find module 116 for obtaining the network request of application program and finding corresponding the delaying of network request in the bufferDeposit data, and find module 116 and be additionally operable to judge whether local address comprises the data of correspondence, return module 117 is used for obtainingTake data corresponding in local address and the network server address in the network request address of application program is replaced with this localityThe local address of built-in server, download module 115 obtains data, display module for turning to the actual address of network request118 are used for showing that corresponding contents is for user's brose and reading.
Therefore, when judging that application program has caching mechanism, the network request of application program is turned to locallyLocation, when local address comprises the data of correspondence, then obtains data corresponding in local address so that mobile terminal carries out dataAfter pre-cache, it is no longer necessary to when user re-uses obtain additionally by mixed-media network modules mixed-media networking, therefore is effectively saved mobile terminalElectricity and the flow of saving wireless telecommunications, the scope of application simultaneously also making caching function is wider.

Claims (10)

CN201610481713.3A2016-06-232016-06-23Pre-cache method and device thereofPendingCN106201736A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610481713.3ACN106201736A (en)2016-06-232016-06-23Pre-cache method and device thereof

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610481713.3ACN106201736A (en)2016-06-232016-06-23Pre-cache method and device thereof

Publications (1)

Publication NumberPublication Date
CN106201736Atrue CN106201736A (en)2016-12-07

Family

ID=57461343

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610481713.3APendingCN106201736A (en)2016-06-232016-06-23Pre-cache method and device thereof

Country Status (1)

CountryLink
CN (1)CN106201736A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106777266A (en)*2016-12-282017-05-31重庆可兰达科技有限公司A kind of method for representing rate of being spread its tail based on pre-cache lifting client
CN107491320A (en)*2017-06-262017-12-19北京五八信息技术有限公司Loading method and device based on mixed mode Mobile solution
CN108391306A (en)*2018-01-262018-08-10维沃移动通信有限公司A kind of charging method and mobile terminal
CN110225136A (en)*2019-06-242019-09-10维沃移动通信有限公司A kind of offline cache method and mobile terminal
CN112163231A (en)*2020-09-172021-01-01北京一人一亩田网络科技有限公司Method and device for automatically packaging pre-cached data by iOS application, electronic equipment and computer readable medium
CN113329051A (en)*2021-04-202021-08-31海南视联大健康智慧医疗科技有限公司Data acquisition method and device and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104778172A (en)*2014-01-102015-07-15腾讯科技(深圳)有限公司Prefetching processing method and device of web information, and corresponding web browsing device
CN105208127A (en)*2015-10-092015-12-30上海瀚银信息技术有限公司Webpage caching processing method and system and intelligent terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN104778172A (en)*2014-01-102015-07-15腾讯科技(深圳)有限公司Prefetching processing method and device of web information, and corresponding web browsing device
CN105208127A (en)*2015-10-092015-12-30上海瀚银信息技术有限公司Webpage caching processing method and system and intelligent terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106777266A (en)*2016-12-282017-05-31重庆可兰达科技有限公司A kind of method for representing rate of being spread its tail based on pre-cache lifting client
CN106777266B (en)*2016-12-282020-05-15重庆可兰达科技有限公司Method for improving display rate of client screen opening based on pre-caching
CN107491320A (en)*2017-06-262017-12-19北京五八信息技术有限公司Loading method and device based on mixed mode Mobile solution
CN108391306A (en)*2018-01-262018-08-10维沃移动通信有限公司A kind of charging method and mobile terminal
CN110225136A (en)*2019-06-242019-09-10维沃移动通信有限公司A kind of offline cache method and mobile terminal
CN110225136B (en)*2019-06-242021-05-07维沃移动通信有限公司Offline caching method and mobile terminal
CN112163231A (en)*2020-09-172021-01-01北京一人一亩田网络科技有限公司Method and device for automatically packaging pre-cached data by iOS application, electronic equipment and computer readable medium
CN113329051A (en)*2021-04-202021-08-31海南视联大健康智慧医疗科技有限公司Data acquisition method and device and readable storage medium

Similar Documents

PublicationPublication DateTitle
CN106201736A (en)Pre-cache method and device thereof
CN110096660A (en)Method, apparatus and electronic equipment for loading page picture
US9826052B2 (en)Web page content loading control method and device
RU2615057C2 (en)Method and device for access to web-page and router
CN106599239A (en)Webpage content data acquisition method and server
CN112559927B (en)Webpage loading method and device
US20070078964A1 (en)Method of providing content to a mobile web browsing device
CN103338249B (en)Caching method and device
JP3451981B2 (en) Internet homepage data collection method
US9071665B2 (en)Method, device and system for obtaining rich media files
CN105760405A (en)Methods and devices for obtaining network resource for loading web page and method and device for caching network resource
CN102769641B (en)The methods of exhibiting of a kind of web page contents Self Adaptive Control and system
CN101159764A (en)Method and system to access door data of mobile service
CN101404024B (en)Mobile terminal and method for browsing website contents through mobile terminal
CN103023941A (en)Terminal application program updating method and system based on Web page
CN103810176A (en)Pre-fetching accessing method and device of webpage information
CN107291913A (en)HTML webpage loading method and device
CN102750291A (en)User customized analysis device, communication terminal, and method and system for internet access thereof
CN102591887B (en)Network data pre-head method and system
CN101957842A (en)Webpage cache control method, device and system based on WebKit browser
CN103095840A (en)Advertisement loading method used for mobile terminal
US20160006828A1 (en)Embedded network proxy system, terminal device and proxy method
CN102546674A (en)Directory tree caching system and method based on network storage device
CN104778172A (en)Prefetching processing method and device of web information, and corresponding web browsing device
CN106131309B (en)Skin changing method, skin changing device and skin changing system

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20161207

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp