CN108073622A - Web access method and device based on self-defined desktop programs - Google Patents

Web access method and device based on self-defined desktop programs Download PDF

Info

Publication number
CN108073622A
CN108073622A CN201611002195.9A CN201611002195A CN108073622A CN 108073622 A CN108073622 A CN 108073622A CN 201611002195 A CN201611002195 A CN 201611002195A CN 108073622 A CN108073622 A CN 108073622A
Authority
CN
China
Prior art keywords
browser
self
desktop programs
specified
access
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
CN201611002195.9A
Other languages
Chinese (zh)
Other versions
CN108073622B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201611002195.9A priority Critical patent/CN108073622B/en
Publication of CN108073622A publication Critical patent/CN108073622A/en
Application granted granted Critical
Publication of CN108073622B publication Critical patent/CN108073622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/951Indexing; Web crawling techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The present invention relates to a kind of Web access method and device based on self-defined desktop programs, this method includes:It triggers to represent the intention description information that web page access is intended to by self-defined desktop programs;The description information that is intended to includes implementing the access parameter needed for web page access action;Before the intention description information is transferred to the operating system, the intention description information is obtained;When locally meeting the running environment for specifying browser kernel, the application programming interface then provided by the self-defined desktop programs calls the specified browser kernel that the application program of local non-designated browser is provided, and the access parameter is passed to the specified browser kernel, make the application program by the specified browser kernel and according to the access parameter access webpage.Web access method and device provided by the invention based on self-defined desktop programs, improve web page access efficiency.

Description

Web access method and device based on self-defined desktop programs
Technical field
The present invention relates to field of computer technology, more particularly to a kind of web page access side based on self-defined desktop programs Method and device.
Background technology
Desktop is the main interface of operating system, which is incorporated into the entrance that application is installed in operating system, table Face is provided by desktop programs.Operating system has default desktop program, can also be referred to as system and carry desktop programs, is operation The desktop programs that system is given tacit consent in the case where user does not change desktop programs.The function of operating system default desktop program is base This is fixed, and generally only appearance parts can do a small amount of variation, such as change desktop wallpaper or change screen locking wallpaper.If it needs Desktop programs realization is more multi-functional, and user can be with setting operation system using self-defined desktop programs, by self-defined desktop programs Realize various expanded functions.Self-defined desktop programs can be developed by the independent developer different from the developer of operating system.
However, at present after by the default desktop programing change of operating system for self-defined desktop programs, webpage is being accessed When need to click on browser icon and call corresponding browser to access webpage, it is cumbersome, cause web page access efficiency low.
The content of the invention
Based on this, it is necessary to for current web page access efficiency it is low the problem of, provide a kind of based on self-defined desktop programs Web access method and device.
A kind of Web access method based on self-defined desktop programs, including:
It triggers to represent the intention description information that web page access is intended to by self-defined desktop programs;It is described to be intended to description Information includes implementing the access parameter needed for web page access action;
Before the intention description information is transferred to the operating system, the intention description information is obtained;
When do not install locally with the self-defined matched specified browser of desktop programs, and it is local meet specify browser During the running environment of kernel, then
The application programming interface provided by the self-defined desktop programs calls answering for local non-designated browser The specified browser kernel provided with program, and the access parameter is passed to the specified browser kernel, make institute Application program is stated by the specified browser kernel and according to the access parameter access webpage.
A kind of web page access device based on self-defined desktop programs, including:
It is intended to description information trigger module, for triggering to represent what web page access was intended to by self-defined desktop programs It is intended to description information;The description information that is intended to includes implementing the access parameter needed for web page access action;
Acquisition module, for before the intention description information is transferred to the operating system, obtaining the intention description Information;
Calling module, for ought not install locally with the self-defined matched specified browser of desktop programs, it is and local When meeting the running environment for specifying browser kernel, then pass through the application programming interface of the self-defined desktop programs offer The specified browser kernel that the application program of local non-designated browser is called to be provided, and into the specified browser Core is passed to the access parameter, makes the application program by the specified browser kernel and according to the access parameter access Webpage.
Above-mentioned Web access method and device based on self-defined desktop programs, can be direct by self-defined desktop programs Triggering is intended to description information, which describes web page access intention, including implementing needed for web page access action Access parameter.Before the intention description information is transferred to operating system, the intention description information is got.It is specified locally meeting During the running environment of browser kernel, it can call in the specified browser that the application program of non-designated browser provided Core carries out web page access, initiates web page access so as to fulfill by self-defined desktop programs, it may not be necessary to be manually entered browser Webpage is accessed, improves web page access efficiency.
Description of the drawings
Fig. 1 is the applied environment figure of the Web access method based on self-defined desktop programs in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the flow diagram of the Web access method based on self-defined desktop programs in one embodiment;
Fig. 4 is to trigger to represent that the intention that web page access is intended to is described by self-defined desktop programs in one embodiment The flow diagram of the step of information;
Fig. 5 is the schematic diagram of the main split screen page provided in one embodiment by self-defined desktop programs;
Fig. 6 is flow diagram the step of arrangement in one embodiment by the locally applied icon of collation server;
Fig. 7 is the flow diagram of the Web access method based on self-defined desktop programs in a concrete application scene;
Fig. 8 is the structure diagram of the web page access device based on self-defined desktop programs in one embodiment;
Fig. 9 is the structure diagram of the web page access device based on self-defined desktop programs in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of the Web access method based on self-defined desktop programs in one embodiment.With reference to figure 1, it is somebody's turn to do the Web access method based on self-defined desktop programs and is applied in Web page accessing system, which includes logical The terminal 110 of network connection and server 120 are crossed, server 120 can include web page server 121 and Cloud Server 122.Eventually 110 operation of end has operating system, which provides desktop by self-defined desktop programs.Terminal 110 is self-defined by this Desktop programs realize a kind of Web access method based on self-defined desktop programs.Self-defined desktop programs include software development work Tool bag (Software Development Kit, abbreviation SDK).Terminal 110 can be triggered by self-defined desktop programs for table Show the intention description information that web page access is intended to;Being intended to description information includes implementing the access parameter needed for web page access action; Before being intended to description information and being transferred to operating system, obtain and be intended to description information;Have and self-defined desktop programs when locally-installed During matched specified browser, terminal 110 can be called by the Software Development Kit in self-defined desktop programs and specify browsing Device and the incoming access parameter being intended in description information make to specify browser according to access parameter access webpage.
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment.As shown in Fig. 2, the terminal is including total by system Processor, non-volatile memory medium, built-in storage, network interface, display screen and the input unit of line connection.Wherein, terminal Non-volatile memory medium be stored with operating system, further include a kind of web page access device based on self-defined desktop programs, The web page access device based on self-defined desktop programs is used to implement a kind of web page access side based on self-defined desktop programs Method.The processor supports the operation of entire terminal for providing calculating and control ability.Built-in storage in terminal is non-volatile Property storage medium in the web page access device based on self-defined desktop programs operation provide environment.It can be deposited in the built-in storage Computer-readable instruction is contained, when which is executed by processor, may be such that processor performs a kind of be based on certainly Define the Web access method of desktop programs.Network interface is used to carry out network communication with server, such as uploads list of application, connects It receives the picture mark position of server feedback and accesses webpage etc..The display screen of terminal can be liquid crystal display or electric ink Display screen etc..Input unit can be button, the track set on the touch layer or terminal enclosure covered on display screen Ball or Trackpad or external keyboard, Trackpad or mouse etc..The terminal can be mobile terminal or individual calculus Machine, mobile terminal such as mobile phone, tablet computer, personal digital assistant or Wearable etc..Those skilled in the art can manage Solution, structure shown in Figure 2 only with the block diagram of the relevant part-structure of application scheme, are not formed to the application side The restriction for the terminal that case is applied thereon, specific terminal can include than more or fewer components shown in figure or It combines some components or is arranged with different components.
Fig. 3 is the flow diagram of the Web access method based on self-defined desktop programs in one embodiment.With reference to figure 3, the terminal 110 that the present embodiment is mainly applied in this way in above-mentioned Fig. 1 is illustrated.This method specifically includes as follows Step:
S302 triggers to represent the intention description information that web page access is intended to by self-defined desktop programs;Intention is retouched Stating information includes implementing the access parameter needed for web page access action.
Wherein, it is intended that represent the demand of self-defined desktop programs, web page access is intended to indicate self-defined desktop programs and accesses The demand of webpage, it is intended that the web page access that description information is used to quantitatively express self-defined desktop programs is intended to.It is intended to description letter Breath can specifically include type of action and action parameter, which represents to realize the class that web page access is intended to institute's implementation action Type, the action parameter then represent to implement the parameter needed for the action of the type of action.It is used to represent webpage when being intended to description information When accessing intention, which is to look at (View);The action parameter is the access parameter implemented needed for web page access action, Such as web page address (such as webpage URI;Wherein URI is the abbreviation of Uniform Resource Identifier, represents unified resource Identifier) and the incidental parameter of the web page address.
S304 before being intended to description information and being transferred to operating system, is obtained and is intended to description information.
Wherein, it is intended that description information is used for after operating system is transferred to so that operating system describes to believe according to the intention Breath selection browser, by the browser of selection with according to the access parameter access webpage being intended in description information.Terminal passes through After self-defined desktop programs triggering is intended to description information, which can be transferred to operating system by acquiescence, by operating System responds the intention description information.In the present embodiment, terminal is triggered by self-defined desktop programs is intended to description letter After breath, the intention description information is intercepted before the intention description information is transferred to operating system, it is made no longer to transfer To operating system.
S306 when locally meeting the running environment for specifying browser kernel, is then provided by self-defined desktop programs Application programming interface calls the specified browser kernel that the application program of local non-designated browser is provided, and to specifying Browser kernel is passed to access parameter, makes application program by specifying browser kernel and according to access parameter access webpage.
Wherein, can be integrated in self-defined desktop programs and the matched Software Development Kit of specified browser, the software Development kit provides to call the application programming interface of specified browser, the Software Development Kit can by with finger Determine the identical developer's exploitation of browser.What terminal can be provided by the Software Development Kit in the self-defined desktop programs should It is called with Program Interfaces and specifies browser.
Specified browser kernel is the rendering engine for specifying browser, for explaining webpage grammer and rendering webpage.It specifies Browser kernel can be not only integrated in specified browser, can also be integrated in the non-designated browser of non-designated browser In application program so that the application program of the non-designated browser has web page access ability.The application journey of non-designated browser Sequence such as instant messaging application, SNS (Social Network Service, social networking service) or other application.It specifies The running environment of browser kernel, such as the processor performance parameter of terminal local, built-in storage parameter or network environment etc..
Specifically, after terminal can obtain intention description information by self-defined desktop programs, judge whether terminal local pacifies Equipped with the matched specified browser of self-defined desktop programs.When judging that terminal local does not install specified browser, terminal The local running environment for whether meeting specified browser kernel is judged again by self-defined desktop programs.When judging local satisfaction When specifying the running environment of browser kernel, then the application of the non-designated browser for specifying browser kernel is integrated with to local Program is passed to the access parameter being intended in description information and is called so that the application program of the non-designated browser is referred to by this Determine browser kernel and carry out web page access according to parameter is accessed.
In one embodiment, when the local application journey there are a variety of non-designated browsers for providing and specifying browser kernel During sequence, what terminal can be according to the non-designated browser that preset order selects the application program of non-designated browser and calls selection should The specified browser kernel provided with program.Browser kernel can access webpage for the first time in the application program of non-designated browser When download.In another embodiment, when local answering there are a variety of non-designated browsers for providing specified browser kernel During with program, the application program of the non-designated browser of specified browser kernel has been downloaded in selection, and calls this non-designated clear Look at the specified browser kernel that the application program of device is downloaded.
The above-mentioned Web access method based on self-defined desktop programs can directly trigger meaning by self-defined desktop programs Figure description information, the intention description information describe web page access intention, including implementing the access ginseng needed for web page access action Number.Before the intention description information is transferred to operating system, the intention description information is got.Browser is specified locally meeting During the running environment of kernel, the specified browser kernel that the application program of non-designated browser is provided can be called to carry out webpage It accesses, initiates web page access so as to fulfill by self-defined desktop programs, it may not be necessary to be manually entered browser access webpage, carry High web page access efficiency.Moreover, it can be realized and by the way that browser kernel is specified to access webpage by specifying browser access The identical effect of webpage, and installation operation system default browser or matched specified clear with self-defined desktop programs is not required It lookes at device, improves the success rate that web page access is triggered by self-defined desktop programs.Furthermore operating system there is no operation be During system default browser, option can be provided a user to determine this browser used or setting default browser, operation It is cumbersome, and by the way that browser kernel is specified then can directly to carry out web page access.
In one embodiment, step S306 includes:It is matched specified clear with self-defined desktop programs when not installing locally Look at device, and it is local meet specify the running environment of browser kernel constantly, then the application journey provided by self-defined desktop programs The specified browser kernel that the application program of the local non-designated browser of sequence program interface call is provided, and to specified browser Kernel is passed to access parameter, makes application program by specifying browser kernel and according to access parameter access webpage.
The Web access method based on self-defined desktop programs further includes:Have and self-defined desktop programs when locally-installed During matched specified browser, then the application programming interface provided by self-defined desktop programs calls specified browser, And the access parameter being intended in description information is passed to specified browser, make to specify browser according to access parameter access webpage.
Wherein, self-defined desktop programs have matching relationship with specified browser, then this specifies browser self-defined by this Desktop programs are specified.Specifically, after terminal can obtain intention description information by self-defined desktop programs, judge that terminal local is It is no to be equipped with and the matched specified browser of self-defined desktop programs.When judging that terminal local is equipped with and self-defined desktop journey During the matched specified browser of sequence, locally-installed specified browser is called, and to this browser is specified to be passed to intention description letter Access parameter in breath specifies browser after called according to the access parameter access webpage.When judging terminal local not When browser is specified in installation, terminal judges the local operation for whether meeting specified browser kernel again by self-defined desktop programs Environment, and then perform step S306.The webpage of access can be the webpage specified by self-defined desktop programs.
It, can be directly by specifying browser access webpage when locally-installed specified browser in the present embodiment;Work as local When not installing specified browser, then the specified browser kernel that can be provided by the application program of non-designated browser realizes net Access to web page.In this case no matter locally whether it is mounted with to specify browser that can realize by specifying browser access webpage Effect, add access webpage compatibility.
In one embodiment, the Web access method based on self-defined desktop programs is somebody's turn to do to further include:It is not installed when locally It is and local when being unsatisfactory for specifying the running environment of browser kernel with the matched specified browser of self-defined desktop programs, then will It is intended to description information and is transferred to operating system, makes operating system according to being intended to description information selection browser and to the browsing of selection Device is passed to access parameter, by the browser of selection and according to accessing parameter access webpage.
Specifically, terminal is judged both not installing specified browser locally by self-defined desktop programs, and discontented toe When determining the running environment of browser kernel, the intention description information of interception is recovered so that the intention description information continues to transfer To operating system.
Further, after terminal obtains intention description information by operating system, determine to make by oneself according to description information is intended to Adopted desktop programs are intended to web page access, so as to judge to need browser is called to realize web page access.Terminal can specifically lead to Operating system is crossed, and determines that self-defined desktop programs have webpage according to the type of action and access parameter being intended in description information It accesses and is intended to.
Further, whether terminal can also be configured with default browser by operating system inquiry operation system, when The default browser and incoming access parameter are selected when being configured with default browser, is joined by the default browser and according to accessing Number accesses webpage.Default browser is usually the browser that operating system carries, and function is very limited, it is difficult to meet user's need It asks.
Terminal can also provide locally-installed browsing by operating system in the non-allocating default browser of operating system Device list obtains the selection instruction to the browser list, selects browsing from locally-installed browser according to selection instruction Device is simultaneously incoming to access parameter, by the browser of the selection and according to accessing parameter access webpage.
In the present embodiment, when local had not both installed specified browser and was unsatisfactory for specifying the running environment of browser kernel When, it specifies browser and specified browser kernel that can not call, but still self-defined desktop journey can be handled by operating system The web page access of sequence is intended to, and the situation of webpage can not be accessed by avoiding the occurrence of self-defined desktop programs, be further improved self-defined Desktop programs access the compatibility of webpage.
Fig. 4 is to trigger to represent that the intention that web page access is intended to is described by self-defined desktop programs in one embodiment The flow diagram of the step of information.Specifically comprise the following steps with reference to Fig. 4, step S302:
S402 shows search box by self-defined desktop programs.
Search box carries out content search for triggering by network.Terminal can be by self-defined desktop programs, self-defined Search box is shown in a split screen page in multiple split screen pages that desktop programs are provided.It can be carried out between each split screen page Switching, so as to the indication range of terminal extension.The page for showing search box can be the main split screen page or user makes by oneself The arbitrary split screen page of justice selection.The main split screen page is the split screen page of self-defined desktop programs acquiescence display.
S404 obtains search content by search box.
Specifically, user can choose search box by the input method procedure run in the physical button or terminal of terminal, And character is inputted in search box.Terminal can in real time be obtained by self-defined desktop programs in search box there is currently character work For the search content of input.Or terminal can be current in search box is obtained after detecting that search confirms instruction by making program by oneself Existing character search content as input.Wherein search confirms that instruction can be triggered or passed through by the physical button of terminal It is triggered corresponding to the confirmation control that search box is shown.
In one embodiment, terminal can also show top search term by self-defined desktop programs in search box It converges, and when detecting the operational order of pair confirmation control corresponding with search box, obtains the hot topic currently shown in search box Vocabulary is searched for as search content.Popular search vocabulary is the vocabulary that searched frequency is more than predeterminated frequency.Terminal can be by certainly It defines desktop programs and pulls popular search vocabulary from server (such as Cloud Server), can also be received by self-defined desktop programs The popular search vocabulary of server (such as Cloud Server) push.
S406 is intended to description information according to the search and webpage address of pre-configuration and search content generation.
Wherein, search and webpage address is the address for the search and webpage for being linked to the search content for searching for input, can be with It is the URI or URL (Uniform Resource Locator, uniform resource locator) of the search and webpage.Specifically, terminal Can be by self-defined desktop programs, using search and webpage address and search content as accessing parameter, and add moving of representing to check Make type, so as to generate including the type of action and access the intention description information of parameter.
Further, terminal is by specifying the browser browser that either specified browser kernel or operating system select When accessing webpage, web access requests and the transmission for carrying search and webpage address and searching for content can be specifically generated so that the net Access to web page request is routed to the server (such as web page server 121) corresponding to search and webpage address, and receives the server The web data fed back after search content according to entrained by the web access requests search for the web access requests, and then parse The web data is simultaneously shown.
For example, the main split screen page provided by self-defined desktop programs with reference to shown in Fig. 5, the main split screen page top Portion shows search box 502 and the confirmation control 504 corresponding to the search box 502.The acquiescence of search box 502 shows popular search Vocabulary, when user chooses the search box 502, search box is in editable state, and user can input word into the search box 502 Symbol.If user does not edit search box 502, click directly on and confirm control 504, then terminal by self-defined desktop programs by search box The popular search vocabulary being currently displaying in 502 is as search content;If user is to search box 502 into edlin, and point It hits and confirms control 504, then terminal regard the character inputted in search box 502 as search content by self-defined desktop programs.Into And terminal is intended to description information by self-defined desktop programs according to the search and webpage address of pre-configuration and search content generation.
In the present embodiment, the search box that is provided by self-defined desktop programs can be specified in self-defined desktop programs Content search is carried out in searched page so that self-defined desktop programs possess the ability for accessing named web page indirectly.
In one embodiment, the Web access method based on self-defined desktop programs is somebody's turn to do to further include:Show browser figure Mark.When it is locally-installed have specified browser matched with self-defined desktop programs when, browser icon links to locally-installed Specify browser;When do not install locally with the matched specified browser of self-defined desktop programs, and it is local meet specify browser During the running environment of kernel, browser icon links to specified browser kernel;It is not installed and self-defined desktop programs when locally Matched specified browser, and it is local when being unsatisfactory for specifying the running environment of browser kernel, browser icon links to specified The download address of browser.
Specifically, terminal can be shown by self-defined desktop programs in the split screen page provided in self-defined desktop programs Browser icon.Terminal can also be by self-defined desktop programs, in the fixation display area that self-defined desktop programs are provided Middle display browser icon.Position when switching between each split screen page that the fixation display area is provided in self-defined desktop programs It remains unchanged, keeps display.
Further, terminal can first judge whether terminal local is equipped with and self-defined table before browser icon is shown The specified browser of face procedure match.If locally-installed have specified browser, generation links to the browsing for specifying browser Device icon is simultaneously shown.If local do not install specified browser, determine whether locally whether meet specified browser kernel Running environment.If local meet the running environment for specifying browser kernel, generation links to the application journey of non-designated browser The browser icon of specified browser kernel in sequence.If the local running environment for being unsatisfactory for specifying browser kernel, generates Link to the browser icon of the download address of specified browser and display.
Further, when linking to the browser icon of download address of specified browser and being triggered, from the download The corresponding server in location (such as Cloud Server 122) downloads the installation kit for specifying browser and installation.Terminal passes through self-defined desktop Program receives the notice of operating system broadcast after installation is complete by specified browser, will be linked to after notice is received specified The browser icon of the download address of browser, which replaces with, links to the browser icon for specifying browser.
In the present embodiment, regardless of whether being equipped with specified browser or whether meeting the operation ring of specified browser kernel Border can show browser icon, and pass through consistency body of the browser icon triggering by specified browser access webpage It tests, improves operation ease.
In one embodiment, browser icon is showed in the fixation display area provided by self-defined desktop programs In;Position remains unchanged when switching between each split screen page that fixed display area is provided in self-defined desktop programs;Browser Display location of the icon in the fixation display area provided by self-defined desktop programs, with operating system default browser Display location of the icon in the fixation display area provided by operating system default desktop program is identical.
Wherein, display location of the browser icon in fixed display area can be given tacit consent to according to native operating sys-tern and browse Display location of the icon of device in the fixation display area provided by operating system default desktop program determine, can also be by taking Business device is according to the icon of operating system default browser in the fixation display area provided by operating system default desktop program Display location determine.
In the present embodiment, browser icon display location, the icon with operating system default browser is by operating system Display location in the fixation display area that default desktop program provides is identical so that is used based on self-defined desktop programs specified Browser, consistent using the open position of default browser with the default desktop program based on operating system, reaching similar makes With experience, operation ease is improved.
For example, with reference to Fig. 5, no matter terminal shows the main split screen page 500 or other by self-defined desktop programs The split screen page in the current fixed display area 506 of assignment page bottom display, and is shown in the fixation display area 506 Show fixed application icon.The browser icon of browser is specified to be illustrated in the rightmost side of fixed display area 506, acquiescence browsing Display location in the fixation display area that the icon of device is provided in operating system default desktop program is consistent.
In one embodiment, it is somebody's turn to do the Web access method based on self-defined desktop programs and further includes and passes through collation server The step of locally applied icon arrangement, with reference to Fig. 6, should specifically include the step of icon arrangement locally applied by collation server Following steps:
When self-defined desktop programs start, local list of application is obtained from operating system by S602.
Specifically, terminal can be carried when self-defined desktop programs start by self-defined desktop programs call operation system The standard interface of confession obtains local list of application.The list of application is the local collection installed using corresponding application identities It closes.
List of application is sent to server by S604.
Specifically, the protocol format that terminal can be arranged by self-defined desktop programs, passes through HTTP by list of application (HyperText Transfer Protocol, hypertext transfer protocol) request is sent to server.
S606 receives the picture mark position corresponding with the application identities in list of application of server feedback.
Specifically, the application identities in list of application are classified and/or are arranged after list of application is received by server Sequence, so that it is determined that the corresponding picture mark position of each application identities in list of application, and by each application identities pair in list of application The picture mark position feedback terminal answered, is received by terminal.Picture mark position can include the page mark of the affiliated split screen page of application icon Know and coordinate of the application icon in the affiliated split screen page.Picture mark position can also include the affiliated folder name of application icon and Affiliated folder location.File can be by being classified to obtain by the application identities in list of application.Application identities are carried out Classification can be according to the corresponding application attribute of application identities, application attribute such as application type or application icon color etc..
S608, according to picture mark position arrangement application icon corresponding with the application identities in list of application.
Specifically, terminal can be by self-defined desktop programs, and according to figure corresponding with the application identities in list of application Cursor position is arranged the corresponding application icon of application identities in list of application one by one.Wherein, list of application includes corresponding to and refer to Determine the application identities of browser.This specifies application icon, that is, above-mentioned browser icon of browser that can be illustrated in fixed show area In domain.
It, can be according to the list of application got from operating system when self-defined desktop programs start in the present embodiment Automatic placement is carried out to application icon by server, avoids and manually adjusts the additional time-consuming of application icon position, improve Operation ease.
Illustrate the original of the above-mentioned Web access method based on self-defined desktop programs with a concrete application scene below Reason.With reference to Fig. 7, operating system uses Android operation system in this application scene, should be based on self-defined table in book application scenarios The Web access method of face program specifically includes following steps:
S702 obtains local mounted list of application by self-defined desktop programs from operating system
List of application is sent to server by S704 by self-defined desktop programs.
S706 receives the figure corresponding with the application identities in list of application of server feedback by self-defined desktop programs Cursor position.
S708 is answered by self-defined desktop programs according to picture mark position arrangement is corresponding with the application identities in list of application Use icon.
Local whether install and the matched specified browsing of self-defined desktop programs judged by self-defined desktop programs by S710 Device.If so, perform step S712;If it is not, then perform step S714.
S712 is placed in fixed show area by self-defined desktop programs by the true browser icon for specifying browser is directed toward The rightmost side in domain.
S714 judges the local running environment for whether meeting specified browser kernel by self-defined desktop programs.If no Meet, then perform step S716;If satisfied, then perform step S724.
S716 is directed toward the virtual browser icon for the download address for specifying browser simultaneously by the generation of self-defined desktop programs The rightmost side being placed in fixed display area.
S718 is downloaded by the triggering of virtual browser icon and is specified browser.
S720, the expression that operating system broadcast is received by self-defined desktop programs specify browser installation successfully logical Know.
S722 is replaced the virtual browser icon for being directed toward the download address for specifying browser by self-defined desktop programs To be directed toward the true browser icon for specifying browser.
S724 is directed toward by the generation of self-defined desktop programs and the virtual browser icon of browser kernel is specified to be placed in admittedly Determine the rightmost side in display area.
S726 triggers to represent the intention description information that web page access is intended to by self-defined desktop programs;Intention is retouched Stating information includes implementing the access parameter needed for web page access action.
S728 before being intended to description information and being transferred to operating system, is obtained by self-defined desktop programs and is intended to description letter Breath.
S730, when it is locally-installed have specified browser matched with self-defined desktop programs when, then pass through self-defined desktop Browser and the incoming access parameter being intended in description information are specified in routine call, make to specify browser according to access parameter access Webpage.
S732, when do not install locally with the matched specified browser of self-defined desktop programs, and it is local meet specify browsing During the running environment of device kernel, then call what the application program by local non-designated browser provided by self-defined desktop programs Browser kernel is specified, and access parameter is passed to specified browser kernel, the application program of non-designated browser is made to pass through finger Determine browser kernel and according to access parameter access webpage.
S734, when do not install locally with the matched specified browser of self-defined desktop programs, and it is local be unsatisfactory for specifying it is clear Look at device kernel running environment when, then by self-defined desktop programs by be intended to description information be transferred to operating system, make operation System browser and is passed to access parameter according to description information selection is intended to the browser of selection, by the browser of selection simultaneously According to access parameter access webpage.
Fig. 8 is the structure diagram of the web page access device 800 based on self-defined desktop programs in one embodiment.With reference to figure 8, being somebody's turn to do the web page access device 800 based on self-defined desktop programs includes:
It is intended to description information trigger module 802, for triggering to represent that web page access is anticipated by self-defined desktop programs The intention description information of figure;Being intended to description information includes implementing the access parameter needed for web page access action.
Acquisition module 804, for before being intended to description information and being transferred to operating system, obtaining and being intended to description information.
Calling module 806, for when locally meeting the running environment for specifying browser kernel, then passing through self-defined desktop The application programming interface that program provides is called in the specified browser that the application program of local non-designated browser is provided Core, and access parameter is passed to specified browser kernel, make application program by specifying browser kernel and according to access parameter Access webpage.
The above-mentioned web page access device 800 based on self-defined desktop programs can directly be touched by self-defined desktop programs Hair is intended to description information, which describes web page access intention, including implementing the visit needed for web page access action Ask parameter.Before the intention description information is transferred to operating system, the intention description information is got.It is specified clear locally meeting Look at device kernel running environment when, the specified browser kernel that the application program of non-designated browser provided can be called to carry out Web page access initiates web page access, it may not be necessary to be manually entered browser access net so as to fulfill by self-defined desktop programs Page, improves web page access efficiency.Moreover, it can be realized and by the way that browser kernel is specified to access webpage by specifying browser Access the identical effect of webpage, be not required installation operation system default browser or with the matched finger of self-defined desktop programs Determine browser, improve the success rate that web page access is triggered by self-defined desktop programs.
In one embodiment, it is intended that description information trigger module 802 is used to show by self-defined desktop programs and search for Frame;Search content is obtained by search box;Description information is intended to according to the search and webpage address of pre-configuration and search content generation.
In the present embodiment, the search box that is provided by self-defined desktop programs can be specified in self-defined desktop programs Content search is carried out in searched page so that self-defined desktop programs possess the ability for accessing named web page indirectly.
In one embodiment, calling module 806 is additionally operable to not install locally and the matched finger of self-defined desktop programs Determine browser, and the local running environment for meeting specified browser kernel is constantly, then is answered by what self-defined desktop programs provided The specified browser kernel provided with the application program of the local non-designated browser of Program Interfaces calling, and it is clear to specifying Device kernel of looking at is passed to access parameter, makes application program by specifying browser kernel and according to access parameter access webpage.It calls Module 806 be additionally operable to when it is locally-installed have specified browser matched with self-defined desktop programs when, then pass through self-defined desktop The application programming interface that program provides, which is called, specifies browser, and the visit being intended in description information is passed to specified browser It asks parameter, makes to specify browser according to access parameter access webpage.
It, can be directly by specifying browser access webpage when locally-installed specified browser in the present embodiment;Work as local When not installing specified browser, then the specified browser kernel that can be provided by the application program of non-designated browser realizes net Access to web page.In this case no matter locally whether it is mounted with to specify browser that can realize by specifying browser access webpage Effect, add access webpage compatibility.
In one embodiment, calling module 806 is additionally operable to not install locally and the matched finger of self-defined desktop programs When determining browser, and locally being unsatisfactory for specifying the running environment of browser kernel, then it will be intended to description information and be transferred to operation system System makes operating system according to intention description information selection browser and is passed to access parameter to the browser of selection, passes through selection Browser and according to access parameter access webpage.
In the present embodiment, when local had not both installed specified browser and was unsatisfactory for specifying the running environment of browser kernel When, it specifies browser and specified browser kernel that can not call, but still self-defined desktop journey can be handled by operating system The web page access of sequence is intended to, and the situation of webpage can not be accessed by avoiding the occurrence of self-defined desktop programs, be further improved self-defined Desktop programs access the compatibility of webpage.
As shown in figure 9, in one embodiment, the web page access device 800 based on self-defined desktop programs further includes should With management of icons module 808, for showing browser icon;When it is locally-installed have with self-defined desktop programs it is matched specify it is clear Look at device when, browser icon is linked to locally-installed specified browser;It is not installed and self-defined desktop programs when locally The specified browser matched somebody with somebody, and during the running environment of the specified browser kernel of local satisfaction, browser icon is linked to specified clear Look at device kernel;When do not install locally with the matched specified browser of self-defined desktop programs, and local be unsatisfactory for specifying browser During the running environment of kernel, browser icon is linked to the download address of specified browser.
In the present embodiment, regardless of whether being equipped with specified browser or whether meeting the operation ring of specified browser kernel Border can show browser icon, and pass through consistency body of the browser icon triggering by specified browser access webpage It tests, improves operation ease.
In one embodiment, application icon management module 808 is additionally operable to browser icon being showed in by self-defined table In the fixation display area that face program is provided;The application icon of browser is specified in the fixed area of self-defined desktop programs Display location, with the exhibition in the fixed area of the application icon of operating system default browser in operating system default desktop Show that position is identical.
In the present embodiment, browser icon display location, the icon with operating system default browser is by operating system Display location in the fixation display area that default desktop program provides is identical so that is used based on self-defined desktop programs specified Browser, consistent using the open position of default browser with the default desktop program based on operating system, reaching similar makes With experience, operation ease is improved.
In one embodiment, application icon management module 808 is additionally operable to when self-defined desktop programs start, from operation System obtains local list of application;List of application is sent to server;Receive server feedback in list of application The corresponding picture mark position of application identities;According to picture mark position arrangement application icon corresponding with the application identities in list of application.
It, can be according to the list of application got from operating system when self-defined desktop programs start in the present embodiment Automatic placement is carried out to application icon by server, avoids and manually adjusts the additional time-consuming of application icon position, improve Operation ease.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, which can be stored in a non-volatile computer and storage can be read In medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, which can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield is all considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and description is more specific and detailed, but can not Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art, On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention. Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (12)

1. a kind of Web access method based on self-defined desktop programs, including:
It triggers to represent the intention description information that web page access is intended to by self-defined desktop programs;The intention description information Including implementing the access parameter needed for web page access action;
Before the intention description information is transferred to the operating system, the intention description information is obtained;
When locally meeting the running environment for specifying browser kernel, then
The application programming interface provided by the self-defined desktop programs calls the application journey of local non-designated browser The specified browser kernel that sequence is provided, and the access parameter is passed to the specified browser kernel, make described answer With program by the specified browser kernel and according to the access parameter access webpage.
2. according to the method described in claim 1, it is characterized in that, described trigger to represent net by self-defined desktop programs The step of intention description information that access to web page is intended to, includes:
Search box is shown by self-defined desktop programs;
Search content is obtained by described search frame;
Description information is intended to according to the search and webpage address of pre-configuration and the generation of described search content.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
When do not install locally with the self-defined matched specified browser of desktop programs, and it is local meet specify browser kernel Running environment constantly, then perform the application programming interface provided by the self-defined desktop programs call it is local The specified browser kernel that the application program of non-designated browser is provided, and it is passed to institute to the specified browser kernel Access parameter is stated, makes the application program by the specified browser kernel and according to the step of the access parameter access webpage Suddenly;
When it is locally-installed have specified browser matched with the self-defined desktop programs when, then
The application programming interface provided by the self-defined desktop programs calls the specified browser, and to the finger Determine the access parameter that browser is passed in the intention description information, make the specified browser according to the access parameter access Webpage.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Show browser icon;
When it is locally-installed have specified browser matched with the self-defined desktop programs when, the browser icon links to this The specified browser of ground installation;
When do not install locally with the self-defined matched specified browser of desktop programs, and it is local meet specify browser kernel Running environment when, the browser icon links to the specified browser kernel;
When do not install locally with the self-defined matched specified browser of desktop programs, and local be unsatisfactory for specifying in browser During the running environment of core, the browser icon links to the download address of the specified browser.
5. according to the method described in claim 4, it is characterized in that, the browser icon is showed in by the self-defined desktop In the fixation display area that program is provided;Each split screen page that the fixed display area is provided in the self-defined desktop programs Position remains unchanged when switching between face;The browser icon is in the fixation provided by the self-defined desktop programs Display location in display area is being provided with the icon of operating system default browser by operating system default desktop program Display location in fixed display area is identical.
6. the method according to any one of claims 1 to 5, it is characterized in that, the method further includes:
When the self-defined desktop programs start, local list of application is obtained from operating system;
The list of application is sent to server;
Receive the picture mark position corresponding with the application identities in the list of application of the server feedback;
According to picture mark position arrangement application icon corresponding with the application identities in the list of application.
7. a kind of web page access device based on self-defined desktop programs, which is characterized in that including:
It is intended to description information trigger module, for triggering to represent the intention that web page access is intended to by self-defined desktop programs Description information;The description information that is intended to includes implementing the access parameter needed for web page access action;
Acquisition module, for before the intention description information is transferred to the operating system, obtaining the intention description information;
Calling module, for when locally meeting the running environment for specifying browser kernel, then passing through the self-defined desktop journey The application programming interface that sequence provides calls the specified browser that the application program of local non-designated browser is provided Kernel, and the access parameter is passed to the specified browser kernel, the application program is made to pass through the specified browser Kernel simultaneously accesses parameter access webpage according to described.
8. device according to claim 7, which is characterized in that the intention description information trigger module is used for by making by oneself Adopted desktop programs show search box;Search content is obtained by described search frame;According to the search and webpage address of pre-configuration and institute It states search content generation and is intended to description information.
9. device according to claim 7, which is characterized in that the calling module be additionally operable to not install locally with it is described The self-defined matched specified browser of desktop programs, and the local running environment for meeting specified browser kernel is constantly, then passes through The application programming interface that the self-defined desktop programs provide calls the application program of local non-designated browser to be provided The specified browser kernel, and be passed to the access parameter to the specified browser kernel, lead to the application program Cross the specified browser kernel and according to the access parameter access webpage;
The calling module be additionally operable to when it is locally-installed have specified browser matched with the self-defined desktop programs when, then lead to It crosses the application programming interface that the self-defined desktop programs provide and calls the specified browser, and to the specified browsing Device is passed to the access parameter in the intention description information, makes the specified browser according to the access parameter access webpage.
10. device according to claim 7, which is characterized in that described device further includes:
Application icon management module, for showing browser icon;When it is locally-installed have matched with the self-defined desktop programs Specified browser when, the browser icon is linked to the locally-installed specified browser;When locally do not install with The matched specified browser of self-defined desktop programs, and during the running environment of the specified browser kernel of local satisfaction, by institute It states browser icon and links to the specified browser kernel;It is not installed and the self-defined matched finger of desktop programs when locally When determining browser, and locally being unsatisfactory for specifying the running environment of browser kernel, the browser icon is linked into the finger Determine the download address of browser.
11. device according to claim 10, which is characterized in that the application icon management module is additionally operable to will be described clear Device icon shows are look in the fixation display area provided by the self-defined desktop programs;The application of the specified browser Display location of the icon in the fixed area of the self-defined desktop programs, the application icon with operating system default browser The display location in fixed area in operating system default desktop is identical.
12. the device according to any one of claim 7 to 11, which is characterized in that described device further includes:
Application icon management module, for when the self-defined desktop programs start, local application to be obtained from operating system List;The list of application is sent to server;Receive being marked with the application in the list of application for the server feedback Know corresponding picture mark position;According to picture mark position arrangement application drawing corresponding with the application identities in the list of application Mark.
CN201611002195.9A 2016-11-14 2016-11-14 Webpage access method and device based on self-defined desktop program Active CN108073622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611002195.9A CN108073622B (en) 2016-11-14 2016-11-14 Webpage access method and device based on self-defined desktop program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611002195.9A CN108073622B (en) 2016-11-14 2016-11-14 Webpage access method and device based on self-defined desktop program

Publications (2)

Publication Number Publication Date
CN108073622A true CN108073622A (en) 2018-05-25
CN108073622B CN108073622B (en) 2021-08-10

Family

ID=62162175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611002195.9A Active CN108073622B (en) 2016-11-14 2016-11-14 Webpage access method and device based on self-defined desktop program

Country Status (1)

Country Link
CN (1) CN108073622B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170764A (en) * 2007-11-16 2008-04-30 魏新成 Method for browsing web page via finger on touch screen mobile phone
CN102857629A (en) * 2012-07-12 2013-01-02 广东欧珀移动通信有限公司 Calling-out method of mobile phone desktop search box
CN104216973A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Data search method and data search device
CN104461281A (en) * 2014-11-07 2015-03-25 广东欧珀移动通信有限公司 Managing method and managing server of mobile terminal desktop icons and mobile terminal
CN104731458A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Method and device for automatically arranging desktop icons and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170764A (en) * 2007-11-16 2008-04-30 魏新成 Method for browsing web page via finger on touch screen mobile phone
CN102857629A (en) * 2012-07-12 2013-01-02 广东欧珀移动通信有限公司 Calling-out method of mobile phone desktop search box
CN104216973A (en) * 2014-08-27 2014-12-17 小米科技有限责任公司 Data search method and data search device
CN104461281A (en) * 2014-11-07 2015-03-25 广东欧珀移动通信有限公司 Managing method and managing server of mobile terminal desktop icons and mobile terminal
CN104731458A (en) * 2015-03-31 2015-06-24 努比亚技术有限公司 Method and device for automatically arranging desktop icons and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "《脚本之家-https://www.jb51.net/shouji/205486.html》", 15 August 2014 *

Also Published As

Publication number Publication date
CN108073622B (en) 2021-08-10

Similar Documents

Publication Publication Date Title
CN106502736B (en) Applied program processing method and device
KR100616157B1 (en) Method and syetem for interworking plurality of applications
CN105635063B (en) Internet of Things communication protocol configuration method and device
US9823918B2 (en) Systems and methods for application program and application program update deployment to a mobile device
CN103064584B (en) Method of attaching and device
CN107831974B (en) Information sharing method and device and storage medium
CN108228305A (en) Display methods, device, storage medium and the electronic equipment of five application page
US20070061488A1 (en) System and method for flexible user interfaces
CN107015721A (en) The management method and device of a kind of application interface
CN104820683B (en) A kind of picture processing terminal
WO2014039170A2 (en) Website builder systems and methods with device detection to adapt rendering behavior based on device type
CN107590524A (en) The preparation method and device of a kind of electronic business card
CN105955888A (en) Page debugging and previewing method and system
US20070283243A1 (en) Method and apparatus for adapting external controls to a portal design
CN105205072B (en) The methods of exhibiting and system of webpage information
CN103246657A (en) Method and device for generating browser bookmark and method and device for browsing web page
CN106354570A (en) Account information copying and pasting method and device
CN105871695A (en) Emoji sending method and device
CN104834687A (en) Picture display method
CN106062693A (en) Desktop sharing method and mobile terminal
CN109246467A (en) Label is to the method, apparatus of sharing video frequency, video camera and smart phone
CN106161793A (en) Originating method based on contact person's packet and device
US20100130261A1 (en) Editor for graphical user interfaces
CN111324398B (en) Method, device, terminal and storage medium for processing latest content
CN101231591A (en) Method and system for protection of screen with on-line design effect

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant