CN104021218B - A kind of method for information display and device - Google Patents
A kind of method for information display and device Download PDFInfo
- Publication number
- CN104021218B CN104021218B CN201410282851.XA CN201410282851A CN104021218B CN 104021218 B CN104021218 B CN 104021218B CN 201410282851 A CN201410282851 A CN 201410282851A CN 104021218 B CN104021218 B CN 104021218B
- Authority
- CN
- China
- Prior art keywords
- information
- mobile terminal
- network environment
- picture
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of method for information display and device, method includes:Detect the network environment residing for mobile terminal;When network environment is in the particular network environment pre-set, information download request is sent to server, to cause server after information download request is received, information is sent to mobile terminal;Receive and preserve information;After the reading for the being directed to information instruction of user is received, instruction is read in response, obtains the information preserved;The information of acquisition is shown on the display interface of mobile terminal.The present invention is when mobile terminal is in the network environment pre-set, download and preserve at least one information in the mobile terminal, no matter the mobile terminal is in state, as long as after the reading for the being directed to information instruction of user is received, it can be obtained on the mobile terminal and show the above-mentioned information downloaded and preserved in advance, so that no matter which kind of network environment mobile terminal is in, user can enter the reading of row information by mobile terminal.
Description
Technical field
The present invention relates to mobile communication technology field, more particularly to a kind of method for information display and device.
Background technology
With the continuous development of mobile communication technology, mobile terminal has been deep into the life of people.User can lead to
Cross the latest tendency that mobile terminal Internet access browses society.In order that user more easily understands current Domestic News, technology
The various news clients of staff development.
In the prior art, only in the state of mobile terminal is in networking, news client could push news, also
It is to say, in the state of mobile terminal is in Wi-Fi (Wireless-Fidelity, Wireless Fidelity) or 2G/3G/4G, Yong Hucai
News can be read by news client.However, Wi-Fi coverage is limited, mobile terminal be not it is in office where
Side may be connected to wireless network, and on the other hand, the 2G/3G/4G flow packages that operator provides a user are also limited.
Be not covered with carrier network when user is in and be not covered with Wi-Fi place, i.e., when mobile terminal be in from
During wire state, electronic equipment can not then receive the news of news client push;And when the 2G/3G/4G flow packages of user
When using up, if electronic equipment continues to the news of news client push, it is necessary to pay high campus network for this.By
It is above-mentioned to understand, when mobile terminal is in the situation that off-line state or flow package are used up, influence whether that user reads news money
News.
The content of the invention
Based on above mentioned problem, the embodiment of the invention discloses a kind of window display method, device.Technical scheme is as follows:
A kind of method for information display, applied to mobile terminal, method includes:
Detect the network environment residing for the mobile terminal;
When the network environment is in the particular network environment pre-set, information download request is sent to server,
To cause the server after described information download request is received, information is sent to the mobile terminal;
Receive and preserve described information;
After the reading for the being directed to described information instruction of user is received, respond described read and instruct, acquisition has preserved
Information;
The information of the acquisition is shown on the display interface of the mobile terminal.
Optionally, in above-mentioned method for information display, before the transmission information download request to server, also wrap
Include:
There is provided on the display interface of the mobile terminal for showing current network environment, and prompt the user whether after
The continuous prompting download information being downloaded;
After the instruction for the confirmation download that user is sent based on prompt message is received, continue to send under information to server
Carry request.
Optionally, in above-mentioned method for information display, the particular network environment pre-set is Wi-Fi network.
Optionally, it is described to receive the reading for being directed to described information of user in above-mentioned method for information display
After instruction, the information for reading instruction acquisition and having preserved is responded, including:
The network environment residing for the mobile terminal is detected, if the mobile terminal is in off-line state or 2G/3G/4G
State, after the reading for the being directed to described information instruction of user is received, respond the letter for reading instruction acquisition and having preserved
Breath.
Optionally, in above-mentioned method for information display, after receiving and preserving described information, methods described also includes:
The reading that user is received for the first information instructs;
The first information is determined whether in the information of the preservation, if it is, being obtained from the information of the preservation
The first information, and show on the display interface of the mobile terminal first information of the acquisition.
Optionally, in above-mentioned method for information display, before the network environment residing for the detection mobile terminal,
Also include:
The prompt message for whether starting download is provided on the display interface of the mobile terminal;
Network environment residing for the detection mobile terminal includes:
After receiving the confirmation that user sent based on the prompt message and starting the instruction downloaded, just detected described in
The step of network environment residing for mobile terminal.
Optionally, in above-mentioned method for information display, the server after described information download request is received, to
The mobile terminal sends information, including:
The server is after described information download request is received, using current point in time as start time point, by quantity
The mobile terminal is sent to for N information, and the information that the quantity is N is apart from the start time point time nearest N
Bar information, N are the natural number more than or equal to 1.
Optionally, in above-mentioned method for information display, described information includes word and picture;
It is described to receive and preserve described information, including:
The word is preserved into wide area information server table;
The network address of the picture is obtained, data conversion algorithm computing is carried out to the network address of the picture, obtains the net of picture
The algorithm values of location, the algorithm values are preserved to the database table;
Preserve on the region that the picture is filename name based on respective algorithms value into memory;
The information that the acquisition has preserved, including:
The algorithm values of the word segment of described information and the Picture section of described information are obtained in the database table;
According to the algorithm values of the Picture section of described information, described information is obtained in the storage region of the memory
Picture section.
Optionally, in above-mentioned method for information display, described information is news.
Corresponding with the above method, the embodiment of the present invention also provides a kind of information display device, applied to mobile terminal;
Device includes:
First network environmental detection unit, for detecting the network environment residing for the mobile terminal;
Download request transmitting element, for when the network environment be in pre-set particular network environment when, to clothes
Business device sends information download request, to cause the server after described information download request is received, to the movement eventually
End sends information;
Information holding unit, for receiving and preserving described information;
Information acquisition unit, for after the reading for the being directed to described information instruction of user is received, responding the reading
Instruction fetch, obtain the information preserved;
Information display unit, for showing the information of the acquisition on the display interface of the mobile terminal.
Optionally, in above-mentioned information display device, in addition to:
Prompting download information display unit, before the transmission information download request to server, in the movement
There is provided on the display interface of terminal for showing current network environment, and the download for prompting the user whether to continue to download carries
Show information;
The download request transmitting element after the instruction that the confirmation that user sent based on prompt message is downloaded is received, after
Continue to server and send information download request.
Optionally, in above-mentioned information display device, the particular network environment pre-set is Wi-Fi network.
Optionally, in above-mentioned information display device, described information acquiring unit includes:
Second network environment detection module, for detecting the network environment residing for the mobile terminal;
Data obtaining module, if detecting that the mobile terminal is in offline shape for the second network environment detection module
State or 2G/3G/4G states, after the reading for the being directed to described information instruction of user is received, respond the reading instruction and obtain
Take the information preserved.
Optionally, in above-mentioned information display device, described device also includes:
Instruction reception unit is read, for after receiving and reporting preservation described information, receiving user for the first information
Read instruction;
Information determination unit, for determining the first information whether in the information of the preservation, if it is, from described
The first information is obtained in the information of preservation, and the first letter of the acquisition is shown on the display interface of the mobile terminal
Breath.
Optionally, in above-mentioned information display device, in addition to:
Download and start information display unit;
Described download starts information display unit, and the mobile terminal is detected for the first network environmental detection unit
Before residing network environment, the prompt message for whether starting download is provided on the display interface of the mobile terminal;
The first network environmental detection unit is in the case where receiving the confirmation startup that user is sent based on the prompt message
After the instruction of load, the step of just carrying out detecting the network environment residing for the mobile terminal.
Optionally, in above-mentioned information display device, described information includes word and picture;
Described information storage unit, including:
Word preserving module, for preserving the word into wide area information server table;
Picture address acquisition module, for obtaining the network address of the picture, data conversion is carried out to the network address of the picture
Algorithm computing, the algorithm values of the network address of picture are obtained, preserve the algorithm values to the database table;
Picture preserving module, for preserving the picture into memory based on the area that respective algorithms value is filename name
On domain;
Described information acquiring unit, including:
First acquisition module, for obtaining the word segment of described information and the figure of described information in the database table
The algorithm values of piece part;
Second acquisition module, for the algorithm values of the Picture section according to described information, in the memory block of the memory
The Picture section of described information is obtained in domain.
Optionally, in above-mentioned information display device, described information is news.
Method and device provided in an embodiment of the present invention, when mobile terminal is in the particular network environment pre-set,
Download and preserve at least one information in the mobile terminal, therefore, no matter which kind of network environment the mobile terminal is subsequently in,
As long as after the reading for the being directed to information instruction of user is received, you can above-mentioned pre- to obtain and show on the mobile terminal
The information first downloaded and preserved so that no matter which kind of network environment mobile terminal is in, user can be entered by mobile terminal
The reading of row information.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for information display provided in an embodiment of the present invention;
Fig. 2 is another schematic flow sheet of method for information display provided in an embodiment of the present invention;
Fig. 3 is a kind of prompting interface that Fig. 2 embodiments of the present invention provide;
Fig. 4 is another prompting interface that Fig. 2 embodiments of the present invention provide;
Fig. 5 is a kind of structural representation of information display device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
With reference to figure 1, the embodiment of the present invention provides a kind of schematic flow sheet of method for information display, applied to mobile terminal.
This method can include:
S110:Detect the network environment residing for mobile terminal.
The executive agent of this method is mobile terminal, and mobile terminal can be mobile phone, tablet personal computer etc..Further, should
The a certain client that method can apply in mobile terminal, such as news client.
Network environment residing for mobile terminal can be WI-FI network, either 2G/3G/4G networks or off-line state.
It is not covered with carrier network when user is in and is not covered with Wi-Fi place, i.e., when mobile terminal is in off-line state.
When needing to detect the network environment residing for mobile terminal, phase can be carried out in the client software of mobile terminal
The request operation answered, for example, clicking on some function button, performing some menu option, or pass through some specific quick behaviour
Make, with triggering following detection mobile terminal residing for network environment the step of.The embodiment of the present invention starts detecting step to user
Concrete form and need not be defined.
S120:When network environment is in the particular network environment pre-set, mobile terminal sends information to server
Download request, to cause server after above- mentioned information download request is received, information is sent to mobile terminal.
The particular network environment pre-set can be WI-FI network or 2G/3G/4G networks, it is preferred that pre-set
Particular network is WI-FI network.When it is WI-FI network to detect the network environment residing for mobile terminal, mobile terminal can be with
Directly information download request is sent to server.On the other hand, if detecting that the network environment residing for mobile terminal is 2G/
3G/4G networks, prompted dialog frame can be ejected to user, to remind the current network environment of user to be kept away as 2G/3G/4G networks
Exempt from user and do not know residing network environment and download information, cause the waste of flow.
Server sends at least one information after above- mentioned information download request is received, to mobile terminal.Further,
The N bar information pre-set can be sent, such as 20 information.After server receives information download request, to mobile terminal
Send 20 information pre-set.The quantity for the information that the embodiment of the present invention is sent need not be simultaneously defined.
S130:Receive and preserve information.
S140:After the reading for the being directed to information instruction of user is received, instruction is read in response, obtains the letter preserved
Breath.
Mobile terminal can obtain 1 information preserved, or can obtain above-mentioned when obtaining the information preserved
The N bar information pre-set.
S150:The information of acquisition is shown on the display interface of mobile terminal.
Method provided in an embodiment of the present invention, when mobile terminal is in the particular network environment pre-set, download simultaneously
At least one information is preserved in the mobile terminal, no matter which kind of network environment the mobile terminal is subsequently in, as long as receiving
To after the reading for the being directed to information instruction of user, you can above-mentioned download and protect in advance to obtain and show on the mobile terminal
The information deposited so that no matter which kind of network environment mobile terminal is subsequently in, user can enter row information by mobile terminal
Reading.
With reference to Fig. 2, a kind of schematic flow sheet of the method for information display of the present invention of detailed introduction.
S210:Detect the network environment residing for mobile terminal.
In other embodiments, before the network environment residing for detection mobile terminal, can also include:
The prompt message for whether starting download is provided on the display interface of mobile terminal;
After the instruction for the confirmation startup download that user is sent based on the prompt message is received, just carry out detecting movement eventually
The step of holding residing network environment.
During actual displayed, prompting interface as shown in Figure 3, prompting circle can be shown on the display interface of mobile terminal
The prompting download information for whether starting download is provided on face, the prompting icon as shown "Yes" "No" on interface.User selects
During "Yes", then continue S210, when user selects "No", then can terminate flow.
S220:When network environment is in the particular network environment pre-set, above carried in the display interface of mobile terminal
For for showing current network environment, and prompt the user whether to continue the prompting download information downloaded.
Above-mentioned network environment can be 2G/3G/4G networks.When network environment is in 2G/3G/4G networks, mobile whole
The network environment that the display at end is current is 2G/3G/4G networks, and provides the prompting download information for whether continuing to download.It is real
When border is shown, prompting interface as shown in Figure 4 can be shown on the display interface of mobile terminal, being provided in the prompting interface is
It is no continue download prompting download information, as shown on interface " it is determined that " " cancellation " icon.User's selection " it is determined that " when,
Then continue S230, when user selects " cancellation ", then can terminate flow.
Optionally, in other embodiments of the invention, the above-mentioned network environment pre-set can be Wi-Fi network.
When detecting that network environment is in Wi-Fi network, current network environment can be shown on the display interface of mobile terminal
For Wi-Fi network, and provide the prompting download information for whether continuing to download.Net is detected it is, of course, understood that working as
, can also be only in the case where whether the display interface offer of mobile terminal continues to download when network environment is in Wi-Fi network
Carry prompt message.
Further, mobile terminal can determine whether current network state, different according to network state, eject different promptings
Dialog box, to prompt the user whether to continue to download.If in the case of being currently at WI-FI network, eject the first prompted dialog
Frame, to remind user that current network environment is WI-FI network, if in the case of being currently at 2G/3G/4G networks, ejection
Second prompted dialog frame, to remind the current network environment of user as 2G/3G/4G networks.Mobile terminal judges current network
State, different prompting interfaces is ejected according to different network states, to prompt the user whether to continue to download, can so be avoided
User's download information in the case where not knowing whether to be in wireless network, is caused so as to avoid due to wasting a large amount of wanderings
Loss.
Further, can also be when it be Wi-Fi network to detect the network environment pre-set, not providing a user is
The no prompting download information for continuing to download, continues S230.
S230:After the instruction for the confirmation download that user is sent based on prompt message is received, continue to send to server
Information download request, to cause server after information download request is received, information is sent to mobile terminal.
Further, server, can be using current point in time as start time point, by number after information download request is received
The information measured as N is sent to mobile terminal, and the information that quantity is N is to be apart from start time point time nearest N bar information, N
Natural number more than or equal to 1.Specifically, the information that server is sent can be news information.
For example, server is after information download request is received, current point in time during receiving download request is starting
Point, the news that quantity is 20 can be sent to mobile terminal, the information that quantity is 20 is apart from the above-mentioned start time point time
Nearest 20 i.e. newest news.
S240:Receive and preserve information.
Mobile terminal of introducing in detail below receives and preserves information to the implementation process of database.
In one embodiment of the invention, above- mentioned information can include word and picture, and information is preserved in mobile terminal
When, word and picture can be preserved respectively, for example, preserving word into wide area information server table;Obtain picture
Network address, data conversion algorithm computing is carried out to the network address of picture, obtains the algorithm values of the network address of picture;Algorithm values are preserved to data
Storehouse table, and in the memory space of memory, new file is established as filename using the algorithm values;Then, it is network address by picture
On picture preserve into memory based on respective algorithms value be filename name region on.
Above-mentioned database table can be SQLlite databases, and data conversion algorithm computing can be MD5 (Message
Digest Algorithm MD5, the entitled Message Digest Algorithm 5 of Chinese) conversion.
Further, information can be preserved with JSON files corresponding to Webpage, and the word segment in information can wrap
Include article ID numberings, article title, article particular content, author, comment number.Picture in information includes small figure corresponding to article
Be marked with and article content in the picture that includes.Server by least one information in a manner of JSON to mobile terminal, it is mobile eventually
The client software at end receives the information.After information is received, automatic parsing returns corresponding the client software of mobile terminal
JSON files, JSON files are as shown in table 1.
Table 1
In JSON files comprising article ID numberings, article title, article particular content, author, small icon corresponding to article,
The information such as the picture included in article content.Client software can arrive word segment storage according to the content in JSON files
In SQLite databases in corresponding field.Picture in information is downloaded processing with another thread.
A for example, picture address in table 1 " picture included in article content ":“http://
Img1.mydrivers.com/img/20140331/610786af83014b0dae35235e 1672de65_300.jpg ", such as
Picture on the fruit address is saved in the memory of smart machine, it is necessary to exists in a manner of file, therefore, it is necessary to will
This network address carries out data conversion algorithm computing, can specifically carry out MD5 computings, the MD5 values of obtained network address are:
97B50E82354EE3240C8A46F2D7B5C3A0, then corresponding file is entitled:cache_
97B50E82354EE3240C8A46F2D7B5C3A0, the position for being saved in smart machine internal storage are:
data\com.mydrivers.newsclient\cache\cache_
97B50E82354EE3240C8A46F2D7B5C3A0,
Other pictures are all downloaded and preserved using same method, will not be described here.
S250:After the reading for the being directed to information instruction of user is received, instruction is read in response, obtains the letter preserved
Breath.
Specifically, S250 can include:
The network environment residing for the mobile terminal is detected, if the mobile terminal is in off-line state or 2G/3G shapes
State, after the reading for the being directed to described information instruction of user is received, respond the information for reading instruction acquisition and having preserved.
If that is, having preserved user's information to be read, refer to receiving reading of the user for the information
After order, if current mobile terminal is in wifi network, then the download and displaying of row information can be entered in real time, but if currently
Mobile terminal is in off-line state or 2G/3G/4G states, can directly go to obtain saved information, therefore, there is no need to disappear
Consume flow.
For example, before S250, the network environment residing for mobile terminal can be detected, if mobile terminal is in offline shape
State or 2G/3G/4G states, then the step of proceeding to respond to S250.
, can be with if mobile terminal is in 2G/3G/4G states:
The instruction whether further read is provided on the display interface of mobile terminal;
After receiving user and selecting to determine the download instruction of download, the step of proceeding to respond to read instruction.
In above-mentioned S250 steps, obtain the information preserved and may further include:Obtain the information that M bars have preserved, M
≤ N and be natural number more than or equal to 1.That is, the quantity needs that user reads information are stored less than or equal to having protected
Quantity.
If information includes word and picture, and word exemplary in foregoing S240 and picture point are employed in S240
The mode of preservation is opened, then the information preserved is obtained in S250, can be included:
The algorithm values of the word segment of information and the Picture section of information are obtained in database table;According to the picture of information
Partial algorithm values, the Picture section of described information is obtained in the storage region of memory.
S260:The information of acquisition is shown on the display interface of mobile terminal.
The article list content of the present embodiment request server, mobile terminal is by the content that intelligently parsing provides by article
Content and picture.Word segment is stored in SQLite databases, and picture is then according to by the corresponding network address of figure, with MD5 values
Method is saved in the region for the memory specified, when user is using 2G/3G/ in no access high speed internet or user
, then can be without downloading word and picture again, so as to reach the purpose saved user and use campus network when 4G networks.
In other embodiments of the invention, above-mentioned 240 receive and after preserving information, can also include:Receive user
Reading for the first information instructs;The first information is determined whether in the information of above-mentioned preservation, if it is, from above-mentioned preservation
Information in obtain the first information, and the first information of acquisition is shown on the display interface of mobile terminal.
It is understood that download and preservation of the client for information can be with the normal uses of user customer simultaneously
Row is carried out.That is under specific network environment, user can be with normal use client, in the feelings for not influenceing user and using
Under condition, client can perform above-mentioned method, such as open thread in addition and perform above-mentioned method, and partial information is received simultaneously
Preserve.When subsequent user needs to read some information, such as the first information, client may determine that the first information
Whether have been carried out downloading and preserve, if it is, without downloading again, saved network traffics.
For example, client can be news client, and information can be news, and the first information can be one new
Hear, the news can be any news item pushed in the news client of mobile terminal.The reading instruction of the first information can
Think that the news reading for this news to the transmission of news client instructs when detecting that user clicks on a certain news.
, can be by all picture addresses in the news, such as picture url and news client is when downloading and preserving news
Location is all retrieved.In the case that news client can use not influenceing user and read news, another thread of opening is pressed
According to the above-mentioned S240 mode for downloading word and picture, the word segment of part news and Picture section are downloaded and protected
Deposit.When user selects news item to be read by news client, news client can first remove database and storage
Search whether to have downloaded the news in device, if it is, without downloading again.This method can improve speed of download, and
And if when user reads under 2G/3G/4G network conditions, it is not necessary to will re-download news in each reading, save
Network traffics.
Information in above-mentioned all embodiments can be news, below by taking news as an example, illustrate the reality of above-described embodiment
Existing process.
For above-mentioned mobile terminal by taking mobile phone as an example, other mobile terminals such as tablet personal computer may be referred to the implementation of mobile phone,
Therefore not to repeat here.
When mobile phone is in Wi-Fi network, user passes through the news Client browse news on mobile phone, the use of news client
Offline download button is provided with the interface of family, after user clicks on offline download button, news client will determine that current net
Network type, if Wi-Fi network, then transmitted news download request to server, server can be according to the download request, will be pre-
The newest N bar news first stored, such as 20 news are sent to news client.What news client the reception server was sent
20 news, and the picture in news article and word are downloaded, the word content of news is stored in mobile phone memory database
In database table, and the value that the network address of picture is carried out after MD5 computings is equally stored into above-mentioned database table, and by news
Picture preserve into memory based on MD5 values be filename name region on.
And after user clicks on offline download button, news client judges current network type, judges current net
When network type is 2G/3G/4G states, news client can eject prompt message, such as Fig. 4 institutes in the user interface of mobile phone
Show, prompt the user whether to continue to download, if user's selection continues to download, the figure in news article is downloaded from server
Piece and word, the word content of news are stored in mobile phone memory wide area information server table, and the network address of picture carries out MD5 computings
Equally store afterwards into above-mentioned database table, it is filename name that the picture in news, which is preserved into memory based on MD5 values,
On region.
When mobile phone is in off-line state, if user needs to read news, news client can be according to user
Selection read in memory before locally downloading news, and news is included in the user interface of mobile phone.And work as
When mobile phone is in 2G/3G/4G, if user clicks on certain news and read, news client can be first gone in memory
Retrieved using the MD5 values of the news picture network address as key, if it does, just no longer re-download the news, when in the absence of
Shi Caihui requests internet is downloaded the news, can so save the mobile phone flow of user.
Corresponding with foregoing invention device with reference to figure 5, the embodiment of the present invention also provides a kind of information display device, application
In mobile terminal, device includes:
First network environmental detection unit 100, for detecting the network environment residing for the mobile terminal;
Download request transmitting element 110, for when the network environment be in pre-set particular network environment when, to
Server sends information download request, to cause the server after described information download request is received, to the movement
Terminal sends information;
Information holding unit 120, for receiving and preserving described information;
Information acquisition unit 130, after being instructed in the reading for being directed to described information for receiving user, described in response
Instruction is read, obtains the information preserved;
Information display unit 140, for showing the information of the acquisition on the display interface of the mobile terminal.
Device provided in an embodiment of the present invention, when mobile terminal is in the particular network environment pre-set, download simultaneously
At least one information is preserved in the mobile terminal, no matter which kind of network environment the mobile terminal is subsequently in, as long as receiving
To after the reading for the being directed to information instruction of user, you can above-mentioned download and protect in advance to obtain and show on the mobile terminal
The information deposited so that no matter which kind of network environment mobile terminal is in, user can enter readding for row information by mobile terminal
Read.
Further, in other embodiments of the invention, in above- mentioned information display device, in addition to:
Prompting download information display unit, before the transmission information download request to server, in the movement
There is provided on the display interface of terminal for showing current network environment, and the download for prompting the user whether to continue to download carries
Show information;
The download request transmitting element after the instruction that the confirmation that user sent based on prompt message is downloaded is received, after
Continue to server and send information download request.
Further, in other embodiments of the invention, in above- mentioned information display device, it is described pre-set it is specific
Network environment is Wi-Fi network.
Further, in other embodiments of the invention, in above- mentioned information display device, described information acquiring unit bag
Include:
Second network environment detection module, for detecting the network environment residing for the mobile terminal;
Data obtaining module, if detecting that the mobile terminal is in offline shape for the second network environment detection module
State or 2G/3G/4G states, after the reading for the being directed to described information instruction of user is received, respond the reading instruction and obtain
Take the information preserved.
Further, in other embodiments of the invention, in above- mentioned information display device, described device also includes:
Instruction reception unit is read, for after receiving and reporting preservation described information, receiving user for the first information
Read instruction;
Information determination unit, for determining the first information whether in the information of the preservation, if it is, from described
The first information is obtained in the information of preservation, and the first letter of the acquisition is shown on the display interface of the mobile terminal
Breath.
Further, in other embodiments of the invention, in above- mentioned information display device, in addition to download and start information
Display unit;
Described download starts information display unit, and the mobile terminal is detected for the first network environmental detection unit
Before residing network environment, the prompt message for whether starting download is provided on the display interface of the mobile terminal;
The first network environmental detection unit is in the case where receiving the confirmation startup that user is sent based on the prompt message
After the instruction of load, the step of just carrying out detecting the network environment residing for the mobile terminal.
Further, in other embodiments of the invention, in above- mentioned information display device, described information include word with
And picture;
Described information storage unit, including:
Word preserving module, for preserving the word into wide area information server table;
Picture address acquisition module, for obtaining the network address of the picture, data conversion is carried out to the network address of the picture
Algorithm computing, the algorithm values of the network address of picture are obtained, preserve the algorithm values to the database table;
Picture preserving module, for preserving the picture into memory based on the area that respective algorithms value is filename name
On domain;
Described information acquiring unit, including:
First acquisition module, for obtaining the word segment of described information and the figure of described information in the database table
The algorithm values of piece part;
Second acquisition module, for the algorithm values of the Picture section according to described information, in the memory block of the memory
The Picture section of described information is obtained in domain.
Further, in other embodiments of the invention, in above- mentioned information display device, described information is news.
It should be noted that herein, be such as used merely to an entity with second or the like relational terms or
Person operates to be made a distinction with another entity or operation, and is not necessarily required or implied to exist between these entities or operation and appoint
What this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or equipment including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or equipment institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including institute
State in process, method, article or the equipment of key element and other identical element also be present.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is
To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium,
The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
It is interior.
Claims (11)
1. a kind of method for information display, it is characterised in that applied to mobile terminal, method includes:
Detect the network environment residing for the mobile terminal;
When the network environment is in the particular network environment pre-set, information download request is sent to server, so that
The server is obtained after described information download request is received, information is sent to the mobile terminal, wherein, it is described to set in advance
The particular network environment put is Wi-Fi network;
Receive and preserve described information;
After the reading for the being directed to described information instruction of user is received, respond described read and instruct, obtain the letter preserved
Breath, including:
The network environment residing for the mobile terminal is detected, if the mobile terminal is in off-line state or 2G/3G/4G shapes
State, after the reading for the being directed to described information instruction of user is received, respond the information for reading instruction acquisition and having preserved;
The information of the acquisition is shown on the display interface of the mobile terminal;
Described information includes word and picture;
It is described to receive and preserve described information, including:
The word is preserved into wide area information server table;
The network address of the picture is obtained, data conversion algorithm computing is carried out to the network address of the picture, obtains the network address of picture
Algorithm values, the algorithm values are preserved to the database table;
Preserve on the region that the picture is filename name based on respective algorithms value into memory;
The information that the acquisition has preserved, including:
The algorithm values of the word segment of described information and the Picture section of described information are obtained in the database table;
According to the algorithm values of the Picture section of described information, the picture of acquisition described information in the storage region of the memory
Part.
2. according to the method for claim 1, it is characterised in that before the transmission information download request to server, also
Including:
There is provided on the display interface of the mobile terminal for showing current network environment, and prompt the user whether to continue into
The prompting download information that row is downloaded;
After the instruction for the confirmation download that user is sent based on prompt message is received, continue to download to server transmission information and ask
Ask.
3. according to the method for claim 1, it is characterised in that after receiving and preserving described information, methods described is also wrapped
Include:
The reading that user is received for the first information instructs;
The first information is determined whether in the information of the preservation, if it is, described in being obtained from the information of the preservation
The first information, and show on the display interface of the mobile terminal first information of the acquisition.
4. according to the method for claim 1, it is characterised in that network environment residing for the detection mobile terminal it
Before, in addition to:
The prompt message for whether starting download is provided on the display interface of the mobile terminal;
Network environment residing for the detection mobile terminal includes:
After the instruction for the confirmation startup download that user is sent based on the prompt message is received, just carry out detecting the movement
The step of network environment residing for terminal.
5. according to the method for claim 1, it is characterised in that the server is receiving described information download request
Afterwards, information is sent to the mobile terminal, including:
The server is after described information download request is received, and is N's by quantity using current point in time as start time point
Information is sent to the mobile terminal, and the information that the quantity is N is to believe apart from the start time point time nearest N bars
Breath, N are the natural number more than or equal to 1.
6. according to the method described in claim 1-5 any one, it is characterised in that described information is news.
7. a kind of information display device, it is characterised in that applied to mobile terminal, device includes:
First network environmental detection unit, for detecting the network environment residing for the mobile terminal;
Download request transmitting element, for when the network environment be in pre-set particular network environment when, to server
Information download request is sent, to cause the server after described information download request is received, is sent out to the mobile terminal
Deliver letters breath, wherein, the particular network environment pre-set is Wi-Fi network;
Information holding unit, for receiving and preserving described information;
Information acquisition unit, refer to for after the reading for the being directed to described information instruction of user is received, responding the reading
Order, the information preserved is obtained, including:
Second network environment detection module, for detecting the network environment residing for the mobile terminal;
Data obtaining module, if for the second network environment detection module detect the mobile terminal be in off-line state or
2G/3G/4G states, after the reading for the being directed to described information instruction of user is received, respond described read and instructed acquisition
The information of preservation;
Information display unit, for showing the information of the acquisition on the display interface of the mobile terminal;
Described information includes word and picture;
Described information storage unit, including:
Word preserving module, for preserving the word into wide area information server table;
Picture address acquisition module, for obtaining the network address of the picture, data conversion algorithm is carried out to the network address of the picture
Computing, the algorithm values of the network address of picture are obtained, preserve the algorithm values to the database table;
Picture preserving module, for preserving the picture into memory based on the region that respective algorithms value is filename name
On;
Described information acquiring unit, including:
First acquisition module, for obtaining the word segment of described information and the picture portion of described information in the database table
The algorithm values divided;
Second acquisition module, for the algorithm values of the Picture section according to described information, in the storage region of the memory
Obtain the Picture section of described information.
8. device according to claim 7, it is characterised in that also include:
Prompting download information display unit, before the transmission information download request to server, in the mobile terminal
Display interface on provide for showing current network environment, and prompt the user whether to continue the prompting download letter downloaded
Breath;
The download request transmitting element after the instruction that the confirmation that user sent based on prompt message is downloaded is received, continue to
Server sends information download request.
9. device according to claim 7, it is characterised in that described device also includes:
Instruction reception unit is read, for after receiving and reporting preservation described information, receiving the reading that user is directed to the first information
Instruction;
Information determination unit, for determining the first information whether in the information of the preservation, if it is, from the preservation
Information in obtain the first information, and the first information of the acquisition is shown on the display interface of the mobile terminal.
10. device according to claim 7, it is characterised in that also include downloading starting information display unit;
Described download starts information display unit, is detected for the first network environmental detection unit residing for the mobile terminal
Network environment before, the prompt message for whether starting download is provided on the display interface of the mobile terminal;
The first network environmental detection unit is receiving what user was downloaded based on the confirmation startup that the prompt message is sent
After instruction, the step of just carrying out detecting the network environment residing for the mobile terminal.
11. according to the device described in claim 7-10 any one, it is characterised in that described information is news.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410282851.XA CN104021218B (en) | 2014-06-23 | 2014-06-23 | A kind of method for information display and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410282851.XA CN104021218B (en) | 2014-06-23 | 2014-06-23 | A kind of method for information display and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104021218A CN104021218A (en) | 2014-09-03 |
CN104021218B true CN104021218B (en) | 2018-01-19 |
Family
ID=51437972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410282851.XA Active CN104021218B (en) | 2014-06-23 | 2014-06-23 | A kind of method for information display and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104021218B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9672026B2 (en) | 2014-07-21 | 2017-06-06 | Xiaomi Inc. | Light app offline updating method, device and terminal |
CN104156233B (en) * | 2014-07-21 | 2016-05-18 | 小米科技有限责任公司 | Light application off-line update method, device and terminal |
CN104346460B (en) * | 2014-11-07 | 2018-09-21 | 北京奇虎科技有限公司 | Carry out the method, apparatus and browser client of file download |
CN106528193B (en) * | 2015-09-15 | 2019-11-12 | 腾讯科技(深圳)有限公司 | A kind of application update method and terminal |
CN105656664A (en) * | 2015-12-23 | 2016-06-08 | 小米科技有限责任公司 | Information display method and device |
CN105657071B (en) * | 2016-04-01 | 2018-11-30 | 盐城吉大智能终端产业研究院有限公司 | A kind of live information method for pushing of Network Environment |
CN107026895A (en) * | 2017-01-12 | 2017-08-08 | 阿里巴巴集团控股有限公司 | Method for pushing, device and the server of the application list data |
CN109799997B (en) | 2017-11-16 | 2023-04-25 | 中兴通讯股份有限公司 | Management method for presetting third party application, intelligent terminal and storage medium |
CN108255371A (en) * | 2018-01-18 | 2018-07-06 | 广东欧珀移动通信有限公司 | A kind of method for pushing of information, mobile terminal and storage medium |
CN107995375A (en) * | 2018-01-18 | 2018-05-04 | 广东欧珀移动通信有限公司 | A kind of information-pushing method, mobile terminal and storage medium |
CN109376323B (en) * | 2018-09-11 | 2023-06-16 | 平安科技(深圳)有限公司 | Application running method, device, computer device and storage medium |
CN113360195A (en) * | 2021-06-07 | 2021-09-07 | 挂号网(杭州)科技有限公司 | Protocol loading method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102378163A (en) * | 2011-10-21 | 2012-03-14 | 福州博远无线网络科技有限公司 | Method for quickly downloading file by mobile phone user |
CN102571921A (en) * | 2011-12-09 | 2012-07-11 | 广东威创视讯科技股份有限公司 | Network access method and device for mobile equipment |
CN103379472A (en) * | 2012-04-12 | 2013-10-30 | 腾讯科技(深圳)有限公司 | File downloading method, device and mobile terminal |
CN103685474A (en) * | 2013-11-21 | 2014-03-26 | 中兴通讯股份有限公司 | File downloading method and file downloading device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101702743A (en) * | 2009-11-04 | 2010-05-05 | 中兴通讯股份有限公司 | Self-adaption adjustment method of mobile terminal browser and device thereof |
CN103067481B (en) * | 2012-12-24 | 2016-10-05 | 北京奇虎科技有限公司 | Data transmission method, equipment and system |
-
2014
- 2014-06-23 CN CN201410282851.XA patent/CN104021218B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102378163A (en) * | 2011-10-21 | 2012-03-14 | 福州博远无线网络科技有限公司 | Method for quickly downloading file by mobile phone user |
CN102571921A (en) * | 2011-12-09 | 2012-07-11 | 广东威创视讯科技股份有限公司 | Network access method and device for mobile equipment |
CN103379472A (en) * | 2012-04-12 | 2013-10-30 | 腾讯科技(深圳)有限公司 | File downloading method, device and mobile terminal |
CN103685474A (en) * | 2013-11-21 | 2014-03-26 | 中兴通讯股份有限公司 | File downloading method and file downloading device |
Also Published As
Publication number | Publication date |
---|---|
CN104021218A (en) | 2014-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104021218B (en) | A kind of method for information display and device | |
CN103685528B (en) | Information displaying method and device | |
CN107864173A (en) | Terminal page caching method, system and readable storage medium storing program for executing | |
EP2854372A1 (en) | Method and device for displaying pushed information | |
US20160241589A1 (en) | Method and apparatus for identifying malicious website | |
CN104065681B (en) | The method and system of preview is carried out to the ciphered compressed packet in attachment | |
CN110096660A (en) | Method, apparatus and electronic equipment for loading page picture | |
JP2013122768A (en) | Apparatus and methods for retrieving/downloading content on communication device | |
CN103810176A (en) | Pre-fetching accessing method and device of webpage information | |
CN102486794B (en) | Method, device and system for acquiring rich-media file | |
CN105867714A (en) | Application downloading method, apparatus and system | |
TWI760382B (en) | Method, device, system and intelligent communication device for displaying item information | |
CN107484190B (en) | Method for connecting network, mobile terminal and computer readable storage medium | |
CN107645551A (en) | Document transmission method and device | |
CN104253714A (en) | Monitoring method, system, browser and server | |
CN105897835A (en) | Mobile terminal browser file transfer method and mobile terminal | |
US20120137221A1 (en) | Web Browser Toolbar | |
CN103838851B (en) | The rendering intent and device of three-dimensional scene models file | |
CN104572710B (en) | The processing method and processing device of webpage information | |
CN107679532B (en) | Data transmission method, device, mobile terminal and computer readable storage medium | |
CN111859127A (en) | Subscription method and device of consumption data and storage medium | |
CN104008096B (en) | A kind of application operating method and apparatus based on browser | |
CN108171079A (en) | A kind of collecting method based on terminal, device, terminal and storage medium | |
WO2017156986A1 (en) | Full-picture image display method and system for mobile terminal | |
CN107562302A (en) | Method and apparatus for operating the file on mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 100041 Beijing, Shijingshan District Xing Xing street, building 30, No. 3, building 2, A-0071 Patentee after: Beijing cheetah Mobile Technology Co., Ltd. Address before: 100041 Beijing city Shijingshan District Badachu high tech Park West Wells Road No. 3 Building No. 3 1100A Patentee before: SHELL INTERNET (BEIJING) SECURITY TECHNOLOGY CO., LTD. |
|
CP03 | Change of name, title or address |