Implementation method, the Apparatus and system of mobile device datagram system
Technical field
The present invention relates to the communication technology, particularly relate to a kind of implementation method, Apparatus and system of mobile device datagram system.
Background technology
In recent years, the mobile device such as mobile phone, panel computer is fast-developing, and increasing user carries out datagram reading by mobile device.
In prior art, user carries out datagram reading by the browser of mobile device.User is when carrying out datagram and reading by browser, the network address that the datagram server that user inputs by browser is corresponding is sent to domain name system (DNS, DomainNameSystem) server obtains corresponding Internet protocol (IP, InternetProtocol) address, content request message is sent to datagram server again according to obtained IP address, and web displaying is carried out to HTML (Hypertext Markup Language) (HTML, the HyperTextMarkuplanguage) file that datagram server returns.Wherein, not only include details corresponding to each space of a whole page character block in the newspaper master picture and newspaper master picture needing display in the html file that datagram server returns, further comprises style information when newspaper master picture and details corresponding to each space of a whole page character block being shown on webpage.When browser shows webpage, need to resolve from html file and extract the style information corresponding to all the elements difference comprised in this html file, and the details corresponding to each space of a whole page character block in newspaper master picture and newspaper master picture according to this style information show.
But in prior art, mobile device, needs to extract style information from html file, length consuming time when showing datagram webpage by browser.
Summary of the invention
The invention provides a kind of implementation method, Apparatus and system of mobile device datagram system, in order to solve in prior art browser when showing datagram webpage, need from html file, to extract style information, the problem of length consuming time, reduce the duration of mobile device display datagram.
The invention provides a kind of implementation method of mobile device datagram system, comprising:
Mobile device and datagram server interaction, obtain the HTML (Hypertext Markup Language) html file that datagram is corresponding, and described html file comprises the newspaper master picture of needs display;
Described mobile device shows described newspaper master picture according to being stored in the first local pattern.
The invention provides the implementation method of also a kind of mobile device datagram system, comprising:
Datagram server obtains datagram;
Described datagram server and mobile device mutual, HTML (Hypertext Markup Language) html file corresponding for described datagram being sent to described mobile device, according to being stored in the first local pattern, the newspaper master picture that described html file comprises being shown to make described mobile device.
The invention provides a kind of mobile device, comprising:
Acquisition module, for datagram server interaction, obtain HTML (Hypertext Markup Language) html file corresponding to datagram, described html file comprises the newspaper master picture that needs show;
Display module, for showing described newspaper master picture according to being stored in the first local pattern.
The invention provides a kind of datagram server, comprising:
Acquisition module, for obtaining datagram;
Sending module, for mutual with mobile device, HTML (Hypertext Markup Language) html file corresponding for described datagram being sent to described mobile device, according to being stored in the first local pattern, the newspaper master picture that described html file comprises being shown to make described mobile device.
Implementation method, the Apparatus and system of mobile device datagram system provided by the invention, the html file comprising the newspaper master picture that needs show is obtained by mobile device and datagram server interaction, mobile device shows described newspaper master picture according to being stored in the first local pattern, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduces the duration of mobile device display datagram.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the implementation method embodiment one of mobile device datagram system of the present invention;
Fig. 2 is the process flow diagram of the implementation method embodiment two of mobile device datagram system of the present invention;
Fig. 3 is the process flow diagram of the implementation method embodiment three of mobile device datagram system of the present invention;
Fig. 4 is the process flow diagram of the implementation method embodiment four of mobile device datagram system of the present invention;
Fig. 5 is the process flow diagram of the implementation method embodiment five of mobile device datagram system of the present invention;
Fig. 6 is the structural representation of mobile device embodiment one of the present invention;
Fig. 7 is the structural representation of mobile device embodiment two of the present invention;
Fig. 8 is the structural representation of mobile device embodiment three of the present invention;
Fig. 9 is the structural representation of mobile device embodiment four of the present invention;
Figure 10 is the structural representation of datagram server example one of the present invention;
Figure 11 is the structural representation of datagram server example two of the present invention.
Embodiment
Fig. 1 is the process flow diagram of the implementation method embodiment one of mobile device datagram system of the present invention, and as shown in Figure 1, the method for the present embodiment can comprise:
Step 101, mobile device and datagram server interaction, obtain the HTML (Hypertext Markup Language) html file that datagram is corresponding; Wherein, described html file comprises the newspaper master picture of needs display;
Step 102, described mobile device show described newspaper master picture according to being stored in the first local pattern.
In prior art, not only include the newspaper master picture needing to show in the html file that mobile device and datagram server interaction obtain, further comprises style information when newspaper master picture being shown on webpage; When browser shows webpage, need to resolve from html file and extract all the elements comprised in this html file and distinguish corresponding style information, and according to this style information, newspaper master picture is shown.In the present invention, mobile device and datagram server interaction obtain the html file comprising the newspaper master picture that needs show, and mobile device shows described newspaper master picture according to being stored in the first local pattern.
In prior art, because browser needs to extract style information from html file, according to this style information, newspaper master picture is shown; Therefore, there is the problem of display web page length consuming time; The html file comprising the newspaper master picture that needs show is obtained by mobile device in the present invention and datagram server interaction, mobile device shows described newspaper master picture according to being stored in the first local pattern, make mobile device when carrying out the display of newspaper master picture, no longer need the step extracting style information from html file, and directly by local the first pattern stored, newspaper master picture is shown, decrease the duration of mobile device display datagram; Meanwhile, improve Consumer's Experience.
In the present embodiment, the html file comprising the newspaper master picture that needs show is obtained by mobile device and datagram server interaction, mobile device shows described newspaper master picture according to being stored in the first local pattern, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduces the duration of mobile device display datagram.
Fig. 2 is the process flow diagram of the implementation method embodiment two of mobile device datagram system of the present invention, and as shown in Figure 2, the method for the present embodiment can comprise:
Step 201, mobile device and datagram server interaction, obtain the HTML (Hypertext Markup Language) html file that datagram is corresponding; Wherein, described html file comprises details corresponding to each space of a whole page character block in the newspaper master picture of needs display and described newspaper master picture;
Optionally, can be sent a request message to the corresponding IP address of datagram server by mobile device, the mode that datagram server returns html file corresponding to datagram according to request message obtains html file.
Optionally, described newspaper master picture is the picture of a space of a whole page newspaper.
Step 202, described mobile device show described newspaper master picture according to being stored in the first local pattern;
Optionally, described first pattern can comprise the area size Showed Picture.
Step 203, described mobile device obtain user's space of a whole page character block selected on described newspaper master picture, and the details according to being stored in the second local pattern corresponding to described space of a whole page character block show;
Optionally, mobile device by obtaining the touch operation of user on newspaper master picture, can determine selected space of a whole page character block according to the touch location of this touch operation.
Optionally, described second pattern can comprise font size, and/or display mode etc.; Concrete, described font size can comprise: Header font size and text type size etc.; Described display mode, can comprise placed in the middle, left-justify etc.
Step 204, described mobile device input according to user, adjust the font size of described details.
It should be noted that, step 204 is optional step.
Optionally, described user's input can for sliding.
In the present embodiment, can also comprise: mobile device carries out switching display according to user's input different newspaper master pictures corresponding to master newspaper layout, mobile device can also forward according to user's input content corresponding to html file and collect.
In the present embodiment, the html file comprising the details that each space of a whole page character block is corresponding in newspaper master picture and described newspaper master picture that needs show is obtained by mobile device and datagram server interaction, mobile device shows described newspaper master picture according to being stored in the first local pattern, and the details corresponding to described space of a whole page character block according to the second pattern of this locality storage show, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduce the duration of mobile device display datagram.
Fig. 3 is the process flow diagram of the implementation method embodiment three of mobile device datagram system of the present invention, and as shown in Figure 3, the method for the present embodiment can comprise:
Step 301, mobile device input according to user, select the datagram needing buffer memory;
Such as, the datagram on the same day is all carried out buffer memory by the way selection clicking " off-line reading " by user.
Step 302, described mobile device and datagram server interaction, obtain the html file that datagram is corresponding; Wherein, described html file comprises details corresponding to each space of a whole page character block in the newspaper master picture of needs display and described newspaper master picture;
Step 302 is identical with step 201, does not repeat them here.
Step 303, described mobile device carry out buffer memory to the described html file needing the datagram of buffer memory corresponding obtained;
Step 304, described mobile device determine whether to need the newspaper master picture to the needs display that described html file comprises to show;
If so, then step 305 is performed; Otherwise, terminate.
Such as, user can notify by the mode opening a datagram that the newspaper master picture of the needs display that mobile terminal needs html file corresponding for this datagram to comprise shows.
Step 305, described mobile device show described newspaper master picture according to being stored in the first local pattern;
Step 305 is identical with step 202, does not repeat them here.
Step 306, described mobile device obtain user's space of a whole page character block selected on described newspaper master picture, and the details according to being stored in the second local pattern corresponding to described space of a whole page character block show;
It should be noted that, step 306 is optional step;
Step 306 is identical with step 203, does not repeat them here.
Step 307, described mobile device input according to user, adjust the font size of described details.
It should be noted that, step 307 is optional step.
Step 307 is identical with step 204, does not repeat them here.
In the present embodiment, inputted according to user by mobile device, select the datagram needing buffer memory, described mobile device and datagram server interaction, obtain the html file that datagram is corresponding, the html file of acquisition is carried out buffer memory, and when determining to need to show the newspaper master picture of the needs display that described html file comprises, according to being stored in the first local pattern, the newspaper master picture in html file is shown, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduce the duration of mobile device display datagram, meanwhile, by the mode by datagram buffer memory, make user can in advance by datagram buffer memory when interconnection network, and when non-interconnection network or network condition bad carry out datagram reading, improve the convenience that user reads datagram.
Fig. 4 is the process flow diagram of the implementation method embodiment four of mobile device datagram system of the present invention, and as shown in Figure 4, the method for the present embodiment can comprise:
Step 401, datagram server obtain datagram;
Optionally, datagram server can be Content Management System (CMS, ContentManagementSystem) server;
Optionally, datagram server can obtain datagram by the mode of the newspaper original data receiving other server timed sending.
Step 402, described datagram server and mobile device are mutual, HTML (Hypertext Markup Language) html file corresponding for described datagram being sent to described mobile device, according to being stored in the first local pattern, the newspaper master picture that described html file comprises being shown to make described mobile device.
Step 402 is identical with step 201, does not repeat them here.
In the present embodiment, the html file comprising the newspaper master picture that needs show is obtained by mobile device and datagram server interaction, mobile device shows described newspaper master picture according to being stored in the first local pattern, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduces the duration of mobile device display datagram.
Fig. 5 is the process flow diagram of the implementation method embodiment five of mobile device datagram system of the present invention, and as shown in Figure 5, the method for the present embodiment can comprise:
Step 501, datagram server obtain datagram;
Step 501 is identical with step 401, does not repeat them here.
Step 502, described datagram server send the information of the datagram of up-to-date issue to mobile device;
Optionally, datagram server when getting new datagram, then can send the information of the datagram of up-to-date issue to mobile device.
Step 503, mobile device receive the information of the datagram of the up-to-date issue that described datagram server sends;
Optionally, mobile device can notify user by the mode of interface prompt after receiving the information of the datagram of the up-to-date issue that datagram server sends.
Step 504, described mobile device receive the datagram selection information that user sends according to described information;
Step 505, described mobile device obtain the datagram selecting information corresponding with described datagram;
Step 506, described mobile device and described datagram server interaction, obtain the HTML (Hypertext Markup Language) html file that described datagram is corresponding; Wherein, described html file comprises details corresponding to each space of a whole page character block in the newspaper master picture of needs display and described newspaper master picture;
Step 506 is identical with step 201, does not repeat them here.
Step 507, described mobile device show described newspaper master picture according to being stored in the first local pattern;
Step 507 is identical with step 202, does not repeat them here.
Step 508, described mobile device obtain user's space of a whole page character block selected on described newspaper master picture, and the details according to being stored in the second local pattern corresponding to described space of a whole page character block show;
It should be noted that, step 508 is optional step;
Step 508 is identical with step 203, does not repeat them here.
Step 509, described mobile device input according to user, adjust the font size of described details.
It should be noted that, step 509 is optional step;
Step 509 is identical with step 204, does not repeat them here.
In the present embodiment, the information of the datagram of the up-to-date issue that described datagram server sends is received by mobile device, mobile device receives the datagram selection information that user sends according to described information, mobile device obtains the datagram selecting information corresponding with described datagram, mobile device and datagram server interaction, obtain the html file that datagram is corresponding, and according to being stored in the first local pattern, the newspaper master picture in html file is shown, solve browser when showing datagram webpage, need to extract style information from html file, the problem of length consuming time, reduce the duration of mobile device display datagram, meanwhile, received the mode of the information of the datagram of the up-to-date issue that described datagram server sends by mobile device, make user can obtain up-to-date datagram faster, improve the efficiency that user obtains datagram content.
Fig. 6 is the structural representation of mobile device embodiment one of the present invention, and as shown in Figure 6, the mobile device of the present embodiment can comprise: acquisition module 601 and display module 602.Wherein, acquisition module 601, for datagram server interaction, obtain HTML (Hypertext Markup Language) html file corresponding to datagram, described html file comprises the newspaper master picture that needs show; Display module 602, for showing described newspaper master picture according to being stored in the first local pattern.
The mobile device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 1, it realizes principle and technique effect is similar, repeats no more herein.
Mobile device embodiment two
Optionally, on the basis of mobile device embodiment one, can also comprise in described html file: the details that in described newspaper master picture, each space of a whole page character block is corresponding; Display module 602, also for: obtain the space of a whole page character block that user is selected on described newspaper master picture, the details according to being stored in the second local pattern corresponding to described space of a whole page character block show.
Optionally, described second pattern can comprise: font size;
Fig. 7 is the structural representation of mobile device embodiment two of the present invention, as shown in Figure 7, the mobile device of the present embodiment is on the basis of the structure of mobile device shown in Fig. 6, further, can also comprise: adjusting module 603, for according to user's input, the font size of described details is adjusted.
The mobile device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 8 is the structural representation of mobile device embodiment three of the present invention, and as shown in Figure 8, the mobile device of the present embodiment, on the basis of the structure of mobile device shown in Fig. 7, further, can also comprise: select module 604 and cache module 605.Wherein, select module 604, for according to user's input, select the datagram needing buffer memory; Cache module 605, for carrying out buffer memory to the described html file needing the datagram of buffer memory corresponding obtained; Display module 602, specifically for: when needing to show the newspaper master picture of the needs display that the html file of described cache module buffer memory comprises, according to being stored in the first local pattern, described newspaper master picture is shown.
The mobile device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 3, it realizes principle and technique effect is similar, repeats no more herein.
Fig. 9 is the structural representation of mobile device embodiment four of the present invention, as shown in Figure 9, the mobile device of the present embodiment is on the basis of the structure of mobile device shown in Fig. 7, further, can also comprise: reminding module 606, for receiving the information of the datagram of the up-to-date issue that described datagram server sends; Receive the datagram selection information that user sends according to described information; Obtain the datagram selecting information corresponding with described datagram.
The mobile device of the present embodiment, may be used for the technical scheme performing embodiment of the method mobile device side shown in Fig. 5, it realizes principle and technique effect is similar, repeats no more herein.
Figure 10 is the structural representation of datagram server example one of the present invention, and as shown in Figure 10, the datagram server of the present embodiment can comprise: acquisition module 1001 and sending module 1002.Wherein, acquisition module 1001, for obtaining datagram; Sending module 1002, for mutual with mobile device, HTML (Hypertext Markup Language) html file corresponding for described datagram being sent to described mobile device, according to being stored in the first local pattern, the newspaper master picture that described html file comprises being shown to make described mobile device.
The datagram server of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 4, it realizes principle and technique effect is similar, repeats no more herein.
Figure 11 is the structural representation of datagram server example two of the present invention, as shown in figure 11, the datagram server of the present embodiment is on the basis of the server architecture of datagram shown in Figure 10, further, can also comprise: reminding module 1003, this reminding module 1003, for sending the information of the datagram of up-to-date issue to described mobile device, information is selected with the datagram making described mobile device reception user send according to described information, and the datagram that acquisition and described datagram select information corresponding.
The datagram server of the present embodiment, may be used for the technical scheme performing embodiment of the method datagram server side shown in Fig. 5, it realizes principle and technique effect is similar, repeats no more herein.
The present invention also provides a kind of datagram system, comprising: mobile device and datagram server; Wherein, mobile device is as described in mobile device embodiment one, embodiment two, embodiment three, embodiment four; Datagram server is as described in datagram server example one, embodiment two.
The datagram system of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 5, it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.