CN105897559A - Control method for HTML5 (Hyper Text Markup Language 5) application and mobile terminal - Google Patents

Control method for HTML5 (Hyper Text Markup Language 5) application and mobile terminal Download PDF

Info

Publication number
CN105897559A
CN105897559A CN201610344819.9A CN201610344819A CN105897559A CN 105897559 A CN105897559 A CN 105897559A CN 201610344819 A CN201610344819 A CN 201610344819A CN 105897559 A CN105897559 A CN 105897559A
Authority
CN
China
Prior art keywords
html5
application
propelling movement
condition code
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.)
Granted
Application number
CN201610344819.9A
Other languages
Chinese (zh)
Other versions
CN105897559B (en
Inventor
王兆丰
洪杰鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610344819.9A priority Critical patent/CN105897559B/en
Publication of CN105897559A publication Critical patent/CN105897559A/en
Application granted granted Critical
Publication of CN105897559B publication Critical patent/CN105897559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/214Monitoring or handling of messages using selective forwarding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of communications, and discloses a control method for an HTML5 (Hyper Text Markup Language 5) application. The method comprises the following steps: acquiring a push feature code of the HTML5 application, wherein the push feature code is used for enabling or disabling a push function of the HTML5 application; judging whether the acquired push feature code is the same as a local push feature code of a mobile terminal or not; and if so, disabling the push function of the HTML5 application according to the acquired push feature code. On the other hand, the invention discloses a mobile terminal for performing control according to the method. A message or advertisement push function of the HTML5 application can be disabled, so that the user experience is improved.

Description

The control method of a kind of HTML5 application and mobile terminal
Technical field
The present invention relates to the communications field, particularly relate to control method and the mobile terminal of a kind of HTML5 application.
Background technology
Existing mobile terminal manufacturer is for the lightening consideration of mobile terminal, expanding mobile terminal Exhibition memory interface, as SD (Secure Digital, secure digital) draw-in groove saves with mobile phone Go so that the memory space of mobile terminal is extremely restricted.And along with the day of mobile-terminal platform application Benefit is abundant, and how the storage volume of existing application being control effectively becomes vast application vendor and pay close attention to Focus.
The most popular method includes replacing tradition application (the most locally applied) of mobile terminal Be changed to save space-efficient web application, as HTML5 (Hyper Text Markup Language 5, the The HTML of five revisions) application, HTML5 application is beaten by mobile terminal this locality browser Open the application page on network, and load application required component, it is achieved that the normal function of application, save The memory space that mobile terminal is local, but, nowadays HTML5 application also can as locally applied To user's PUSH message and advertisement, the strong influence experience of user.
Summary of the invention
The invention provides control method and the mobile terminal of a kind of HTML5 application, in order to solve existing skill HTML5 application PUSH message and advertisement in art, the problem affecting user's experience.
On the one hand the embodiment of the present invention provides a kind of HTML5 control method applied, and is applied to mobile terminal, Including:
Obtaining the propelling movement condition code of described HTML5 application, described propelling movement condition code is used for being turned on and off institute State the push function of HTML5 application;
Judge that the described propelling movement condition code obtained is the most identical with the propelling movement condition code of mobile terminal this locality;
If it is not, according to the described propelling movement condition code obtained, close the push function of described HTML5 application.
On the other hand, the embodiment of the present invention additionally provides a kind of mobile terminal, including:
First acquisition module, for obtaining the propelling movement condition code of described HTML5 application, described propelling movement feature Code is for being turned on and off the push function of described HTML5 application;
First judge module, for judging the propelling movement of described propelling movement condition code and the mobile terminal this locality obtained Condition code is the most identical;
Close module, local with mobile terminal for the propelling movement condition code in the described HTML5 application obtained Propelling movement condition code when differing, according to the described propelling movement condition code obtained, close described HTML5 application Push function.
The embodiment of the present invention by obtain HTML5 application propelling movement condition code, acquisition mode can include from The webserver obtains or obtains by the way of sharing between mobile terminal, and closes by pushing condition code Closing the push function of HTML5 application, improve the experience of user, meanwhile, the embodiment of the present invention is also By the propelling movement got condition code is compared with the propelling movement condition code that mobile terminal this locality has been deposited, when During comparison result difference, the propelling movement condition code obtained is used to close the push function of HTML5 application so that Even if HTML5 application vendor constantly changes the closedown condition of push function, user also can obtain the most timely New propelling movement condition code, closes PUSH message or the advertising function of HTML5 application, improves making of user With experience.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work Under premise, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the first embodiment of control method of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of control method of the present invention;
Fig. 3 is the schematic flow sheet 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.
Detailed description of the invention
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearer, Below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that this place The specific embodiment described, only in order to explain the present invention, is not intended to limit the present invention.
First embodiment
Refer to Fig. 1, be the schematic flow sheet of the first embodiment of the control method of the present invention.This control Method is applied to mobile terminal, including S101-S103:
S101, obtains the propelling movement condition code of HTML5 application, pushes condition code and is used for being turned on and off HTML5 The push function of application.
In the present embodiment, mobile terminal manufacturer can carry out analysis of experiments to all kinds of HTML5 application, with Just find out the propelling movement condition code that each HTML5 application is corresponding, push condition code and can realize closing corresponding HTML5 The push function of application, in order to help the advertisement pushing function of mobile phone users shielding HTML5 application, Save running of mobile terminal resource, and prevent user from being bothered by corresponding HTML5 application, improve making of user With experience.
The acquisition mode of the present embodiment can include that, from Network Capture, mobile terminal manufacturer can be by providing Personalized system platform or application assembly are to realize pushing the acquisition of condition code, and the frequency of acquisition can be Fixed cycle obtains, it is also possible to be that user manually obtains.Exemplary, user can be by system platform Or search relevant HTML5 application on application assembly, the correspondence applied to obtain this HTML5 pushes condition code. It addition, user can also by the modes such as LAN, bluetooth, infrared, circle of friends realize with other people point Enjoy.
S102, it is judged that the propelling movement condition code of acquisition is the most identical with the propelling movement condition code of mobile terminal this locality.
In the present embodiment, identical when the propelling movement condition code that the propelling movement condition code obtained is local with mobile terminal Time, it is judged that the push function of current HTML5 application has been switched off, or propelling movement condition code does not updates temporarily, Corresponding prompting can be ejected and inform user.Wherein, local propelling movement condition code was obtained by the last time, acquisition Mode refers to the corresponding explanation of S101.
S103, if it is not, according to the propelling movement condition code obtained, close the push function of HTML5 application.
When the propelling movement condition code that the propelling movement condition code obtained is local with mobile terminal is identical, mobile terminal makes The push function of HTML5 application is closed by the propelling movement condition code got, as a kind of preferred embodiment, Can be local to mobile terminal by the propelling movement signature update obtained.
The embodiment of the present invention by obtain HTML5 application propelling movement condition code, acquisition mode can include from The webserver obtains or obtains by the way of sharing between mobile terminal, and closes by pushing condition code Closing the push function of HTML5 application, improve the experience of user, meanwhile, the embodiment of the present invention is also By the propelling movement got condition code is compared with the propelling movement condition code that mobile terminal this locality has been deposited, when During comparison result difference, the propelling movement condition code obtained is used to close the push function of HTML5 application so that Even if HTML5 application vendor constantly changes the closedown condition of push function, user also can obtain the most timely New propelling movement condition code, closes PUSH message or the advertising function of HTML5 application, improves making of user With experience.
Second embodiment
Refer to Fig. 2, be the schematic flow sheet of the second embodiment of the control method of the present invention.Compared to Above-mentioned first embodiment, present embodiments provides a kind of controlling party using the HTML5 that frequency is higher to apply Method, the operation instruction that HTML5 is applied by the present embodiment according to user, intelligence chooses the partial page of HTML5 Face carries out locally stored, and when user accesses respective page, reads from this locality and open, and decreases shifting The data traffic consumption of dynamic terminal, shortens the waiting time of user when the page is opened, improves user's Experience.This control method includes S201-S211:
S201, obtains the propelling movement condition code of HTML5 application, pushes condition code and is used for being turned on and off HTML5 The push function of application.
S202, it is judged that the propelling movement condition code of acquisition is the most identical with the propelling movement condition code of mobile terminal this locality.
S203, if it is not, according to the propelling movement condition code obtained, close the push function of HTML5 application.
S201-S203 is identical with the corresponding step of first embodiment, repeats no more here.
S204, receives the operation instruction opening HTML5 application.
In the present embodiment, operation instruction is used for opening HTML5 application, and operation instruction can be specifically a little Hit operation, slide, every empty gesture operation or voice operating etc..
S205, it is judged that access network is free nets or payment networks, and free nets includes wifi network, Payment networks includes mobile data network.
Networking is typically required owing to realizing the function of HTML5 application, when HTML5 application is opened, can Judge the network type of the access of current mobile terminal.Above-mentioned mobile data network includes Ge great operator 2G/3G/4G network.
S206, if access network is paid for network, the operation instruction applied HTML5 according to user, obtains Take the HTML5 application load time of each page, access times and data traffic.
Owing to the network speed of existing part payment networks such as 2G/3G network is relatively slow, 4G network is in specific occasion (subway, electromagnetic signal district strongly, as near transformer station, electricity tower) there is also the problem of signal difference, And data traffic directly influences the rate of user, during in order to shorten user's wait when the page loads Between, save the network rate of user, when user accesses payment networks, the recordable user of mobile terminal visits The page of the HTML5 application asked, and the load time of each page, access times and data traffic, And carry out cumulative statistics.
S207, according to access times, determines that HTML5 applies the use frequency at payment networks.
S208, it is judged that use frequency whether more than the first predetermined threshold value.
In the present embodiment, by the access times in a period of time, mobile terminal can determine that user opens The frequency of HTML5 application, when using frequency height, illustrates that this HTML5 application is that user is at payment networks Under conventional application (conventional application generally include speculation in stocks, call a taxi, map, music application etc.).Need Judge whether to store the web page contents of this conventional application.
S209, if so, according to load time and data traffic, determine and store HTML5 application wait deposit The storage page.
In the present embodiment, when load time of certain page and data traffic are bigger, it is judged that HTML5 This page of application there may be user's experience, the situation of consumed flow rate of affecting, and now, incites somebody to action This page is defined as the page to be stored of HTML5 application, and stores.
As a kind of detailed description of the invention, step S209 can be: judges X=a (b1+b2+……+bm)/m Whether more than the second predetermined threshold value,
Wherein, a is the data traffic of the HTML5 application page, and unit is MB, bmFor HTML5 applications pages The load time that face is the m time, unit is s;
If so, the page to be stored of storage HTML5 application.
S210, receives the unlatching operation treating memory page.
S211, reads from this locality and opens the page to be stored.
When user is when opening the page to be stored of HTML5 application next time, and mobile terminal can read from this locality And open this page to be stored, in the present embodiment, the content of pages of the page to be stored can include multiple Classification, such as page pictures, word, hyperlink and functional unit, and can have according to the difference of storage classification The reading selected, in the same page, the classification that renewal frequency is higher can be downloaded from network, and other classifications are then Read from this locality, exemplary, during the ranking list data in the application of HTML5 music class, stock are quoted The coast is clear real time data, speed limit data in market data, map application can be downloaded from network, in order to Hot information is understood in user.
Owing to being not required to use too much Internet resources when reading the page to be stored from this locality so that the present invention implements Example saves the network rate of user, improve HTML5 application page open speed, meanwhile, this HTML5 application in bright embodiment also will not take too many memory space, and it is normal that the page to be stored is user With the page of application, the individual demand of user can be met, the page that is of little use, the less page or loading The page can improve the experience of user directly from Network Capture faster.
3rd embodiment
Refer to Fig. 3, be the schematic flow sheet of the 3rd embodiment of the control method of the present invention.Compared to Above-mentioned first embodiment, present embodiments provides control method when a kind of application uses frequency relatively low, can User to locally applied use frequency relatively low time, the HTML5 pushing locally applied correspondence for user should With, in order to save the locally stored space of mobile terminal.This control method includes S301-S306:
S301, obtains locally applied use frequency.
In the present embodiment, locally applied for tradition application mentioned in background technology, in the present embodiment Involved use frequency can be the access times in relatively long time, such as one month or a season Interior user is to locally applied access times.When mobile terminal memory space inadequate, or perform garbage-cleaning This acquisition operation can be carried out.
S302, it is judged that use frequency whether less than the 3rd predetermined threshold value.
When using frequency less than three predetermined threshold value, illustrate that this locally applied use frequency is relatively low.
S303, if so, prompting user is replaced by HTML5 application by locally applied.
When locally applied use frequency is relatively low, by display dialog box and OptionButton prompting user, Whether being replaced by HTML5 application by locally applied, to save mobile terminal memory space, this dialog box can In integrated system platform in the first embodiment or application assembly.After user installation HTML5 is applied, Perform S304.
S304, obtains the propelling movement condition code of HTML5 application, pushes condition code and is used for being turned on and off HTML5 The push function of application.
S305, it is judged that the propelling movement condition code of acquisition is the most identical with the propelling movement condition code of mobile terminal this locality.
S306, if it is not, according to the propelling movement condition code obtained, close the push function of HTML5 application.
S304-S306 is identical with the corresponding step of first embodiment, repeats no more here.
The present embodiment, by judging locally applied use frequency, when using frequency relatively low, carries Show that user is replaced by HTML5 application by locally applied, on the premise of not affecting user's experience as far as possible, Save the memory space of mobile terminal, improve the experience of user.
The control method applied the HTML5 of the present invention above has been made to be discussed in detail.Will correspond to below The mobile terminal stating method is further elaborated.Wherein, mobile terminal can be mobile phone, panel computer, MP3, MP4 or notebook computer etc..
4th embodiment
Refer to Fig. 4, be the structural representation of the first embodiment of the mobile terminal of the present invention, for real Control method in the first embodiment of existing said method.Mobile terminal 100 includes the first acquisition module 110, the first judge module 120 and closedown module 130.
Wherein, the first acquisition module 110, it is connected with the first judge module 120, is used for obtaining HTML5 The propelling movement condition code of application, pushes condition code for being turned on and off 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, with Just find out the propelling movement condition code that each HTML5 application is corresponding, push condition code and can realize closing corresponding HTML5 The push function of application, in order to help the advertisement pushing function of mobile phone users shielding HTML5 application, Save running of mobile terminal resource, and prevent user from being bothered by corresponding HTML5 application, improve making of user With experience.
The acquisition mode of the present embodiment can include that, from Network Capture, mobile terminal manufacturer can be by providing Personalized system platform or application assembly are to realize pushing the acquisition of condition code, and the frequency of acquisition can be Fixed cycle obtains, it is also possible to be that user manually obtains.Exemplary, user can be by system platform Or search relevant HTML5 application on application assembly, the correspondence applied to obtain this HTML5 pushes condition code. It addition, user can also by the modes such as LAN, bluetooth, infrared, circle of friends realize with other people point Enjoy.
First judge module 120, is connected with closing module 130, for judging the propelling movement condition code obtained The propelling movement condition code local with mobile terminal is the most identical.
In the present embodiment, identical when the propelling movement condition code that the propelling movement condition code obtained is local with mobile terminal Time, it is judged that the push function of current HTML5 application has been switched off, or propelling movement condition code does not updates temporarily, Corresponding prompting can be ejected and inform user.Wherein, local propelling movement condition code was obtained by the last time, acquisition Mode refers to the corresponding explanation of the first acquisition module 110.
Close module 130, local with mobile terminal for the propelling movement condition code in the HTML5 application obtained Propelling movement condition code when differing, according to the propelling movement condition code obtained, close the propelling movement merit of HTML5 application Energy.
When the propelling movement condition code that the propelling movement condition code obtained is local with mobile terminal is identical, mobile terminal makes The push function of HTML5 application is closed by the propelling movement condition code got, as a kind of preferred embodiment, Can be local to mobile terminal by the propelling movement signature update obtained.
The embodiment of the present invention by obtain HTML5 application propelling movement condition code, acquisition mode can include from The webserver obtains or obtains by the way of sharing between mobile terminal, and closes by pushing condition code Closing the push function of HTML5 application, improve the experience of user, meanwhile, the embodiment of the present invention is also By the propelling movement got condition code is compared with the propelling movement condition code that mobile terminal this locality has been deposited, when During comparison result difference, the propelling movement condition code obtained is used to close the push function of HTML5 application so that Even if HTML5 application vendor constantly changes the closedown condition of push function, user also can obtain the most timely New propelling movement condition code, closes PUSH message or the advertising function of HTML5 application, improves making of user With experience.
5th embodiment
Refer to Fig. 5, be the structural representation of the 5th embodiment of the mobile terminal of the present invention, for real Control method in second embodiment of existing said method.Compared to above-mentioned first embodiment, the present embodiment Providing a kind of mobile terminal using the HTML5 that frequency is higher to apply, the present embodiment is according to user couple The operation instruction of HTML5 application, intelligence chooses the partial page of HTML5 and carries out locally stored, and with When family accesses respective page, read from this locality and open, decreasing the data traffic consumption of mobile terminal, Shorten the waiting time of user when the page is opened, improve the experience of user.Mobile terminal 200 Including first acquisition module the 2010, first judge module 2020, close module the 2030, first reception mould Block the 2040, second judge module 2050, the second acquisition module 2060, first determine module 2070, Three judge modules 2080, second determine module the 2090, second receiver module 2100 and opening module 2110.
Wherein, the first acquisition module 2010, it is connected with the first judge module 2020, is used for obtaining HTML5 The propelling movement condition code of application, pushes condition code for being turned on and off the push function of HTML5 application.
First judge module 2020, is connected with closing module 2030, for judging the propelling movement feature obtained Code is the most identical with the propelling movement condition code of mobile terminal this locality.
Close module 2030, local with mobile terminal for the propelling movement condition code in the HTML5 application obtained Propelling movement condition code when differing, according to the propelling movement condition code obtained, close the propelling movement merit of HTML5 application Energy.
First acquisition module the 2010, first judge module 2020 and closedown module 2030 are real with the above-mentioned 4th The respective modules executing example is identical, repeats no more here.
First receiver module 2040, is connected with the second judge module 2050, opens HTML5 for reception The operation instruction of application.
In the present embodiment, operation instruction is used for opening HTML5 application, and operation instruction can be specifically a little Hit operation, slide, every empty gesture operation or voice operating etc..
Second judge module 2050, is connected with the second acquisition module 2060, is used for judging that access network is Free nets or payment networks, free nets includes that wifi network, payment networks include mobile data network Network.
Networking is typically required owing to realizing the function of HTML5 application, when HTML5 application is opened, can Judge the network type of the access of current mobile terminal.Above-mentioned mobile data network includes Ge great operator 2G/3G/4G network.
With first, second acquisition module 2060, determines that module 2070 is connected, be used for when access network is to pay When taking network, operation instruction HTML5 applied according to user, obtain HTML5 and apply adding of each page Load time, access times and data traffic.
Owing to the network speed of existing part payment networks such as 2G/3G network is relatively slow, 4G network is in specific occasion (subway, electromagnetic signal district strongly, as near transformer station, electricity tower) there is also the problem of signal difference, And data traffic directly influences the rate of user, during in order to shorten user's wait when the page loads Between, save the network rate of user, when user accesses payment networks, the recordable user of mobile terminal visits The page of the HTML5 application asked, and the load time of each page, access times and data traffic, And carry out cumulative statistics.
First determines module 2070, is connected with the 3rd judge module 2080, is used for according to access times, Determine that HTML5 applies the use frequency at payment networks.
With second, 3rd judge module 2080, determines that module 2090 is connected, be used for judging that use frequency is No it is more than the first predetermined threshold value.
In the present embodiment, by the access times in a period of time, mobile terminal can determine that user opens The frequency of HTML5 application, when using frequency height, illustrates that this HTML5 application is that user is at payment networks Under conventional application (conventional application generally include speculation in stocks, call a taxi, map, music application etc.).Need Judge whether to store the web page contents of this conventional application.
Second determines module 2090, for when using frequency more than the first predetermined threshold value, according to when loading Between and data traffic, determine and store HTML5 application the page to be stored.
In the present embodiment, when load time of certain page and data traffic are bigger, it is judged that HTML5 This page of application there may be user's experience, the situation of consumed flow rate of affecting, and now, incites somebody to action This page is defined as the page to be stored of HTML5 application, and stores.
As a kind of detailed description of the invention, second determines that module 2090 includes judging unit 2091 and storage Unit 2092.
Wherein, it is judged that unit 2091, it is connected with memory element 2092, is used for judging X=a (b1+b2+……+bmWhether)/m is more than the second predetermined threshold value,
Wherein, a is the data traffic of the HTML5 application page, and unit is MB, bmFor HTML5 applications pages The load time that face is the m time, unit is s;
Memory element 2092, for when X is more than the second predetermined threshold value, what storage HTML5 applied waits to deposit The storage page.
Second receiver module 2100, is connected with opening module 2110, treats memory page for receiving Open operation.
Opening module 2110, for reading from this locality and opening the page to be stored.
When user is when opening the page to be stored of HTML5 application next time, and mobile terminal can read from this locality And open this page to be stored, in the present embodiment, the content of pages of the page to be stored can include multiple Classification, such as page pictures, word, hyperlink and functional unit, and can have according to the difference of storage classification The reading selected, in the same page, the classification that renewal frequency is higher can be downloaded from network, and other classifications are then Read from this locality, exemplary, during the ranking list data in the application of HTML5 music class, stock are quoted The coast is clear real time data, speed limit data in market data, map application can be downloaded from network, in order to Hot information is understood in user.
Owing to being not required to use too much Internet resources when reading the page to be stored from this locality so that the present invention implements Example saves the network rate of user, improve HTML5 application page open speed, meanwhile, this HTML5 application in bright embodiment also will not take too many memory space, and it is normal that the page to be stored is user With the page of application, the individual demand of user can be met, the page that is of little use, the less page or loading The page can improve the experience of user directly from Network Capture faster.
Sixth embodiment
Refer to Fig. 6, be the structural representation of the sixth embodiment of the mobile terminal of the present invention, for real Control method in 3rd embodiment of existing said method.Compared to above-mentioned first embodiment, the present embodiment Provide mobile terminal when a kind of application uses frequency relatively low, can be user to locally applied use frequency When rate is relatively low, push the HTML5 application of locally applied correspondence for user, in order to save the basis of mobile terminal Ground memory space.Mobile terminal 300 includes the 3rd acquisition module the 310, the 4th judge module 320, carries Show module the 330, first acquisition module the 340, first judge module 350 and close module 360.
3rd acquisition module 310, is connected with the 4th judge module 320, for obtaining locally applied making Use frequency.
In the present embodiment, locally applied for tradition application mentioned in background technology, in the present embodiment Involved use frequency can be the access times in relatively long time, such as one month or a season Interior user is to locally applied access times.When mobile terminal memory space inadequate, or perform garbage-cleaning This acquisition operation can be carried out.
4th judge module 320, is connected with reminding module 330, is used for judging to use whether frequency is less than 3rd predetermined threshold value.
When using frequency less than three predetermined threshold value, illustrate that this locally applied use frequency is relatively low.
Reminding module 330, is connected with the first acquisition module 340, for when using frequency pre-less than the 3rd If during threshold value, prompting user is replaced by HTML5 application by locally applied.
When locally applied use frequency is relatively low, by display dialog box and OptionButton prompting user, Whether being replaced by HTML5 application by locally applied, to save mobile terminal memory space, this dialog box can In integrated system platform in the first embodiment or application assembly.After user installation HTML5 is applied, Call the first acquisition module 340.
First acquisition module 340, is connected with the first judge module 350, for obtaining HTML5 application Push condition code, push condition code for being turned on and off the push function of HTML5 application.
First judge module 350, is connected with closing module 360, for judging the propelling movement condition code obtained The propelling movement condition code local with mobile terminal is the most identical.
Close module 360, local with mobile terminal for the propelling movement condition code in the HTML5 application obtained Propelling movement condition code when differing, according to the propelling movement condition code obtained, close the propelling movement merit of HTML5 application Energy.
First acquisition module the 340, first judge module 350 and close module 360 and the 4th embodiment Respective modules is identical, repeats no more here.
The present embodiment, by judging locally applied use frequency, when using frequency relatively low, carries Show that user is replaced by HTML5 application by locally applied, on the premise of not affecting user's experience as far as possible, Save the memory space of mobile terminal, improve the experience of user.
7th embodiment
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal shown in Fig. 7 700 include: at least one processor 701, memorizer 702, at least one network interface 704 and other User interface 703.Each assembly in mobile terminal 700 is coupled by bus system 705. It is understood that bus system 705 is for realizing the connection communication between these assemblies.Bus system 705 is removed Outside data/address bus, also include power bus, control bus and status signal bus in addition.But in order to For the sake of clear explanation, in the figure 7 various buses are all designated as bus system 705.
Wherein, user interface 703 can include that button, various acceleration transducer, especially gravity pass Sensor and gyroscope.
The memorizer 702 being appreciated that in the embodiment of the present invention can be volatile memory or non-volatile Property memorizer, maybe can include volatibility and nonvolatile memory.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 Read Only Memory (ElectricallyEPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as Static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), Double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), Enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links are dynamic Random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory (DirectRambusRAM, DRRAM).The memorizer 702 of system and method described herein is intended to include But it is not limited to these and the memorizer of other applicable type any.
In some embodiments, memorizer 702 stores following element, predetermined threshold value, can perform Module or data structure, or their subset, or their superset: operating system 7021 With application program 7022.
Wherein, operating system 7021, comprise various system program, such as ccf layer, core library layer, drive Dynamic layers etc., are used for realizing various basic business and processing hardware based task.Application program 7022, Comprise various application program, such as media player (MediaPlayer), browser (Browser) etc., For realizing various applied business.The program realizing embodiment of the present invention method may be embodied in application program In 7022.
It is in embodiments of the present invention, by calling program or the instruction of memorizer 702 storage, concrete, Can be program or the instruction of storage in application program 7022, processor 701 be used for passing through network interface The 704 propelling movement condition codes obtaining HTML5 application, push condition code and are used for being turned on and off HTML5 application Push function;Judge the propelling movement condition code whether phase of propellings movement condition code and the mobile terminal this locality obtained With;The propelling movement condition code local with mobile terminal in the propelling movement condition code of the HTML5 application obtained differs Time, according to the propelling movement condition code obtained, close the push function of HTML5 application.
The method that the invention described above embodiment discloses can apply in processor 701, or by processor 701 realize.Processor 701 is probably a kind of IC chip, has the disposal ability of signal.? During realization, each step of said method can be by the integration logic electricity of the hardware in processor 701 The instruction of road or software form completes.
Above-mentioned processor 701 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), special IC (ApplicationSpecific IntegratedCircui t AS IC), ready-made programmable gate array (FieldProgrammableGateArray, Or other PLDs, discrete gate or transistor logic, discrete hardware components FPGA).Can To realize or to perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General place The reason processor etc. that device can be microprocessor or this processor can also be any routine.In conjunction with this The step of the method disclosed in bright embodiment can be embodied directly in hardware decoding processor and perform, or Hardware and software module combination execution in person's decoding processor complete.Software module may be located at random Memorizer, flash memory, read only memory, programmable read only memory or electrically erasable programmable memorizer, In the storage medium that this areas such as depositor are ripe.This storage medium is positioned at memorizer 702, processor 701 Read the information in memorizer 702, complete the step of said method in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, centre Part, microcode or a combination thereof realize.Realizing for hardware, processing unit can be implemented in one or more Special IC (ApplicationSpecificIntegratedCircuits, ASIC), numeral letter Number processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD), field programmable gate Array (Field-ProgrammableGateArray, FPGA), general processor, controller, micro-control Device processed, microprocessor, for performing in other electric unit or a combination thereof of herein described function.
Software is realized, can be come by the module (such as process, function etc.) performing function described herein Realize the techniques described herein.Software code is storable in performing in memorizer and by processor.Storage Device can within a processor or realize outside processor.
Alternatively, as another embodiment, processor 701 is received by user interface 703 and opens The operation instruction of HTML5 application;Judge that access network is free nets or payment networks, described freenet Network includes that wifi network, described payment networks include mobile data network;If described access network is to pay Take network, the operation instruction that described HTML5 is applied according to user by processor 701, obtain described HTML5 Apply the load time of each page, access times and data traffic;And according to described access times, determine Described HTML5 applies the use frequency at payment networks;Judge that described use frequency is the most pre-more than first If threshold value;If so, according to described load time and described data traffic, determine and store described HTML5 The page to be stored of application.
Optionally, as another embodiment, processor 701 is additionally operable to judge X=a (b1+b2+……+bmWhether)/m is more than the second predetermined threshold value, and wherein, a is HTML5 applications pages The data traffic in face, unit is MB, bmFor the load time of the HTML5 application page the m time, unit For S;If so, the page to be stored of described HTML5 application is stored.
Optionally, as another embodiment, processor 701 is additionally operable to receive the described page to be stored Unlatching operation;Read and open the described page to be stored from local storage 702.
Optionally, as another embodiment, processor 701 is additionally operable to obtain locally applied use frequency Rate;Judge that whether described use frequency is less than the 3rd predetermined threshold value;If so, prompting user is by described this locality Application is replaced by described HTML5 application.
Mobile terminal 700 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding Repeat, repeat no more here.The embodiment of the present invention, by obtaining the propelling movement condition code of HTML5 application, obtains The mode of taking can by include from the webserver obtain or by mobile terminal between share in the way of obtain, and Close the push function of HTML5 application by pushing condition code, improve the experience of user, meanwhile, The embodiment of the present invention is also by by special with the propelling movement that mobile terminal this locality has been deposited for the propelling movement got condition code Levy code to compare, when comparison result difference, use the propelling movement condition code obtained to close HTML5 application Push function so that even if HTML5 application vendor constantly changes the closedown condition of push function, user Also can obtain up-to-date propelling movement condition code timely, close PUSH message or the advertising function of HTML5, carry Rise the experience of user.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, only more than The division stating each functional module is illustrated, in actual application, and can be as desired by above-mentioned merit Distribution can be completed by different functional modules, the internal structure of device will be divided into different function moulds Block, to complete all or part of function described above.The system of foregoing description, device and unit Specific works process, is referred to the corresponding process in preceding method embodiment, does not repeats them here.
In several embodiments provided herein, it should be understood that disclosed mobile terminal and control Method, can realize by another way.Such as, the embodiment of mobile terminal described above is only It is only illustrative, described module or the division of unit, is only a kind of logic function and divides, actual real Can have now other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into Another system, or some features can ignore, or do not perform.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in one In individual unit.Above-mentioned integrated unit both can realize to use the form of hardware, it would however also be possible to employ software merit The form of energy unit realizes.
If described integrated unit realizes and as independent product pin using the form of SFU software functional unit When selling or use, can be stored in a computer read/write memory medium.Based on such understanding, Part that prior art is contributed by technical scheme the most in other words or this technical side Completely or partially can embodying with the form of software product of case, this computer software product is stored in In one storage medium, including some instructions with so that a computer equipment (can be individual calculus Machine, server, or the network equipment etc.) or processor (processor) execution each embodiment of the present invention All or part of step of described method.And aforesaid storage medium includes: USB flash disk, portable hard drive, only Read memorizer (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), the various medium that can store program code such as magnetic disc or CD.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all at this Any amendment, equivalent and the improvement etc. made within the spirit of invention and principle, should be included in this Within the protection domain of invention.

Claims (10)

1. a control method for HTML5 application, is applied to mobile terminal, it is characterised in that including:
Obtaining the propelling movement condition code of described HTML5 application, described propelling movement condition code is used for being turned on and off institute State the push function of HTML5 application;
Judge that the described propelling movement condition code obtained is the most identical with the propelling movement condition code of mobile terminal this locality;
If it is not, according to the described propelling movement condition code obtained, close the push function of described HTML5 application.
2. control method as claimed in claim 1, it is characterised in that described according to the institute obtained State propelling movement condition code, after the step of the push function closing described HTML5 application, also include:
Receive the operation instruction opening HTML5 application;
Judging that access network is free nets or payment networks, described free nets includes wifi network, Described payment networks includes mobile data network;
If described access network is paid for network, the operation instruction described HTML5 applied according to user, Obtain the described HTML5 application load time of each page, access times and data traffic;
According to described access times, determine that described HTML5 applies the use frequency at payment networks;
Judge that whether described use frequency is more than the first predetermined threshold value;
If so, according to described load time and described data traffic, determine and store described HTML5 application The page to be stored.
3. control method as claimed in claim 1, it is characterised in that described according to described loading time Between and described data traffic, determine and store the step of the page to be stored of described HTML5 application, including:
Judge X=a (b1+b2+……+bmWhether)/m is more than the second predetermined threshold value,
Wherein, a is the data traffic of the HTML5 application page, and unit is MB, bmFor HTML5 applications pages The load time that face is the m time, unit is s;
If so, the page to be stored of described HTML5 application is stored.
4. control method as claimed in claim 2 or claim 3, it is characterised in that if so, according to described Load time and described data traffic, determine and store the step of the page to be stored of described HTML5 application Afterwards, also include:
Receive the unlatching to the described page to be stored to operate;
Read and open the described page to be stored from this locality.
5. control method as claimed in claim 2, it is characterised in that at the described HTML5 of described acquisition The propelling movement condition code of application, described propelling movement condition code is for being turned on and off the propelling movement of described HTML5 application Before the step of function, also include:
Obtain locally applied use frequency;
Judge that whether described use frequency is less than the 3rd predetermined threshold value;
If so, prompting user by described locally applied be replaced by described HTML5 application.
6. a mobile terminal, it is characterised in that also include:
First acquisition module, for obtaining the propelling movement condition code of described HTML5 application, described propelling movement feature Code is for being turned on and off the push function of described HTML5 application;
First judge module, for judging the propelling movement of described propelling movement condition code and the mobile terminal this locality obtained Condition code is the most identical;
Close module, local with mobile terminal for the propelling movement condition code in the described HTML5 application obtained Propelling movement condition code when differing, according to the described propelling movement condition code obtained, close described HTML5 application Push function.
7. mobile terminal as claimed in claim 6, it is characterised in that also include:
First receiver module, for receiving the operation instruction opening HTML5 application;
Second judge module, is used for judging that access network is free nets or payment networks, described freenet Network includes that wifi network, described payment networks include mobile data network;
Second acquisition module, for when described access network is paid for network, according to user to described The operation instruction of HTML5 application, obtains described HTML5 and applies the load time of each page, access times And data traffic;
First determines module, for according to described access times, determines that described HTML5 applies at paying net The use frequency of network;
3rd judge module, is used for judging that whether described use frequency is more than the first predetermined threshold value;
Second determines module, for when described use frequency is more than the first predetermined threshold value, adding according to described Load time and described data traffic, determine and store the page to be stored of described HTML5 application.
8. mobile terminal as claimed in claim 6, it is characterised in that described second determines module, Including:
Judging unit, is used for judging X=a (b1+b2+……+bmWhether)/m is more than the second predetermined threshold value,
Wherein, a is the data traffic of the HTML5 application page, and unit is MB, bmFor HTML5 applications pages The load time that face is the m time, unit is s;
Memory element, for when X more than the second predetermined threshold value time, store described HTML5 application wait deposit The storage page.
9. mobile terminal as claimed in claim 7 or 8, it is characterised in that also include:
Second receiver module, operates for receiving the unlatching to the described page to be stored;
Opening module, for reading from this locality and opening the described page to be stored.
10. mobile terminal as claimed in claim 7, it is characterised in that also include:
3rd acquisition module, for obtaining locally applied use frequency;
4th judge module, is used for judging that whether described use frequency is less than the 3rd predetermined threshold value;
Reminding module, for when described use frequency is less than three predetermined threshold value, user is by described in prompting Locally applied be replaced by described HTML5 application.
CN201610344819.9A 2016-05-20 2016-05-20 A kind of control method and mobile terminal of HTML5 application Active CN105897559B (en)

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 true CN105897559A (en) 2016-08-24
CN105897559B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241439A (en) * 2017-07-24 2017-10-10 北京小米移动软件有限公司 The information push method and device of the H5 pages
CN108733428A (en) * 2018-05-10 2018-11-02 Oppo广东移动通信有限公司 Control method for screen display and device

Citations (7)

* Cited by examiner, † Cited by third party
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
US20140089395A1 (en) * 2012-09-27 2014-03-27 Oracle International Corporation Framework for thin-server web applications
CN104349288A (en) * 2013-07-25 2015-02-11 腾讯科技(深圳)有限公司 Message transmission method and device
CN105354492A (en) * 2015-10-16 2016-02-24 珠海格力电器股份有限公司 Mobile communication terminal and message notification control method and device thereof
CN105491539A (en) * 2014-09-18 2016-04-13 博雅网络游戏开发(深圳)有限公司 Message push management method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
US20140089395A1 (en) * 2012-09-27 2014-03-27 Oracle International Corporation Framework for thin-server web applications
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 and message notification control method and device thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李慧云: "HTML5技术与应用模式研究", 《电信科学》 *
王树西编著: "《信息发布与网页设计教程》", 31 August 2015, 对外经济贸易大学出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241439A (en) * 2017-07-24 2017-10-10 北京小米移动软件有限公司 The information push method and device of the H5 pages
CN107241439B (en) * 2017-07-24 2020-06-02 北京小米移动软件有限公司 Message pushing method and device for H5 page
CN108733428A (en) * 2018-05-10 2018-11-02 Oppo广东移动通信有限公司 Control method for screen display and device
CN108733428B (en) * 2018-05-10 2021-06-25 Oppo广东移动通信有限公司 Screen display control method and device

Also Published As

Publication number Publication date
CN105897559B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
TW201821966A (en) Information presentation method and apparatus
CN103809730A (en) Low-power-consumption wearable equipment system
CN110413386A (en) Multiprocessing method, apparatus, terminal device and computer readable storage medium
CN104981780A (en) Integration for applications and containers
CN103095840B (en) A kind of advertisement loading method for mobile terminal
CN107463627A (en) A kind of picture loading method and terminal
CN102076115A (en) Control method and device for releasing advertising information in mobile terminal
EP2579622A1 (en) Use of multiple NFC tags
CN106547615A (en) A kind of management method and management module of background application
CN110321192A (en) A kind of method and apparatus that boarding program is presented
CN102119399B (en) To the flexible integrated access of publication
CN107659927A (en) The management method and managing device of a kind of SIM card for smart machine
CN105897559A (en) Control method for HTML5 (Hyper Text Markup Language 5) application and mobile terminal
CN107515907B (en) The display methods and device of browser page
CN105955743A (en) Resource data transfer request generating method, device and system
CN105991829A (en) Content recommendation method and terminal
KR20130118580A (en) Method and apparatus for providing contents based on voice call
CN103678393B (en) The method and apparatus for obtaining information
Chhabra et al. 5G and 6G technologies for Smart City
CN104426948A (en) Network data sharing system and network data sharing method
CN112989249A (en) Page display method, computing device and storage medium
CN101420490A (en) Data reading method and device
KR101884648B1 (en) Method, apparatus and computer-readable medium for web-site development through sketch screen creation
Kwok et al. Our place in time: Exploring heritage and memory in Singapore
CN114640485B (en) Centralized access method, device, equipment and storage medium for service data

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