A kind of registration web page method and relevant apparatus
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of registration web page method and relevant apparatus.
Background technology
With the development of network technology and the maturation of network standard, web-based various applications have gradually developed,
Especially in field of mobile terminals.User can input the address of webpage to open webpage in a browser, more easily, also may be used
The shortcut of webpage to be sent in system desktop, user clicks the webpage shortcut opening pair in system desktop
The webpage answered.However, at present in field of mobile terminals, the shortcut of webpage can only be added to the system desktop of mobile terminal
On, so in the course of time, the webpage shortcut added on desktop will be very much, how to be effectively treated, search and classify these
The problem of webpage shortcut, highlights.
In realizing process of the present invention, inventor has found that at least there are the following problems in the prior art, has in the prior art
For the related software of desktop shortcuts management, these softwares can be according to the system application mould corresponding to desktop shortcuts
The type and characteristic of block carry out classification grouping and manage, but these softwares master table to be processed for being derived from local application
Face shortcut, and for it is this direction network on some specific address, locally without correspondence application module webpage it is fast
Prompt mode just can not be classified and be ranked.
Invention content
In order to solve it is above-mentioned the webpage shortcut that is added on mobile terminal operating system desktop can not be carried out it is effective
The technical issues of classification and sequence, the present invention provides a kind of processing web-page approach and relevant apparatus.
In order to solve the above technical problems, the technical solution adopted by the present invention is that:
In a first aspect, the present invention provides a kind of registration web page method, it is applied to mobile terminal, including:
When the browser of mobile terminal is triggered to the event of mobile terminal addition target webpage, the target network is obtained
The webpage essential information of page, the webpage essential information includes web page address;
It is that the target webpage configures system identifier and type according to the webpage essential information;
The target webpage is noted according to the webpage essential information, the system identifier for target webpage configuration and type
In volume to the application list of mobile terminal operating system.
Optionally, the method for the present invention can also be applied to smart television.
Optionally, in the method for the present invention, the event for adding target webpage is triggered, and can also pass through the center of mobile terminal
Processing unit triggers.
In the first possible realization method of first aspect, it is described according to the webpage essential information, be the mesh
The target webpage is registered in the application list of mobile terminal operating system by the system identifier and type of mark webpage configuration
Specially:
The webpage essential information of the webpage, the system identifier configured for the target webpage and type are added to dynamic table
In.
The possible realization method of with reference to first aspect the first, in second of possible realization method, at described
It is before the target webpage configures system identifier and type, to further include according to the webpage essential information:
Judge whether the web page address obtained is identical as the web page address for the webpage being registered in the application list;
If identical, update is registered to content in dynamic table of webpage in the application list or not to dynamic
State table carries out any update;
If it is not the same, it according to the webpage essential information is that the target webpage configures system identifier and class then to execute described
Type.
With reference to first aspect or the first or second of possible realization method of first aspect, possible at the third
In realization method, the webpage essential information further includes webpage title, Web page image and/or the browsing for opening the target webpage
Device.
With reference to first aspect or the first or second or the third possible realization method of first aspect, the 4th
In the possible realization method of kind, the browser of the mobile terminal is specifically included to the event of mobile terminal addition target webpage:
The browser of mobile terminal adds the webpage shortcut of corresponding target webpage to mobile terminal desktop;
Or, the browser of mobile terminal registers target webpage to the application list of mobile terminal;
Correspondingly,
The webpage shortcut that the correspondence target webpage on mobile terminal desktop is added to by detection obtains the mesh
Mark the webpage essential information of webpage;
Or, obtaining the target webpage by the webpage essential information for receiving the target webpage that the browser is sent
Webpage essential information.
The 4th kind of possible realization method with reference to first aspect, in the 5th kind of possible realization method, when the shifting
The event that the browser of dynamic terminal adds target webpage to mobile terminal is specially the browser of mobile terminal to mobile terminal
When the application list registers target webpage, further include:
The system identifier for target webpage configuration is sent to browser, the browser is the application journey to mobile terminal
The browser of target webpage is registered in sequence table.
With reference to first aspect or the first or second of first aspect or the third or the 4th kind or the 5th kind of possibility
Realization method, in the 6th kind of possible realization method, the target webpage is specially Web page application program Web App.
With reference to first aspect or the first or second of first aspect or the third or the 4th kind or the 5th kind or
Six kinds of possible realization methods, in the 7th kind of possible realization method, it is described according to the webpage essential information, be described
The target webpage is registered to the application list of mobile terminal operating system by the system identifier and type of target webpage configuration
In after, further include:
The Web page icon of the corresponding target webpage is added in described the application list for showing.
With reference to first aspect or the first or second of first aspect or the third or the 4th kind or the 5th kind or
Six kinds or the 7th kind of possible realization method further include in the 8th kind of possible realization method:
The Web page icon of the target webpage classification is carried out according to classifying rules in the application list to show;
Or, the Web page icon of the target webpage is ranked up display according to queueing discipline in the application list.
The 8th kind of possible realization method with reference to first aspect, it is described to answer in the 9th kind of possible realization method
Include with the Web page icon of the target webpage is carried out classification display according to classifying rules in program listing:
By the Web page icon of the target webpage according to the clear of the opening target webpage in the webpage essential information
The difference of device of looking at carries out classification and shows.
The 8th kind of possible realization method with reference to first aspect, it is described to answer in the tenth kind of possible realization method
It is specifically included with the Web page icon of the target webpage is ranked up display according to queueing discipline in program listing:
The Web page icon of the target webpage is ranked up according to the number that the target webpage counted on is opened.
The tenth kind of possible realization method with reference to first aspect further include in a kind of the tenth possible realization method:
The number that the target webpage is opened is counted, specifically includes the target webpage in mobile terminal operating system
The number being opened by using corresponding Web page icon and webpage shortcut and the number being opened in a browser.
The tenth a kind of possible realization method with reference to first aspect, in the 12nd kind of possible realization method, statistics
The number that the target webpage is opened in a browser specifically includes:
The frequency parameter for receiving the correspondence target webpage that browser is sent counts the target webpage in a browser
The number being opened, the frequency parameter specifically include title, browser title and the target of the corresponding target webpage
Webpage is opened number.
The 12nd kind of possible realization method with reference to first aspect, it is described in the 13rd kind of possible realization method
The frequency parameter of the corresponding target webpage further includes the system identifier of the target webpage.
The tenth a kind of possible realization method with reference to first aspect, in the 14th kind of possible realization method, in institute
It states after counting the number that the target webpage is opened, that adds that the target webpage counted on is opened time counts to dynamic table
In.
Second aspect, the present invention provide a kind of registration web page device, are applied to mobile terminal, including:
Acquiring unit, for when the browser of mobile terminal to mobile terminal add target webpage event be triggered when,
The webpage essential information of the target webpage is obtained, the webpage essential information includes web page address;
Dispensing unit, for being that the target webpage configures system identifier and type according to the webpage essential information;
Registering unit, being used for will according to the webpage essential information, the system identifier for target webpage configuration and type
The target webpage is registered in the application list of mobile terminal operating system.
In the first possible realization method of second aspect, further include:
Dynamic table unit is added, for adding the webpage essential information of the target webpage, being configured for the target webpage
System identifier and type to dynamic table.
In second of possible realization method of second aspect, further include:
Judging unit, the webpage of web page address and the webpage being registered in the application list for judging to obtain
Whether location is identical;
If identical, update is registered to content of the webpage in dynamic table in the application list;
If it is not the same, then executing the dispensing unit.
In the third possible realization method of second aspect, the acquiring unit specifically includes:
First obtains subelement, the webpage for being added to the correspondence target webpage on mobile terminal desktop by detection
Shortcut obtains the webpage essential information of the target webpage;
Or, second obtains subelement, it is basic for the webpage by receiving the target webpage that the browser is sent
The webpage essential information of the webpage of target webpage described in acquisition of information.
In conjunction with the first or second or the third possible realization method of second aspect or second aspect, the 4th
In the possible realization method of kind, further include:
Adding device, for adding the Web page icon of the corresponding webpage in the application list for showing.
In conjunction with the first or second or the third possible realization method of second aspect or second aspect, the 5th
In the possible realization method of kind, further include:
Classification display unit, is used for the Web page icon of the target webpage in the application list according to classifying rules
Classification is carried out to show;
Or, sequencing display unit, is used for the Web page icon of the target webpage in the application list according to arrangement
Rule is ranked up display.
In conjunction with the 5th kind of possible realization method of second aspect, in the 6th kind of possible realization method, the sequence
Display unit is specifically used for:
The Web page icon of the target webpage is ranked up according to the number that the target webpage counted on is opened.
The 6th kind of possible realization method in conjunction with second aspect further include in the 7th kind of possible realization method:
Statistics number unit, the number being opened for counting the target webpage specifically include the target webpage and exist
The number that is opened by using corresponding Web page icon and webpage shortcut in mobile terminal operating system and in browser
In the number that is opened.
The 7th kind of possible realization method in conjunction with second aspect further include in the 8th kind of possible realization method:
Statistics number unit is added, for after the number that the statistics target webpage is opened, addition to count on
Time counting in dynamic table of being opened of the target webpage.
The third aspect, the present invention provide a kind of mobile terminal, including browser and operating system:
The browser sends the net of the target webpage for triggering the event for adding target webpage to mobile terminal
Page essential information, the webpage essential information includes web page address;
The operating system, the event for adding target webpage to mobile terminal for the browser when mobile terminal are triggered
When, the webpage essential information of the target webpage is obtained, the webpage essential information includes web page address;According to the webpage base
This information is that the target webpage configures system identifier and type;It is configured according to the webpage essential information, for the target webpage
System identifier and type the target webpage is registered in the application list of mobile terminal operating system.
It can be seen from above-mentioned technical proposal when browser is triggered to the event of mobile terminal addition target webpage,
By from the webpage shortcut having been added on mobile terminal operating system desktop or directly by the browser of mobile terminal
Corresponding webpage essential information is obtained, and is thus that the target webpage configures corresponding system identifier and type, makes the target
Webpage can be registered to the application program in mobile terminal operating system by webpage essential information, corresponding system identifier and type
In list, and it is added to for showing in the application list, it is possible thereby to use existing correlation in the form of Web page icon
Software be effectively treated the corresponding webpage shortcut positioned at system desktop of the webpage being registered in the application list and
The Web page icon being added in the application list, so that the webpage shortcut in mobile terminal operating system and addition
Effectively classified and sorted to Web page icon in the application list.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art
With obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of method flow diagram of registration web page method of the present invention;
Fig. 2 is that the present invention is based on a method flow diagrams of the application scenarios of Web App;
Fig. 3 is that the present invention is based on another method flow diagrams of the application scenarios of Web App;
Fig. 4 a are Web App icons of the present invention classification display renderings a;
Fig. 4 b are Web App icons of the present invention classification display renderings b;
Fig. 5 a are Web App icons sequencing display design sketch a of the present invention;
Fig. 5 b are Web App icons sequencing display design sketch b of the present invention;
Fig. 6 is that statistical web page of the present invention is opened the method flow diagram of number;
Fig. 7 is the solution of the present invention Organization Chart;
Fig. 8 is a kind of structure drawing of device of registration web page device of the present invention;
Fig. 9 is a kind of another structure drawing of device of registration web page device of the present invention;
Figure 10 is a kind of structure drawing of device of mobile terminal of the present invention;
Figure 11 is a kind of gateway architecture figure of the present invention.
Specific implementation mode
An embodiment of the present invention provides a kind of registration web page method and relevant apparatus.
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings to the present invention
Embodiment is described in detail.
Embodiment one
Referring to Fig. 1, it is a kind of method flow diagram of registration web page method of the present invention, this approach includes the following steps:
S101:When the browser of mobile terminal is triggered to the event of mobile terminal addition target webpage, described in acquisition
The webpage essential information of target webpage, the webpage essential information includes web page address;
Preferably, the browser of the mobile terminal is specifically included to the event of mobile terminal addition target webpage:
The browser of mobile terminal adds the webpage shortcut of corresponding target webpage to mobile terminal desktop;
Or, the browser of mobile terminal registers target webpage to the application list of mobile terminal;
Correspondingly,
The webpage shortcut that the correspondence target webpage on mobile terminal desktop is added to by detection obtains the mesh
Mark the webpage essential information of webpage;
Or, obtaining the target webpage by the webpage essential information for receiving the target webpage that the browser is sent
Webpage essential information.
What needs to be explained here is that the mode of different acquisition webpage essential informations have been directed to several different browsings respectively
Device adds the event of corresponding webpage target to mobile terminal, for having added to the webpage on mobile terminal operating system desktop
Shortcut, mobile terminal operating system can be obtained by detecting these webpage shortcuts entrained by webpage shortcut
Webpage essential information.Certainly, by further improving, browser can directly transmit the webpage essential information of target webpage
It is used to target webpage being registered in the application list to mobile terminal operating system, this mode need not be built on the table
Vertical webpage shortcut just can directly will be in netpage registration to systematic difference program listing.For it is above-mentioned both different obtain
Mode is taken, can be specifically described by taking concrete application scene as an example in embodiment two and embodiment three.
Preferably, the webpage essential information further includes webpage title, Web page image and/or the browsing for opening the webpage
Device.
If target webpage also provides the image for representing the webpage, mobile terminal operating system can also use described image
As the image for representing the webpage shortcut, or further it is used as target webpage corresponding net in the application list
The image of page icon, the preview of display and user after allowing are more intuitive.As for further including the mobile end for opening the webpage
The information of end browser is to more record the relevant information in relation to the webpage in detail, thus further improve the online of user
The personalized trace such as hobby.The present invention specifying information that limiting net page essential information is not included, in addition to webpage title, webpage
Can also include that other are grasped in relation to the webpage and user other than the browser of address, Web page image and/or the opening webpage
Make to like relevant other information.
S102:It is that the target webpage configures system identifier and type according to the webpage essential information;
Preferably, the webpage is specially Web page application program Web App.
Here for example, being specially Web App with webpage(Web page application program)When, when mobile terminal operating system is sent out
The address information now obtained is to be directed toward the address of network in other words with http:// beginning, then it is judged for Web App, is divided
With one and its unique corresponding system identifier, which can be a string by number, letter or number and letter together institute
The character string of combination or numerical value etc., for uniquely indicating target webpage, and it is " Web App " to match its type.Above is
System ID and type are that it is made to be added to the necessary condition in the application list.
Preferably, it is described be the webpage distribution system ID and type according to the webpage essential information before, also wrap
It includes:
Judge whether the web page address obtained is identical as the web page address for the webpage being registered in the application list;
If identical, update is registered to content of the webpage in dynamic table in the application list;
If it is not the same, then execute it is described according to the webpage essential information be the webpage distribution system ID and matching class
Type.
It is added on mobile terminal operating system desktop for same webpage due to the use of different browser of mobile terminal
Webpage shortcut be all different webpage shortcut, but the webpage pointed by these shortcuts be all it is identical,
Or illustrate by taking Web App as an example, possible Web App having the same in the Web application shops of different browsers, such as three
In the respective application shop of different browsers may all can Web App versions some target Web App.User is respectively from three
The same target Web App are added on mobile terminal operating system desktop in a browser, then will appear three not
Same shortcut, but the URL link after these three shortcuts opening may be identical.If being directed toward identical net by this kind of
The shortcut of the Web App of network address is regarded in different object registrations to the application list, can cause to apply journey
Target webpage is similarly directly registered to Application Column by the Web page icon that a large amount of function repeats in sequence table in browser
In event in table, if not considering the problems of web page address, it also will appear identical replication problem, and it is current pre- by judging
Whether the target webpage of registration is identical as the web page address for the webpage being registered in the application list, can will be directed toward same
The Web App shortcuts of web page address accumulate one, or by taking the above situation as an example, mobile terminal operating system to this three
A shortcut carries out the flow processing of netpage registration, and the target webpage corresponding to first shortcut is registered to application
After in program listing, due to corresponding to remaining two shortcuts being all target network identical with first shortcut
Page, then, system can will in the webpage essential information entrained by with respect to first shortcut in the two shortcuts difference
Content update to dynamic table in, in this way, being only added to a Web page icon in the application list, and contain these three
Target webpage is directly registered to the application list by content in the webpage essential information entrained by shortcut for browser
In disposition be also the same.
Optionally, in embodiments of the present invention, if obtain web page address and be registered in the application list
The web page address of webpage is identical, can not also carry out any update to dynamic table.
S103:According to the webpage essential information, the system identifier for target webpage configuration and type by the target
In netpage registration to the application list of mobile terminal operating system;
After system identifier and type is assigned in the webpage or webpage shortcut, Application Column can be registered to
In table, effectively to classify and to sort.
Here it particularly to be noted that, described the application list is in addition to referring to by clicking main menu Mainmenu buttons
Further include the application list being directly displayed on mobile terminal system desktop other than the application list of entrance.This hair
The bright specific location to mobile process list in mobile terminal system is without limiting.
It should also be noted that, preferred, add the webpage essential information of the target webpage, distributed for the webpage
In system identifier and matched type to dynamic table.Dynamic table described here is a summary table, in various the application lists
The information of unit all records wherein, for registering in Web App to the application list, it will add related Web
In each essential information to dynamic table of App, in addition to webpage title, web page address, for the webpage distribution system identifier and
Other than the type matched, further include creation time, added by which browser shortcut etc..Following table is please referred to, is this hair
The bright corresponding dynamic tables of Web App:
Shown in dynamic table can be considered as it is corresponding in above-mentioned total dynamic table for the unit information in the application list
The sub- dynamic table of some Web App has recorded every ginseng of corresponding Web App as seen from the table in this dynamic table
The information of number, such as system identifier, type and title, the corresponding Web App can also further be expanded, such as, increase
Statistics is added to open the functions such as the number of the Web App by mobile terminal operating system.As the Web for currently processed registration occur
When App is identical as the address for having already registered with Web App in the application list, mobile terminal operating system only needs to safeguard more
Individual parameters in the new dynamic table for Web App, such as, for the parameter of creation time, the wound that will newly receive
The creation time built in time parameter and original Web App compares, when selecting establishment of the earliest time as the Web App
Between, it for another example says and starts browser, in the Web App for currently processed registration occur and have already registered with the application list
When the address of middle Web App is identical, the corresponding browser information of the Web App of currently processed registration is increased to and has been noted
Volume is to one column of startup browser of Web App in the application list.
Meanwhile dynamic table in addition to play record update Web App icons essential information other than, such as check obtain
Whether the URL in Web App shortcuts is identical as the URL for other Web App icons having been added in the application list
When, so that it may to be completed by searching for dynamic table.
Preferably, the Web page icon of the corresponding target webpage is added in described the application list for showing.
Optionally, above-described embodiment can also be applied to other intelligent terminals, for example, smart television, is applied to intelligence electricity
Apparent time, above steps are handled by the corresponding function module of smart television, for example, being mesh by the operating system of smart television
Webpage configuration system identifier and type are marked, and the target webpage is registered to the application list of smart television operating system
In.
Optionally, in above-described embodiment, adding the event of target webpage, be triggered can also be by the centre of intelligent terminal
Unit triggers are managed, for example, the target webpage that user is applied by the application market selection of intelligent terminal comprising Web, intelligent terminal
Central processing unit detect this event after, can trigger to send registration target webpage to intelligent terminal operation system and asking
It asks.
As seen from the above-described embodiment, the event for adding target webpage to mobile terminal when the browser of mobile terminal is triggered
When, by from the target webpage shortcut having been added on mobile terminal operating system desktop or directly by mobile terminal
Browser obtains corresponding webpage essential information, and is thus that the target webpage configures corresponding system identifier and type, makes institute
Answering in mobile terminal operating system can be registered to by webpage essential information, corresponding system identifier and type by stating target webpage
With in program listing, and it is added to for showing in the application list, it is possible thereby to using existing in the form of Web page icon
Related software be effectively treated the corresponding webpage positioned at system desktop of the webpage being registered in the application list fast side
Formula and the Web page icon being added in the application list.
Embodiment two
In the event for adding target webpage to mobile terminal based on two different browsers proposed in embodiment one
The first and it is corresponding obtain webpage essential information mode:The browser of mobile terminal is to mobile terminal operating system table
The webpage shortcut of the corresponding target webpage of face addition and corresponding pair being added to by detection on mobile terminal desktop
The webpage shortcut of target webpage is answered to obtain the mode of the webpage essential information of the target webpage, in conjunction with specific applied field
Scape is described in detail.
Referring to Fig. 2, it is the present invention is based on a method flow diagrams of the application scenarios of Web App.
S201:When user using browser addition Web App shortcut to mobile terminal desktop when, mobile terminal
Operating system will pass through the address of the acquisition of information WebApp entrained by the shortcut of detection Web App URL in other words, when
So, it can also include further the title of Web App, image and which browser desktop shortcuts are added to by.
Optionally, in embodiments of the present invention, user directly can also add Web by the application market of mobile terminal
Desktop of the shortcut of App to mobile terminal.
S202:It checks the URL in the Web App shortcuts obtained and has been added to other in the application list
Whether the URL of Web App icons is identical, if identical, enters S203, if it is different, then into S204.
Check the URL for comparing Web App shortcuts primarily to avoiding the occurrence of multiple in the application list here
Web App icons are directed toward the replication problem of identical URL, and detailed description has been carried out in this in embodiment one, here
It repeats no more.
S203:System by the essential information of the Web App of acquisition with have been added to it is in the application list, have phase
Different information updates has been added to described in the application list in essential information with other Web App icons of URL
, in the essential informations of other Web App icons with identical URL, into S205.
Difference mentioned here is primarily referred to as the different browsers of mobile terminal, because the Web of different browsers is answered
With in shop may Web App having the same, such as may all can Web in three respective application shops of different browsers
Some target Web App of App versions.The target Web App are added to mobile phone table by user from three browsers respectively
On face, it may appear that three different shortcut icons.After updated, have been added to it is in the application list, have phase
The browser letter in the Web App shortcuts of acquisition will be increased in essential information with other Web App icons of URL
Breath.
There is difference if it is other information, such as if image is different or even title also changes, it is based on this feelings
Condition, before user can use newer replacement, the information before can also keeping, specific processing mode user can carry out
Definition, the present invention are not limited thereto.
S204:Mobile terminal operating system is the quick side for the Web App being added on mobile terminal operating system desktop
The unique corresponding system identifier of formula distribution, and be Web App by type matching, Web App are thus registered to systematic difference journey
In sequence table.
Here it may also be noticed that, while the essential information of the corresponding Web App and system identifier and type can also be added
Into dynamic table, specific contents and acts in embodiment one detailed description has been carried out.
S205:System adds the Web App icons of the corresponding Web App for showing in the application list.
It on the basis of the present embodiment, is analyzed for the application scenarios of alternatively possible appearance, when mobile terminal is grasped
Have as system and Web App are registered in the application list and using journey according to the Web App shortcuts on desktop
Added in sequence table corresponding Web App icons for display function after, the at this moment system desktop of mobile terminal operating system
On be likely present some and be added to by the browser of mobile terminal before mobile terminal operating system is not equipped with the function
Web App shortcuts in system desktop, then, for such case, how to handle these Web App shortcuts
Web App are registered to by application according to the Web App shortcuts on desktop when mobile terminal operating system has
After adding function of the corresponding Web App icons for display in program listing and in the application list, traversal desktop is carried out
The operation of shortcut is also wrapped since the shortcut on mobile terminal operating system desktop is other than Web App shortcuts
The shortcut of local App, the shortcut etc. of the shortcut of mobile terminal operating system setting option and contact person are included, so
Firstly the need of carrying out being to judge which is the shortcut for belonging to Web App, one of Web App shortcuts is determined whether
Whether standard is whether the address information corresponding to shortcut is URL, i.e., be with " http:// " beginning, when finding pair
It is with " http to answer address:// " beginning shortcut, just judge that it is the shortcut for belonging to Web App, further obtain
Belong to the address of the shortcut of Web App URL in other words, it is, of course, also possible to include further the title of Web App, figure
As and by which browser is added to desktop shortcuts.After obtaining the every terms of information of Web App shortcuts, later
The shortcut for belonging to Web App on mobile terminal operating system desktop is added in the form of Web App icons and is answered
Identical as the S202 of the present embodiment to S205 with the flow of program listing, which is not described herein again.
By taking a concrete implementation flow as an example, while based on scene and method described in the present embodiment, into traveling one
Step illustrates:
1, mobile terminal operating system(Operating System)Need the browser addition Web for mobile terminal
The event of App icons to desktop extends an Event type(Event type)And it is monitored.The Event extended is specially:
Event titles:Event addWebAppToHomeScreen;
Event is described:When browser adds in a Web App shortcut to the desktop of operating system, can trigger
Operating system is dished out an addWebAppToHomeScreen event.
Optionally, in the embodiment of the present invention, the application market that mobile terminal operating system can also be directed to mobile terminal adds
The event for adding Web App icons to desktop extends an Event type(Event type)And it is monitored.
2, Web App shortcuts are added to HomeScreen by the browser depending on the user's operation(Operating system
Desktop)In, " addWebAppToHomeScreen " event, which is triggered, dishes out.
Optionally, in embodiments of the present invention, can also be the application market of mobile terminal depending on the user's operation by Web
App shortcuts are added to HomeScreen(Operating system desktop)In, " addWebAppToHomeScreen " event is triggered
It dishes out.
3, mobile terminal operating system listens to above-mentioned event, and triggering call back function executes the acquisition of information stream of Web App
Journey:Obtain the title for being added to the Web App in Home Screen shortcuts, image, URL(Unified Resource
Location, uniform resource locator)And Launcher(Which browser desktop shortcuts are added to by).
4, the URL of the Web App acquired in mobile terminal operating system inspection whether with to be added to operating system
The URL in Web App icons in the application list is identical, is directed toward identical URL's for being had been added before checking whether
Web App icons.If it is not, then 5.1 steps are executed, if it is, executing 5.2 steps.
5.1, mobile terminal operating system is that the Web App distribute unique ID values, sets type types to
" webapp ", and set creation time to current time, in the icon to the application list for adding the Web App.Execute 6
Step.
5.2, mobile terminal operating system is only needed to having added the Web with identical URL in the application list
Increase a new Launcher parameter in the corresponding information of App icons(The opening side of the Web App added before such as
Formula is baidu browser, only needs to be further added by a UC browser this new unfolding mode at this time).Execute 6 steps.
6, mobile terminal operating system shows the icon of the Web App and title.
Optionally, above-described embodiment can also be applied to other intelligent terminals, for example, smart television, then above-described embodiment
In browser be smart television browser, application market be smart television application market, operating system is smart television
Operating system.
It can be seen from the present embodiment when browser is triggered to the event of mobile terminal addition target webpage, pass through
It is obtained from the webpage shortcut having been added on mobile terminal operating system desktop or directly by the browser of mobile terminal
Corresponding webpage essential information, and be thus that the target webpage configures corresponding system identifier and type, make the target webpage
It can be registered to the application list in mobile terminal operating system by webpage essential information, corresponding system identifier and type
In, and be added to for showing in the application list, it is possible thereby to use existing related software in the form of Web page icon
It is corresponding positioned at the webpage shortcut of system desktop and addition that the webpage being registered in the application list is effectively treated
To the Web page icon in the application list.
Embodiment three
Browser based on two different mobile terminals proposed in embodiment one adds corresponding net to mobile terminal
Second in the event of page target and the corresponding mode for obtaining webpage essential information:The browser of mobile terminal is to shifting
The application list registration target webpage of dynamic terminal and the corresponding target network sent by receiving the browser
The webpage essential information of page obtains the webpage essential information of the target webpage, is described in detail in conjunction with specific application scenarios.
Referring to Fig. 3, it is the present invention is based on another method flow diagrams of the application scenarios of Web App.
S301:Browser sends the relevant information of Web App to mobile terminal operating system so that system can utilize institute
It states and gets the relevant information of Web App Web App are registered in the application list and are added in the application list
Corresponding Web App icons are for showing.It is to realize that the relevant information of browser transmission web App is operated to mobile terminal
System, needs to be extended the function of browser, for example, can increase by one section of code in the software program of browser, be used for
Realize that the relevant information of Web App described here includes Web by the relevant information of web App to mobile terminal operating system
The address of App URL in other words, it is, of course, also possible to include further the title of Web App, image and sent out by which browser
Send relevant information.
Optionally, in embodiments of the present invention, the related of Web App can also be sent by the application market of mobile terminal to believe
Mobile terminal operating system is ceased, user can also be received by the central processing unit of mobile terminal by browser or applies city
The relevant information of target webpage is sent to movement eventually by the event of field triggering target webpage by the central processing unit of mobile terminal
The operating system at end.
S302:It checks the URL in the Web App relevant informations obtained and has been added to other in the application list
Whether the URL of Web App icons is identical, if identical, enters S303, if it is different, then into S304.
S303:Mobile terminal operating system by the essential information of the Web App of acquisition with have been added to Application Column
Different information updates has been added to described in the essential information of other Web App icons in table, with identical URL answers
In essential information with other Web App icons in program listing, with identical URL;Into S305.
S304:Mobile terminal operating system is the unique corresponding system identifier of Web App distribution, and is Web by type matching
The Web App are registered in systematic difference program listing by App.
Preferably, when obtaining webpage essential information by receiving the webpage essential information that browser is sent, further include:Phase
It answers, after for the target webpage matching system ID and type, sends the system identifier configured for the target webpage described in
Browser.
The system identifier for being allocated to the target webpage is sent to the browsing for sending webpage essential information to system here
Device, be mainly used for carry out counting later the webpage be opened number when facilitate system to navigate in the application list
In correspondence webpage shortcut.This part will be described in detail in example IV.
S305:Mobile terminal operating system adds corresponding Web App icons for showing in the application list.
By taking a concrete implementation flow as an example, while based on method described in the present embodiment, further being said
It is bright:
1, a new function is extended in the browser of mobile terminal, you can to allow user to click selection by Web App
Icon is added in the application list of operating system.User in a browser operates some Web App, long-press figure
Mark recalls option, selects " addWebAppToOS " wherein(Web App are added to the application list).
Optionally, in the embodiment of the present invention, a new function can also be extended in the application market of mobile terminal, i.e.,
User can be allowed to click selection Web App icons are added in the application list of operating system
2, browser is after receiving the request of user, by " addWebAppToOS " method by the correlation of the Web App
Information is sent to operating system:Title, image, date created and launcher.Note:AddWebAppToOS is that operating system is
One new API of browser extension(Application Program Interface, application programming interfaces), it is specifically defined
It is as follows:
int addWebAppToOS(webAppStatistics);
" webAppStatistics " parameter therein is a structure:
The return value of the API is unique corresponding ID of the Web App distributed by operating system.
Optionally, in the embodiment of the present invention, application market passes through after receiving the request of user
The relevant information of the Web App is sent to operating system by " addWebAppToOS " method.
Optionally, in the embodiment of the present invention, the correlation of Web App can also be believed by the central processing unit of mobile terminal
Breath is sent to operating system, specifically, after browser or application market receive user's request, application request is transmitted to center
The relevant information of the Web App is sent to operation by processing unit by central processing unit by " addWebAppToOS " method
System.
3, mobile terminal operating system inspection obtain Web App URL whether with have been added in the application list
Web App URL it is identical.If it is not, then 4.1 steps are executed, if it is, executing 4.2 steps.
4.1, mobile terminal operating system is that the Web App distribute unique ID, which is returned to and sends the Web App
Information and sets the type of the Web App to " webapp " to the browser of operating system, and creation time is set as working as
The preceding time, in the icon to the application list for adding the Web App.Execute 5 steps.
4.2, mobile terminal operating system is only needed to having added the Web with identical URL in the application list
Increase new Launcher parameters and createDate parameters in the corresponding information of App icons, and by the corresponding Web App's
ID values return to the browser for sending the Web App information to operating system.Execute 5 steps.Specific update rule is as follows:
CreateDate:By the CreateDate parameters newly received with added in the application list have it is identical
CreateDate comparisons in the Web App of URL, select the earliest time as the creation time of the Web App icons.
Launcher:The Launcher parameters newly received are increased to added in the application list have it is identical
In the Launcher lists of the Web App of URL.
5, mobile terminal operating system shows the icon of the Web App and title.
Optionally, above-described embodiment can also be applied to other intelligent terminals, for example, smart television, then above-described embodiment
In browser be smart television browser, application market be smart television application market, operating system is smart television
Operating system.
As seen from the above-described embodiment, further, according to the web page address in the webpage essential information of acquisition, described in judgement
Whether it is to repeat between the web page address of target webpage and the web page address for having already registered with the webpage in the application list,
Thus avoid occurring the replication problem that multiple Web page icons in the application list are directed to the same web page address.
Example IV
On the basis of above-described embodiment one, embodiment two and embodiment three, the present embodiment will be directed to and how show
Show that this function is described in detail:
The Web page icon of the target webpage classification is carried out according to classifying rules in the application list to show;
Or, the Web page icon of the target webpage is ranked up display according to queueing discipline in the application list.
Wherein:
Preferably, described to be divided the Web page icon of the target webpage according to classifying rules in the application list
Class show including:
By the Web page icon of the target webpage according to the clear of the opening target webpage in the webpage essential information
The difference of device of looking at carries out classification and shows.
This is also needed to further illustrate, after Web App icons are added in the application list, can and this
Ground App icons are put together display, and Fig. 4 a and Fig. 4 b are please referred to, wherein are Web App icons of the present invention as shown in fig. 4 a
Classify display renderings a, can show Web App icons to classify according to the difference for the browser for opening the webpage, and
And the classification display that the icon of Web App icons and local application can not only be put together, it can also be with other application
Program icon is shown with an individual paging to carry out classification after separating, and is Web App icons of the present invention as shown in Figure 4 b
Display renderings of classifying b.It certainly, can be with other than carrying out classification display according to the difference for the browser for opening the webpage
Classification, which is carried out, according to other different classifications rules shows that this is not limited by the present invention.
Preferably, described to carry out the Web page icon of the target webpage according to queueing discipline in the application list
Sequencing display specifically includes:
The Web page icon of the target webpage is ranked up according to the number that the target webpage counted on is opened.
Preferably, the number that the target webpage is opened is counted, the target webpage is specifically included and is grasped in mobile terminal
Make the number being opened by using corresponding Web page icon and webpage shortcut in system and is opened in a browser
Number.
It is described by Fig. 6 for described this function of the number that the webpage is opened, Fig. 6 is that the present invention counts
Webpage is opened the method flow diagram of number, including:
S601:The frequency parameter statistics target webpage for receiving the correspondence target webpage that browser is sent is browsing
The number being opened in device, the frequency parameter specifically include the title of the corresponding target webpage, browser title and described
Target webpage is opened number.
For the step it should be noted that by taking Web App as an example, user uses browser corresponding by clicking every time
Icon or the corresponding network address of input, which open target Web App, can all trigger browser record number, and browser is beaten statistics
It opens the number of Web App and is sent to mobile terminal operating system for synchronizing with reference to certain rule, certain rule mentioned here
Can send in real time, i.e., often opening Web App once can all be sent to mobile terminal operating system;Or periodically,
Such as at regular intervals;Or it is sent to mobile terminal operating system when closing browser every time.The present invention is for browsing
The number that is opened how device is sent to Web App is not defined to mobile terminal operating system.
Preferably, the frequency parameter of the correspondence target webpage further includes the system identifier of the target webpage.
S602:The number that the target webpage is opened is counted, is specifically included in mobile terminal operating system by making
The number being opened with corresponding Web page icon and webpage shortcut and the number being opened in a browser.
By taking Web App as an example, when mobile terminal operating system counts the number that Web App are opened, mobile terminal operation
System is in addition to that directly can click the WebApp shortcuts being in mobile terminal operating system and Web App figures by counting user
Mark is opened outside the number of corresponding Web App, and the number of the Web App opened by browser will be sent by receiving browser
The frequency parameter of correspondence Web App counted, when mobile terminal operating system receives the frequency ginseng of browser transmission
After number, the Web App titles and browser title that are carried according to frequency parameter position the correspondence Web in the application list
App shortcuts, alternatively, adding Web App shortcuts to application program if it is by the acquisition methods in embodiment three
In list, past correspondence is sent before being also possible that in the frequency parameter of the correspondence Web App sended over
The system identifier of the shortcut of the Web App can more accurately, faster navigate to corresponding Web according to system identifier
App icons.
The frequency parameter for the correspondence Web App that mobile terminal operating system statistics is beamed back from different browsers, Ke Yitong
The numbers that are opened in a browser of meter Web App, plus user by Web App shortcuts at click in systems with
Web App icons open the number of corresponding Web App, just obtain the total degree that the Web App are opened.
S603:That adds that the target webpage that counts on is opened time counts in dynamic table.
Obtained statistics number is recorded, mobile terminal operating system can be according to the statistics number of record as a result,
The Web App icons being added in the application list are ranked up display with frequency of use, and can be in real time by more
New statistics number refreshes the Web App icon sorted lists shown by using frequency.Display effect please refers to Fig. 5 a
With Fig. 5 b, wherein Fig. 5 a are Web App icons sequencing display design sketch a of the present invention, can be by Web App icons according to using
The height of frequency carrys out sequencing display, moreover, row that not only icon of Web App icons and local application can be put together
Sequence is shown, is shown with an individual paging to be ranked up after can also being separated with other applications icon, such as Fig. 5 b institutes
Show, is Web App icons sequencing display design sketch b of the present invention.Certainly, in addition to being ranked up display according to frequency of use
Outside, display can also be ranked up according to other display rules.This is not limited by the present invention.
It will be registered it can be seen from the present embodiment and be added to the Web page icon in the application list and carry out classification and shown
And/or sequencing display, and further beaten by corresponding Web page icon and webpage shortcut by counting target webpage
The number opened and the number being opened in a browser so that Web page icon can in the application list according to use frequency
Rate is ranked up, and further improves the Experience Degree of user.
Embodiment five
On the basis of above example, the description of a guideline is carried out to entire scheme, still by taking Web App as an example,
Referring to Fig. 7, it is the solution of the present invention Organization Chart, including mobile terminal 70:
The operating system 71 of the mobile terminal 70 expands Web App Management modules 711, for obtaining
The essential information of Web App distributes corresponding system identifier to Web App and matches corresponding type, Web App are registered to and are answered
It is used to show with the application list is added in program listing and in the form of Web App icons, wherein statistics Web App
The total degree being opened is ranked up display according to the total degree being opened to Web App icons.
The browser 72 of the mobile terminal 70 expands Web App Statistics modules 721, for sending Web
The essential information of App, the number that is opened of statistics Web App send being opened for Web App and time count to Web App
Management modules 711.
Meanwhile operating system 71 establishes new API, for transmitting Web App's between browser 72 and operating system 71
Relevant information and data.
Optionally, above-described embodiment can also be applied to other intelligent terminals, for example, smart television, then above-described embodiment
In browser be smart television browser, application market be smart television application market, operating system is smart television
Operating system.
Embodiment six
Corresponding with above method embodiment, the embodiment of the present invention additionally provides a kind of registration web page device.It please refers to
Fig. 8, for a kind of structure drawing of device of registration web page device of the present invention, which includes acquiring unit 801, dispensing unit 802
With registering unit 803:
Acquiring unit 801, the event for adding target webpage to mobile terminal for the browser when mobile terminal are triggered
When, the webpage essential information of the target webpage is obtained, the webpage essential information includes web page address;
Preferably, the acquiring unit specifically includes:
First obtains subelement, the webpage for being added to the correspondence target webpage on mobile terminal desktop by detection
Shortcut obtains the webpage essential information of the target webpage;
Or, second obtains subelement, it is basic for the webpage by receiving the target webpage that the browser is sent
The webpage essential information of target webpage described in acquisition of information.
Dispensing unit 802, for being that the webpage configures system identifier and type according to the target webpage essential information;
Preferably, further include:
Judging unit 805, the net of web page address and the webpage being registered in the application list for judging to obtain
Whether page address is identical;
If identical, update is registered to content in dynamic table of webpage in the application list or not to dynamic
State table carries out any update;
If it is not the same, then executing the dispensing unit 802.
Registering unit 803, for according to the webpage essential information, the system identifier for webpage configuration and type by institute
Target webpage is stated to be registered in the application list of mobile terminal operating system.
Preferably, further include:
Adding device 804, for adding the Web page icon of the corresponding target webpage in the application list for showing
Show.
Preferably, further include:
Dynamic table unit 806 is added, for adding the webpage essential information of the webpage, being configured for the target webpage
System identifier and type are to dynamic table.
Embodiment seven
On the basis of embodiment six, referring to Fig. 9, it is a kind of another device of registration web page device of the present invention
Structure chart.
Classification display unit 901, is used for the Web page icon of the target webpage in the application list according to classification
Rule carries out classification and shows;
Or, sequencing display unit 902, is used for the Web page icon of the target webpage in the application list according to row
Row rule is ranked up display.
Preferably, the sequencing display unit 902 is specifically used for:
The Web page icon of the target webpage is ranked up according to the number that the target webpage counted on is opened.
It is wherein directed to and how to count the number that the target webpage is opened and further include:
Statistics number unit 921, the number being opened for counting the target webpage, specifically includes the target webpage
It the number that is opened in systems by using corresponding Web page icon and webpage shortcut and is opened in a browser
Number.
Statistics number unit 922 is added, for after the number that the statistics target webpage is opened, addition to count
To time counting in dynamic table of being opened of the target webpage.
Embodiment eight
Referring to Fig. 10, it is a kind of structure drawing of device of mobile terminal of the present invention, mobile terminal 1000 includes browser
1001 and operating system 1002:
The browser 1001 sends the target webpage for triggering the event for adding target webpage to mobile terminal
Webpage essential information, the webpage essential information includes web page address;
The operating system 1002 adds the event quilt of target webpage for the browser when mobile terminal to mobile terminal
When triggering, the webpage essential information of the target webpage is obtained, the webpage essential information includes web page address;According to the net
Page essential information is that the target webpage configures system identifier and type;According to the webpage essential information, be the target webpage
The target webpage is registered in the application list of mobile terminal operating system by the system identifier and type of configuration.
Optionally, above-described embodiment can also be applied to other intelligent terminals, for example, smart television, then above-described embodiment
In browser be smart television browser, application market be smart television application market, operating system is smart television
Operating system.
For mobile terminal, if functionally, processor can be divided into(Such as the processing chips such as CPU)With deposit
Reservoir(Such as memory of mobile terminal etc.), Figure 11 describe another embodiment of the present invention offer system gateway knot
Structure, including at least one processor 1101(Such as CPU), at least one network interface 1102 or other communication interfaces, storage
Device 1103 and at least one communication bus 1104, for realizing the connection communication between these devices.Processor 1101 is for holding
The executable module stored in line storage 1103, such as computer program.Memory 1103 may include high random access
Memory(RAM:Random Access Memory), it is also possible to further include non-labile memory(non-volatile
memory), a for example, at least magnetic disk storage.Pass through at least one network interface 1102(Can be wired or wireless)It is real
The now communication connection between the system gateway and at least one other network element can use internet, wide area network, local network, city
Domain net etc..
In some embodiments, memory 1103 stores program 11031, and program 11031 can be by processor 1101
It executes, this program includes:When the browser of mobile terminal is triggered to the event of mobile terminal addition target webpage, from net
Network side sends the webpage essential information of the target webpage, and the webpage essential information includes web page address;Obtain the target
The webpage essential information of webpage;It is that the target webpage configures system identifier and type according to the webpage essential information;According to institute
It states webpage essential information, the system identifier configured for the target webpage and type the target webpage is registered to mobile terminal and grasp
Make in systematic difference program listing.
As can be seen from the above-described embodiment, first, the event for adding target webpage to mobile terminal when browser is triggered
When, by from the webpage shortcut having been added on mobile terminal operating system desktop or directly by the browsing of mobile terminal
Device obtains corresponding webpage essential information, and is thus that the target webpage configures corresponding system identifier and type, makes the mesh
Mark webpage can be registered to the application journey in mobile terminal operating system by webpage essential information, corresponding system identifier and type
In sequence table, and it is added to for showing in the application list, it is possible thereby to use existing phase in the form of Web page icon
Close software be effectively treated the corresponding webpage shortcut positioned at system desktop of the webpage being registered in the application list with
And it is added to the Web page icon in the application list.
Secondly, further, according to the web page address in the webpage essential information of acquisition, judge the net of the target webpage
Whether it is to repeat between page address and the web page address for having already registered with the webpage in the application list, thus avoids occurring
Multiple Web page icons are directed to the replication problem of the same web page address in the application list.
Finally, the number opened by mobile terminal by counting target webpage so that Web page icon can be in application program
It is ranked up according to frequency of use in list, further improves the Experience Degree of user.
It should be noted that one of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method or portion
Split flow is relevant hardware can be instructed to complete by computer program, and the program can be stored in a computer
In read/write memory medium, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described
Storage medium can be magnetic disc, CD, read-only memory(Read-Only Memory, ROM)Or random access memory
(Random Access Memory, RAM)Deng.
A kind of registration web page method provided by the present invention and relevant apparatus are described in detail above, answered herein
With specific embodiment, principle and implementation of the present invention are described, and the explanation of above example is only intended to help
Understand the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, according to the thought of the present invention,
There will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as to this
The limitation of invention.