CN105897559B - A kind of control method and mobile terminal of HTML5 application - Google Patents
A kind of control method and mobile terminal of HTML5 application Download PDFInfo
- Publication number
- CN105897559B CN105897559B CN201610344819.9A CN201610344819A CN105897559B CN 105897559 B CN105897559 B CN 105897559B CN 201610344819 A CN201610344819 A CN 201610344819A CN 105897559 B CN105897559 B CN 105897559B
- Authority
- CN
- China
- Prior art keywords
- html5
- condition code
- push
- html5 application
- mobile terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/063—Content adaptation, e.g. replacement of unsuitable content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/214—Monitoring or handling of messages using selective forwarding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
Abstract
The present invention relates to the communications fields, disclose a kind of control method of HTML5 application, comprising: obtain the push condition code of the HTML5 application, the push condition code is used to open or close the push function of the HTML5 application;Judge whether the push condition code obtained is identical as the push condition code of mobile terminal local;If it is not, closing the push function of the HTML5 application according to the push condition code of acquisition.Another aspect of the present invention discloses a kind of mobile terminal, is controlled according to the above method.The present invention can close the PUSH message or advertising function for closing HTML5 application, improve the usage experience of user.
Description
Technical field
The control method and mobile terminal applied the present invention relates to the communications field more particularly to a kind of HTML5.
Background technique
The existing mobile terminal manufacturer consideration lightening for mobile terminal, the expansible storage of mobile terminal is connect
Mouthful, if SD (Secure Digital, secure digital) card slot is saved from mobile phone, so that the storage of mobile terminal is empty
Between be extremely restricted.And with mobile-terminal platform application becoming increasingly abundant, how by the storage volume of existing application into
Row effectively control becomes vast application vendor focus of attention.
More popular method includes that the tradition of mobile terminal is replaced with saving using (hereinafter referred to as locally applied) at present
The web application in space, such as HTML5 (Hyper Text Markup Language 5, the hypertext markup language of the 5th revision
Speech) application, HTML5 applies the application page opened on network by mobile terminal local browser, and loads using required group
Part realizes the normal function of application, saves the memory space of mobile terminal local, however, nowadays HTML5 application also with
It is locally applied equally can be to user's PUSH message and advertisement, the strong influence usage experience of user.
Summary of the invention
The present invention provides the control methods and mobile terminal of a kind of HTML5 application, to solve HTML5 in the prior art
Using PUSH message and advertisement, the problem of affecting user experience.
On the one hand the embodiment of the present invention provides a kind of control method of HTML5 application, be applied to mobile terminal, comprising:
The push condition code of the HTML5 application is obtained, the push condition code is answered for opening or closing the HTML5
Push function;
Judge whether the push condition code obtained is identical as the push condition code of mobile terminal local;
If it is not, closing the push function of the HTML5 application according to the push condition code of acquisition.
On the other hand, the embodiment of the invention also provides a kind of mobile terminals, comprising:
First obtains module, and for obtaining the push condition code of the HTML5 application, the push condition code is for opening
Or close the push function of the HTML5 application;
First judgment module, the push condition code and the push condition code of mobile terminal local for judging to obtain are
It is no identical;
Closedown module, it is special for the push condition code of the HTML5 application in acquisition and the push of mobile terminal local
When sign code is not identical, according to the push condition code of acquisition, the push function of the HTML5 application is closed.
The push condition code that the embodiment of the present invention is applied by obtaining HTML5, acquisition modes may include from network service
Device is obtained or is obtained by way of sharing between mobile terminal, and the push function of HTML5 application is closed by push condition code
Can, the usage experience of user is improved, meanwhile, the embodiment of the present invention also passes through the push condition code that will acquire and mobile terminal
The local push condition code deposited is compared, and when comparison result difference, closes HTML5 using the push condition code of acquisition and answers
Push function, so that user can also timely obtain even if HTML5 application vendor constantly replaces the closedown condition of push function
Newest push condition code is taken, the PUSH message or advertising function of HTML5 application is closed, improves the usage experience of user.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the flow diagram of the first embodiment of control method of the present invention;
Fig. 2 is the flow diagram of the second embodiment of control method of the present invention;
Fig. 3 is the flow diagram of the 3rd embodiment of control method of the present invention;
Fig. 4 is the block diagram of the first embodiment of mobile terminal of the present invention;
Fig. 5 is the block diagram of the second embodiment of mobile terminal of the present invention;
Fig. 6 is the block diagram of the 3rd embodiment of mobile terminal of the present invention;
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.
Specific embodiment
In order to which the technical problems, technical solutions and beneficial effects solved by the present invention is more clearly understood, below in conjunction with
Accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
First embodiment
Referring to FIG. 1, being the flow diagram of the first embodiment of control method of the invention.The control method is applied to
Mobile terminal, including S101-S103:
S101, obtains the push condition code of HTML5 application, and push condition code is used to open or close pushing away for HTML5 application
Send function.
In the present embodiment, mobile terminal manufacturer can carry out analysis of experiments to all kinds of HTML5 application, each to find out
HTML5 applies corresponding push condition code, and push condition code can realize the push function for closing corresponding HTML5 application, to help
It helps mobile terminal user to shield the advertisement pushing function of HTML5 application, saves running of mobile terminal resource, and prevent user right
It answers HTML5 application to bother, improves the usage experience of user.
The acquisition modes of the present embodiment may include obtaining from network, and mobile terminal manufacturer can be by providing personalization
To realize the acquisition of push condition code, the frequency of acquisition can be fixed cycle acquisition for system platform or application component, can also be with
It is that user obtains manually.Illustratively, user can be applied by searching for correlation HTML5 in system platform or application component, with
Obtain the corresponding push condition code of HTML5 application.In addition, user can also pass through local area network, bluetooth, infrared, circle of friends etc.
Mode is realized to be shared with other people.
S102 judges whether the push condition code obtained is identical as the push condition code of mobile terminal local.
In the present embodiment, when the push condition code of acquisition is identical as the push condition code of mobile terminal local, judgement
The push function of current HTML5 application has been switched off, or push condition code does not update temporarily, can pop up corresponding prompt informing and use
Family.Wherein, local push condition code is obtained by the last time, and the mode of acquisition can refer to the corresponding explanation of S101.
S103, if it is not, closing the push function of HTML5 application according to the push condition code of acquisition.
When the push condition code of acquisition is identical as the push condition code of mobile terminal local, mobile terminal use is got
Push condition code close the push function of HTML5 application, as a kind of preferred embodiment, the push condition code that can will acquire
It is updated to mobile terminal local.
The push condition code that the embodiment of the present invention is applied by obtaining HTML5, acquisition modes may include from network service
Device is obtained or is obtained by way of sharing between mobile terminal, and the push function of HTML5 application is closed by push condition code
Can, the usage experience of user is improved, meanwhile, the embodiment of the present invention also passes through the push condition code that will acquire and mobile terminal
The local push condition code deposited is compared, and when comparison result difference, closes HTML5 using the push condition code of acquisition and answers
Push function, so that user can also timely obtain even if HTML5 application vendor constantly replaces the closedown condition of push function
Newest push condition code is taken, the PUSH message or advertising function of HTML5 application is closed, improves the usage experience of user.
Second embodiment
Referring to FIG. 2, being the flow diagram of the second embodiment of control method of the invention.It is real compared to above-mentioned first
Example is applied, present embodiments provides a kind of control method of higher HTML5 application of frequency of use, the present embodiment is according to user couple
The operation instruction of HTML5 application, the partial page that intelligence chooses HTML5 are locally stored, and access respective page in user
When, from locally reading and opening, reduce the data traffic consumption of mobile terminal, when shortening the waiting of user when the page is opened
Between, improve the usage experience of user.The control method includes S201-S211:
S201, obtains the push condition code of HTML5 application, and push condition code is used to open or close pushing away for HTML5 application
Send function.
S202 judges whether the push condition code obtained is identical as the push condition code of mobile terminal local.
S203, if it is not, closing the push function of HTML5 application according to the push condition code of acquisition.
S201-S203 is identical as the correspondence step of first embodiment, and which is not described herein again.
S204 receives the operation instruction for opening HTML5 application.
In the present embodiment, operation instruction is used to open HTML5 application, and operation instruction specifically can be clicking operation, cunning
It is dynamic to operate, every empty gesture operation or voice operating etc..
S205 judges that accessing network is free nets or payment networks, and free nets include wifi network, payment networks packet
Include mobile data network.
Due to realizing that the function of HTML5 application usually requires to network, when HTML5 application is opened, can determine whether when Forward
The network type of the access of dynamic terminal.Above-mentioned mobile data network includes the 2G/3G/4G network of major operator.
S206, according to the operation instruction that user applies HTML5, obtains HTML5 application if access network is paid for network
Load time, access times and the data traffic of each page.
Since the network speed of existing part payment networks such as 2G/3G network is slower, 4G network is in specific occasion (subway, electricity
Magnetic signal strongly area, near such as substation, pylon) the problem of there is also signal differences, and data traffic directly influences user
Rate, in order to shorten user the page load when waiting time, save the network rate of user, when user access payment net
When network, mobile terminal can record the page for the HTML5 application that user accessed and load time, the access times of each page
And data traffic, and carry out cumulative statistics.
S207 determines that HTML5 applies the frequency of use in payment networks according to access times.
S208, judges whether frequency of use is greater than the first preset threshold.
In the present embodiment, mobile terminal can determine that user opens HTML5 application by the access times in a period of time
Frequency, when frequency of use is high, illustrating common application that the HTML5 applies for user under payment networks, (common application is logical
Often include speculate in shares, call a taxi, map, music application etc.).Need to judge whether to store the web page contents of the common application.
S209, if so, according to load time and data traffic, determine and store HTML5 application to memory page.
In the present embodiment, when the load time of some page and larger data traffic, judge the page of HTML5 application
Face there may be affect user experience, consumed flow rate the case where, at this point, by the page be determined as HTML5 application
To memory page, and stored.
As a kind of specific embodiment, step S209 can be with are as follows: judges X=a (b1+b2+……+bmWhether)/m is greater than
Second preset threshold,
Wherein, a is the data traffic of HTML5 application page, unit MB, bmFor the m times load of HTML5 application page
Time, unit s;
If so, storage HTML5 application to memory page.
S210 receives the opening operation for treating memory page.
S211 reads from local and opens to memory page.
When user is next time, opening HTML5 was applied when memory page, mobile terminal can read from local and open this
To memory page, in the present embodiment, the content of pages to memory page may include a variety of classifications, as page pictures, text,
Hyperlink and functional unit, and can selectively be read according to the difference of storage classification, in the same page, renewal frequency is higher
Classification can be downloaded from network, other classifications are then from local reading, illustratively, HTML5 music class application in ranking list data,
Market data in stock reference, the coast is clear real time data in map application, speed limit data can be downloaded from network, in order to
User understands latest news.
Due to being without the use of excessive Internet resources when memory page from local read, so that the embodiment of the present invention saves
The network rate of user improve the page open speed of HTML5 application, meanwhile, the HTML5 application in the embodiment of the present invention
Too many memory space will not be occupied, is the page of the common application of user to memory page, the individual demand of user can be met,
The be of little use page, the smaller page or the faster page of load can be obtained directly from network, improve the usage experience of user.
3rd embodiment
Referring to FIG. 3, being the flow diagram of the 3rd embodiment of control method of the invention.It is real compared to above-mentioned first
Example is applied, a kind of control method using frequency when lower is present embodiments provided, it can be in user to locally applied use
When frequency is lower, applied for the locally applied corresponding HTML5 of user's push, to save the local storage space of mobile terminal.
The control method includes S301-S306:
S301 obtains locally applied frequency of use.
In the present embodiment, the locally applied tradition application mentioned in background technique, it is involved in this embodiment
Frequency of use can be the access times in relatively long time, as user makes locally applied in one month or a season
Use number.When mobile terminal memory space inadequate, or execution rubbish cleaning can carry out the acquisition operation.
S302, judges whether frequency of use is less than third predetermined threshold value.
When frequency of use is less than third predetermined threshold value, illustrate that the locally applied frequency of use is lower.
S303, if so, prompt user is changed to HTML5 application for locally applied.
When locally applied frequency of use is lower, user is prompted by display dialog box and option button, if incite somebody to action this
Ground application be changed to HTML5 application, to save mobile terminal memory space, the dialog box can integrate in the first embodiment be
It unites in platform or application component.After user installation HTML5 application, S304 is executed.
S304, obtains the push condition code of HTML5 application, and push condition code is used to open or close pushing away for HTML5 application
Send function.
S305 judges whether the push condition code obtained is identical as the push condition code of mobile terminal local.
S306, if it is not, closing the push function of HTML5 application according to the push condition code of acquisition.
S304-S306 is identical as the correspondence step of first embodiment, and which is not described herein again.
The present embodiment is by judging locally applied frequency of use, when frequency of use is lower, prompts user will
Locally applied to be changed to HTML5 application, under the premise of not affecting user experience as far as possible, the storage for saving mobile terminal is empty
Between, improve the usage experience of user.
The control method of HTML5 application of the invention is discussed in detail above.It will correspond to the above method below
Mobile terminal is further elaborated.Wherein, mobile terminal can be mobile phone, tablet computer, MP3, MP4 or laptop etc..
Fourth embodiment
Referring to FIG. 4, being the structural schematic diagram of the first embodiment of mobile terminal of the invention, for realizing the above method
First embodiment in control method.Mobile terminal 100 includes the first acquisition module 110, first judgment module 120 and closes
Module 130.
Wherein, first module 110 is obtained, is connect with first judgment module 120, the push for obtaining HTML5 application is special
Code is levied, push condition code is used to open or close the push function of HTML5 application.
In the present embodiment, mobile terminal manufacturer can carry out analysis of experiments to all kinds of HTML5 application, each to find out
HTML5 applies corresponding push condition code, and push condition code can realize the push function for closing corresponding HTML5 application, to help
It helps mobile terminal user to shield the advertisement pushing function of HTML5 application, saves running of mobile terminal resource, and prevent user right
It answers HTML5 application to bother, improves the usage experience of user.
The acquisition modes of the present embodiment may include obtaining from network, and mobile terminal manufacturer can be by providing personalization
To realize the acquisition of push condition code, the frequency of acquisition can be fixed cycle acquisition for system platform or application component, can also be with
It is that user obtains manually.Illustratively, user can be applied by searching for correlation HTML5 in system platform or application component, with
Obtain the corresponding push condition code of HTML5 application.In addition, user can also pass through local area network, bluetooth, infrared, circle of friends etc.
Mode is realized to be shared with other people.
First judgment module 120 is connect with closedown module 130, push condition code and mobile terminal for judging to obtain
Whether local push condition code is identical.
In the present embodiment, when the push condition code of acquisition is identical as the push condition code of mobile terminal local, judgement
The push function of current HTML5 application has been switched off, or push condition code does not update temporarily, can pop up corresponding prompt informing and use
Family.Wherein, local push condition code is obtained by the last time, and the correspondence that the mode of acquisition can refer to the first acquisition module 110 is said
It is bright.
Closedown module 130, for the push condition code of the HTML5 application in acquisition and the push feature of mobile terminal local
When code is not identical, according to the push condition code of acquisition, the push function of HTML5 application is closed.
When the push condition code of acquisition is identical as the push condition code of mobile terminal local, mobile terminal use is got
Push condition code close the push function of HTML5 application, as a kind of preferred embodiment, the push condition code that can will acquire
It is updated to mobile terminal local.
The push condition code that the embodiment of the present invention is applied by obtaining HTML5, acquisition modes may include from network service
Device is obtained or is obtained by way of sharing between mobile terminal, and the push function of HTML5 application is closed by push condition code
Can, the usage experience of user is improved, meanwhile, the embodiment of the present invention also passes through the push condition code that will acquire and mobile terminal
The local push condition code deposited is compared, and when comparison result difference, closes HTML5 using the push condition code of acquisition and answers
Push function, so that user can also timely obtain even if HTML5 application vendor constantly replaces the closedown condition of push function
Newest push condition code is taken, the PUSH message or advertising function of HTML5 application is closed, improves the usage experience of user.
5th embodiment
Referring to FIG. 5, being the structural schematic diagram of the 5th embodiment of mobile terminal of the invention, for realizing the above method
Second embodiment in control method.Compared to above-mentioned first embodiment, it is higher to present embodiments provide a kind of frequency of use
HTML5 application mobile terminal, the operation instruction that the present embodiment apply HTML5 according to user, intelligence selection HTML5 portion
Paging face is locally stored, and when user accesses respective page, from locally reading and opening, reduces the number of mobile terminal
It is consumed according to flow, shortens the waiting time of user when the page is opened, improve the usage experience of user.Mobile terminal 200 wraps
It includes the first acquisition module 2010, first judgment module 2020, closedown module 2030, the first receiving module 2040, second judge mould
Block 2050, second obtains module 2060, the first determining module 2070, third judgment module 2080, the second determining module 2090, the
Two receiving modules 2100 and opening module 2110.
Wherein, first module 2010 is obtained, is connect with first judgment module 2020, for obtaining the push of HTML5 application
Condition code, push condition code are used to open or close the push function of HTML5 application.
First judgment module 2020 is connect with closedown module 2030, and the push condition code and movement for judging to obtain are eventually
Hold local push condition code whether identical.
Closedown module 2030, it is special for the push condition code of the HTML5 application in acquisition and the push of mobile terminal local
When sign code is not identical, according to the push condition code of acquisition, the push function of HTML5 application is closed.
First acquisition module 2010, first judgment module 2020 and closedown module 2030 are corresponding with above-mentioned fourth embodiment
Module is identical, and which is not described herein again.
First receiving module 2040 is connect with the second judgment module 2050, and the operation for receiving opening HTML5 application refers to
Show.
In the present embodiment, operation instruction is used to open HTML5 application, and operation instruction specifically can be clicking operation, cunning
It is dynamic to operate, every empty gesture operation or voice operating etc..
Second judgment module 2050, with second acquisition module 2060 connect, for judge access network be free nets or
Payment networks, free nets include wifi network, and payment networks include mobile data network.
Due to realizing that the function of HTML5 application usually requires to network, when HTML5 application is opened, can determine whether when Forward
The network type of the access of dynamic terminal.Above-mentioned mobile data network includes the 2G/3G/4G network of major operator.
Second obtain module 2060, connect with the first determining module 2070, for when access network be paid for network when, root
According to the operation instruction that user applies HTML5, load time, access times and data traffic that HTML5 applies each page are obtained.
Since the network speed of existing part payment networks such as 2G/3G network is slower, 4G network is in specific occasion (subway, electricity
Magnetic signal strongly area, near such as substation, pylon) the problem of there is also signal differences, and data traffic directly influences user
Rate, in order to shorten user the page load when waiting time, save the network rate of user, when user access payment net
When network, mobile terminal can record the page for the HTML5 application that user accessed and load time, the access times of each page
And data traffic, and carry out cumulative statistics.
First determining module 2070, connect with third judgment module 2080, for determining that HTML5 is answered according to access times
Used in the frequency of use of payment networks.
Third judgment module 2080 is connect with the second determining module 2090, for judging whether frequency of use is greater than first
Preset threshold.
In the present embodiment, mobile terminal can determine that user opens HTML5 application by the access times in a period of time
Frequency, when frequency of use is high, illustrating common application that the HTML5 applies for user under payment networks, (common application is logical
Often include speculate in shares, call a taxi, map, music application etc.).Need to judge whether to store the web page contents of the common application.
Second determining module 2090 is used for when frequency of use is greater than the first preset threshold, according to load time and data
Flow, determine and store HTML5 application to memory page.
In the present embodiment, when the load time of some page and larger data traffic, judge the page of HTML5 application
Face there may be affect user experience, consumed flow rate the case where, at this point, by the page be determined as HTML5 application
To memory page, and stored.
As a kind of specific embodiment, the second determining module 2090 includes judging unit 2091 and storage unit 2092.
Wherein, judging unit 2091 are connect with storage unit 2092, for judging X=a (b1+b2+……+bmWhether)/m
Greater than the second preset threshold,
Wherein, a is the data traffic of HTML5 application page, unit MB, bmFor the m times load of HTML5 application page
Time, unit s;
Storage unit 2092, for when X be greater than the second preset threshold when, storage HTML5 application to memory page.
Second receiving module 2100, connect with opening module 2110, for receiving the opening operation for treating memory page.
Opening module 2110, for reading and being opened to memory page from local.
When user is next time, opening HTML5 was applied when memory page, mobile terminal can read from local and open this
To memory page, in the present embodiment, the content of pages to memory page may include a variety of classifications, as page pictures, text,
Hyperlink and functional unit, and can selectively be read according to the difference of storage classification, in the same page, renewal frequency is higher
Classification can be downloaded from network, other classifications are then from local reading, illustratively, HTML5 music class application in ranking list data,
Market data in stock reference, the coast is clear real time data in map application, speed limit data can be downloaded from network, in order to
User understands latest news.
Due to being without the use of excessive Internet resources when memory page from local read, so that the embodiment of the present invention saves
The network rate of user improve the page open speed of HTML5 application, meanwhile, the HTML5 application in the embodiment of the present invention
Too many memory space will not be occupied, is the page of the common application of user to memory page, the individual demand of user can be met,
The be of little use page, the smaller page or the faster page of load can be obtained directly from network, improve the usage experience of user.
Sixth embodiment
Referring to FIG. 6, being the structural schematic diagram of the sixth embodiment of mobile terminal of the invention, for realizing the above method
3rd embodiment in control method.Compared to above-mentioned first embodiment, one kind is present embodiments provided using frequency
Mobile terminal when lower can push locally applied corresponding when user is lower to locally applied frequency of use for user
HTML5 application, to save the local storage space of mobile terminal.Mobile terminal 300 includes that third obtains module the 310, the 4th
Judgment module 320, cue module 330, first obtain module 340, first judgment module 350 and closedown module 360.
Third obtains module 310, connect with the 4th judgment module 320, for obtaining locally applied frequency of use.
In the present embodiment, the locally applied tradition application mentioned in background technique, it is involved in this embodiment
Frequency of use can be the access times in relatively long time, as user makes locally applied in one month or a season
Use number.When mobile terminal memory space inadequate, or execution rubbish cleaning can carry out the acquisition operation.
4th judgment module 320 is connect with cue module 330, presets threshold for judging whether frequency of use is less than third
Value.
When frequency of use is less than third predetermined threshold value, illustrate that the locally applied frequency of use is lower.
Cue module 330 is connect, for mentioning when frequency of use is less than third predetermined threshold value with the first acquisition module 340
Show that user is changed to HTML5 application for locally applied.
When locally applied frequency of use is lower, user is prompted by display dialog box and option button, if incite somebody to action this
Ground application be changed to HTML5 application, to save mobile terminal memory space, the dialog box can integrate in the first embodiment be
It unites in platform or application component.After user installation HTML5 application, first is called to obtain module 340.
First obtains module 340, connect with first judgment module 350, for obtaining the push condition code of HTML5 application,
Push condition code is used to open or close the push function of HTML5 application.
First judgment module 350 is connect with closedown module 360, push condition code and mobile terminal for judging to obtain
Whether local push condition code is identical.
Closedown module 360, for the push condition code of the HTML5 application in acquisition and the push feature of mobile terminal local
When code is not identical, according to the push condition code of acquisition, the push function of HTML5 application is closed.
First obtains module 340, the respective modules phase of first judgment module 350 and closedown module 360 and fourth embodiment
Together, which is not described herein again.
The present embodiment is by judging locally applied frequency of use, when frequency of use is lower, prompts user will
Locally applied to be changed to HTML5 application, under the premise of not affecting user experience as far as possible, the storage for saving mobile terminal is empty
Between, improve the usage experience of user.
7th embodiment
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 7 includes: at least
One processor 701, memory 702, at least one network interface 704 and other users interface 703.In mobile terminal 700
Various components are coupled by bus system 705.It is understood that bus system 705 is for realizing the company between these components
Connect letter.Bus system 705 further includes power bus, control bus and status signal bus in addition in addition to including data/address bus.But
It is that various buses are all designated as bus system 705 in Fig. 7 for the sake of clear explanation.
Wherein, user interface 703 may include key, various acceleration transducers, especially gravity sensor and gyro
Instrument.
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 702 of system and method described herein be intended to include but be not limited to these and
The memory of any other suitable type.
In some embodiments, memory 702 stores following element, and module or number can be performed in preset threshold
According to structure perhaps their subset or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media
Player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize embodiment of the present invention side
The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application
The program or instruction stored in program 7022, the push that processor 701 is used to obtain HTML5 application by network interface 704 are special
Code is levied, push condition code is used to open or close the push function of HTML5 application;Judge the push condition code obtained and movement eventually
Hold local push condition code whether identical;In the push of push condition code and mobile terminal local that the HTML5 of acquisition is applied
When condition code is not identical, according to the push condition code of acquisition, the push function of HTML5 application is closed.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701.
Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.
Above-mentioned processor 701 can be general processor, digital signal processor
(DigitalSignalProcessor, DSP), specific integrated circuit (ApplicationSpecific
IntegratedCircui t AS IC), ready-made programmable gate array (FieldProgrammableGateArray, FPGA) or
Person other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute sheet
Disclosed each method, step and logic diagram in inventive embodiments.General processor can be microprocessor or the processing
Device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in
Hardware decoding processor executes completion, or in decoding processor hardware and software module combination execute completion.Software mould
Block can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage
In the storage medium of this fields such as device, register maturation.The storage medium is located at memory 702, and processor 701 reads memory
Information in 702, in conjunction with the step of its hardware completion above method.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor
(DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device
(ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray,
FPGA), general processor, controller, microcontroller, microprocessor, other electric units for executing herein described function
Or combinations thereof in.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, as another embodiment, processor 701 receives the behaviour for opening HTML5 application by user interface 703
It indicates;Judgement access network is free nets or payment networks, and the free nets include wifi network, the payment networks
Including mobile data network;If the access network is paid for network, processor 701 applies the HTML5 according to user
Operation instruction obtains load time, access times and data traffic that the HTML5 applies each page;And according to the access
Number determines that the HTML5 applies the frequency of use in payment networks;Judge whether the frequency of use is greater than the first default threshold
Value;If so, according to the load time and the data traffic, determine and store the HTML5 application to memory page.
Optionally, as another embodiment, processor 701 is also used to judge X=a (b1+b2+……+bmWhether)/m is big
In the second preset threshold, wherein a is the data traffic of HTML5 application page, unit MB, bmFor HTML5 application page m
Secondary load time, unit S;If so, store HTML5 application to memory page.
Optionally, as another embodiment, processor 701, which is also used to receive, grasps the unlatching to memory page
Make;It reads and opens described to memory page from local storage 702.
Optionally, as another embodiment, processor 701 is also used to obtain locally applied frequency of use;Judge institute
State whether frequency of use is less than third predetermined threshold value;If so, prompt user locally applied be changed to described the HTML5 and answer
With.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.The push condition code that the embodiment of the present invention is applied by obtaining HTML5, acquisition modes may include from network service
Device is obtained or is obtained by way of sharing between mobile terminal, and the push function of HTML5 application is closed by push condition code
Can, the usage experience of user is improved, meanwhile, the embodiment of the present invention also passes through the push condition code that will acquire and mobile terminal
The local push condition code deposited is compared, and when comparison result difference, closes HTML5 using the push condition code of acquisition and answers
Push function, so that user can also timely obtain even if HTML5 application vendor constantly replaces the closedown condition of push function
Newest push condition code is taken, the PUSH message or advertising function of HTML5 is closed, improves the usage experience of user.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed mobile terminal and control method, it can be with
It realizes by another way.For example, the embodiment of mobile terminal described above is only schematical, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk
Etc. the various media that can store program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (8)
1. a kind of control method of HTML5 application, is applied to mobile terminal characterized by comprising
The push condition code of the HTML5 application is obtained, the push condition code is used to open or close the HTML5 application
Push function;
Judge whether the push condition code obtained is identical as the push condition code of mobile terminal local;
If it is not, closing the push function of the HTML5 application according to the push condition code of acquisition;
Receive the operation instruction for opening HTML5 application;
Judgement access network is free nets or payment networks, and the free nets include wifi network, the payment networks packet
Include mobile data network;
If the access network is paid for network, according to the operation instruction that user applies the HTML5, the HTML5 is obtained
Using the load time of each page, access times and data traffic;
According to the access times, determine that the HTML5 applies the frequency of use in payment networks;
Judge whether the frequency of use is greater than the first preset threshold;
If so, according to the load time and the data traffic, determine and store the HTML5 application to memory page.
2. control method as described in claim 1, which is characterized in that described according to the load time and the data flow
Amount, determine and store HTML5 application to memory page the step of, comprising:
Judge X=a (b1+b2+……+bmWhether)/m is greater than the second preset threshold,
Wherein, a is the data traffic of HTML5 application page, unit MB, bmFor the m times load time of HTML5 application page,
Unit is s;
If so, store HTML5 application to memory page.
3. control method as claimed in claim 2, which is characterized in that if so, according to the load time and the data flow
Amount, determine and store HTML5 application to memory page the step of after, further includes:
It receives to the opening operation to memory page;
It is described to memory page from locally reading and opening.
4. control method as described in claim 1, which is characterized in that in the push feature for obtaining the HTML5 application
Before the step of code, the push condition code is used to open or close the push function of the HTML5 application, further includes:
Obtain locally applied frequency of use;
Judge whether the frequency of use is less than third predetermined threshold value;
If so, prompt user locally applied be changed to described the HTML5 and apply.
5. a kind of mobile terminal, which is characterized in that further include:
First obtains module, and for obtaining the push condition code of HTML5 application, the push condition code is for opening or closing institute
State the push function of HTML5 application;
First judgment module, the push condition code of the push condition code and mobile terminal local for judging to obtain whether phase
Together;
Closedown module, for the push condition code of the HTML5 application in acquisition and the push condition code of mobile terminal local
When not identical, according to the push condition code of acquisition, the push function of the HTML5 application is closed;First receiving module is used
In the operation instruction for receiving opening HTML5 application;
Second judgment module, for judging that access network is free nets or payment networks, the free nets include wifi network
Network, the payment networks include mobile data network;
Second obtains module, the operation for being applied to the HTML5 according to user when the access network is paid for network
Instruction obtains load time, access times and data traffic that the HTML5 applies each page;
First determining module, for determining that the HTML5 applies the frequency of use in payment networks according to the access times;
Third judgment module, for judging whether the frequency of use is greater than the first preset threshold;
Second determining module, for when the frequency of use is greater than the first preset threshold, according to load time and described
Data traffic, determine and store HTML5 application to memory page.
6. mobile terminal as claimed in claim 5, which is characterized in that second determining module, comprising:
Judging unit, for judging X=a (b1+b2+……+bmWhether)/m is greater than the second preset threshold,
Wherein, a is the data traffic of HTML5 application page, unit MB, bmFor the m times load time of HTML5 application page,
Unit is s;
Storage unit, for when X is greater than the second preset threshold, store HTML5 application to memory page.
7. mobile terminal as claimed in claim 6, which is characterized in that further include:
Second receiving module, for receiving to the opening operation to memory page;
Opening module, for described to memory page from locally reading and opening.
8. mobile terminal as claimed in claim 5, which is characterized in that further include:
Third obtains module, for obtaining locally applied frequency of use;
4th judgment module, for judging whether the frequency of use is less than third predetermined threshold value;
Cue module, for prompting user by the locally applied replacement when the frequency of use is less than third predetermined threshold value
For HTML5 application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610344819.9A CN105897559B (en) | 2016-05-20 | 2016-05-20 | A kind of control method and mobile terminal of HTML5 application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610344819.9A CN105897559B (en) | 2016-05-20 | 2016-05-20 | A kind of control method and mobile terminal of HTML5 application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105897559A CN105897559A (en) | 2016-08-24 |
CN105897559B true CN105897559B (en) | 2019-01-29 |
Family
ID=56717549
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610344819.9A Active CN105897559B (en) | 2016-05-20 | 2016-05-20 | A kind of control method and mobile terminal of HTML5 application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105897559B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107241439B (en) * | 2017-07-24 | 2020-06-02 | 北京小米移动软件有限公司 | Message pushing method and device for H5 page |
CN108733428B (en) * | 2018-05-10 | 2021-06-25 | Oppo广东移动通信有限公司 | Screen display control method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571872A (en) * | 2010-12-30 | 2012-07-11 | 芯讯通无线科技(上海)有限公司 | Device and method for pushing video advertisement to mobile phone |
CN103460674A (en) * | 2011-02-11 | 2013-12-18 | 良好科技公司 | Method, apparatus and system for provisioning a push notification session |
CN103501486A (en) * | 2013-09-29 | 2014-01-08 | 华为软件技术有限公司 | Message pushing method and pushing server |
CN104349288A (en) * | 2013-07-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Message transmission method and device |
CN105354492A (en) * | 2015-10-16 | 2016-02-24 | 珠海格力电器股份有限公司 | Mobile communication terminal, message notification control method and device thereof |
CN105491539A (en) * | 2014-09-18 | 2016-04-13 | 博雅网络游戏开发(深圳)有限公司 | Message push management method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9992268B2 (en) * | 2012-09-27 | 2018-06-05 | Oracle International Corporation | Framework for thin-server web applications |
-
2016
- 2016-05-20 CN CN201610344819.9A patent/CN105897559B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571872A (en) * | 2010-12-30 | 2012-07-11 | 芯讯通无线科技(上海)有限公司 | Device and method for pushing video advertisement to mobile phone |
CN103460674A (en) * | 2011-02-11 | 2013-12-18 | 良好科技公司 | Method, apparatus and system for provisioning a push notification session |
CN104349288A (en) * | 2013-07-25 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Message transmission method and device |
CN103501486A (en) * | 2013-09-29 | 2014-01-08 | 华为软件技术有限公司 | Message pushing method and pushing server |
CN105491539A (en) * | 2014-09-18 | 2016-04-13 | 博雅网络游戏开发(深圳)有限公司 | Message push management method and device |
CN105354492A (en) * | 2015-10-16 | 2016-02-24 | 珠海格力电器股份有限公司 | Mobile communication terminal, message notification control method and device thereof |
Non-Patent Citations (1)
Title |
---|
HTML5技术与应用模式研究;李慧云;《电信科学》;20120531(第5期);全文 |
Also Published As
Publication number | Publication date |
---|---|
CN105897559A (en) | 2016-08-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7013466B2 (en) | Application data processing methods, equipment, and computer programs | |
CN103095840B (en) | A kind of advertisement loading method for mobile terminal | |
CN108228305A (en) | Display methods, device, storage medium and the electronic equipment of five application page | |
CN109933760A (en) | List generation method, device, computer equipment and computer readable storage medium | |
CN109960539A (en) | Application program preloads method, apparatus, storage medium and mobile terminal | |
CN103809730A (en) | Low-power-consumption wearable equipment system | |
CN108334608A (en) | Link generation method, device, storage medium and the electronic equipment of five application page | |
CN107889203A (en) | A kind of electricity saving method, device, computer installation and computer-readable recording medium | |
CN107943534B (en) | Background application program closing method and device, storage medium and electronic equipment | |
CN109947495A (en) | Application program preloads method, apparatus, storage medium and mobile terminal | |
CN101656789A (en) | Method for managing application information of mobile phone and application manager | |
CN102982044A (en) | Method and device for webpage browsing | |
CN105512251A (en) | Page cache method and device | |
CN108549568A (en) | Using entrance processing method, apparatus, storage medium and electronic equipment | |
CN105897559B (en) | A kind of control method and mobile terminal of HTML5 application | |
CN106060899A (en) | Flow control method and device | |
CN107515907B (en) | The display methods and device of browser page | |
CN106547628A (en) | Multi-system resource release method and device | |
CN106933822A (en) | A kind of content recommendation method and device | |
CN103678393B (en) | The method and apparatus for obtaining information | |
CN111104153A (en) | Software management method, system and storage medium | |
CN107608744B (en) | Application process management method and device and mobile terminal | |
CN103634470A (en) | Human-computer interaction prediction method based on terminal mobile data access network Qos | |
CN101667121A (en) | Feature phone secondary development method and device | |
CN101420490A (en) | Data reading method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |