CN105224526B - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN105224526B
CN105224526B CN201410224677.3A CN201410224677A CN105224526B CN 105224526 B CN105224526 B CN 105224526B CN 201410224677 A CN201410224677 A CN 201410224677A CN 105224526 B CN105224526 B CN 105224526B
Authority
CN
China
Prior art keywords
configuration information
server
information
electronic device
fed back
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
Application number
CN201410224677.3A
Other languages
Chinese (zh)
Other versions
CN105224526A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410224677.3A priority Critical patent/CN105224526B/en
Publication of CN105224526A publication Critical patent/CN105224526A/en
Application granted granted Critical
Publication of CN105224526B publication Critical patent/CN105224526B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data processing method and electronic equipment. The electronic equipment is provided with a webpage application program, and the method comprises the following steps: acquiring an operation on the webpage application program; responding to the operation, and detecting state information of the electronic equipment; generating request information for acquiring first configuration information according to the state information, and sending the request information to a server; acquiring the first configuration information fed back by the server; and processing the data sent by the server according to the first configuration information. By adopting the method or the electronic equipment, the different types of data related to the webpage application program can be separately transmitted, and the transmission times can be reduced for the data which is not required to be transmitted each time, so that the occupation of transmission resources is reduced.

Description

Data processing method and electronic equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a data processing method and an electronic device.
Background
Modern electronic devices, especially terminals such as mobile phones, can be networked. After networking, the user may use the electronic device to browse web pages, run web applications, and the like.
Among them, a Web application, also called WebApp, refers to a Web-based system or application that functions to publish a complex set of content and functions to a wide range of end users. The web application has a great characteristic that the server can return data processed for the operation input by the user to the terminal as long as the terminal interacts with the server through the web page, without installing a complex processing program for processing the operation input by the user on the terminal.
In the prior art, when a WebApp is used, data that is finally displayed on a display interface of the WebApp by a terminal is mainly sent to the terminal by a server. These data include not only the graphic or text information that needs to be actually displayed, but also the layout information used when displaying these graphic or text information.
However, in the prior art, each time the server sends the display data to the terminal, the server needs to include the above two kinds of information, which results in occupying more transmission resources.
Disclosure of Invention
The invention aims to provide a data processing method and electronic equipment, which can be used for carrying out separate transmission on different types of data related to a webpage application program, and can reduce the transmission times of the data which are not required to be transmitted every time, thereby reducing the occupation of transmission resources.
In order to achieve the purpose, the invention provides the following scheme:
a data processing method is applied to an electronic device, the electronic device is provided with a webpage application program, and the method comprises the following steps:
acquiring an operation on the webpage application program;
responding to the operation, and detecting state information of the electronic equipment;
generating request information for acquiring first configuration information according to the state information, and sending the request information to a server;
acquiring the first configuration information fed back by the server;
and processing the data sent by the server according to the first configuration information.
Optionally, the detecting the state information of the electronic device specifically includes:
detecting a hardware parameter of the electronic device;
and/or detecting a spatial pose of the electronic device.
Optionally, before the obtaining the first configuration information fed back by the server, the method further includes:
acquiring first characteristic information which is fed back by the server and used for identifying the first configuration information;
acquiring second characteristic information of second configuration information which is already stored in the electronic equipment;
judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judgment result;
and when the first judgment result is negative, executing the step of obtaining the first configuration information fed back by the server.
Optionally, the method further includes:
and when the first judgment result is yes, exiting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information.
Optionally, the obtaining the first configuration information fed back by the server specifically includes:
acquiring downloading strategy configuration information fed back by the server;
and the downloading strategy configuration information is used for indicating the terminal to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
Optionally, the obtaining the first configuration information fed back by the server specifically includes:
acquiring user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
the processing of the data sent by the server specifically includes:
and when the electronic equipment receives the data sent by the server, displaying the data in the interface layout mode.
An electronic device having a web application installed thereon, the electronic device comprising:
an operation acquisition unit configured to acquire an operation on the web application;
a state information detection unit for detecting state information of the electronic device in response to the operation;
the request information generating unit is used for generating request information used for acquiring first configuration information according to the state information and sending the request information to a server;
a configuration information obtaining unit, configured to obtain the first configuration information fed back by the server;
and the data processing unit is used for processing the data sent by the server according to the first configuration information.
Optionally, the state information detecting unit specifically includes:
the hardware parameter detection subunit is used for detecting the hardware parameters of the electronic equipment;
and/or a spatial attitude detection subunit, configured to detect a spatial attitude of the electronic device.
Optionally, the method further includes:
a first feature information obtaining unit, configured to obtain, before obtaining the first configuration information fed back by the server, first feature information fed back by the server and used for identifying the first configuration information;
a second feature information acquisition unit configured to acquire second feature information of second configuration information already stored in the electronic device;
the first judging unit is used for judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judging result;
and the configuration information acquisition unit control unit is used for controlling the configuration information acquisition unit to execute the step of acquiring the first configuration information fed back by the server when the first judgment result is negative.
Optionally, the method further includes:
and the thread quitting unit is used for quitting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information when the first judgment result is yes.
Optionally, the configuration information obtaining unit specifically includes:
a download strategy configuration information obtaining subunit, configured to obtain the download strategy configuration information fed back by the server;
and the downloading strategy configuration information is used for indicating the terminal to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
Optionally, the configuration information obtaining unit specifically includes:
a user interface layout configuration information obtaining subunit, configured to obtain user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
the data processing unit specifically includes:
and the display subunit is used for displaying the data in the interface layout mode after the electronic equipment receives the data sent by the server.
According to the specific embodiment provided by the invention, the invention discloses the following technical effects:
according to the data processing method and the electronic device, the first configuration information fed back by the server is obtained; processing the data sent by the server according to the first configuration information; the data of different types related to the webpage application program can be separately transmitted, and for the data which is not required to be transmitted each time, the transmission times can be reduced, so that the occupation of transmission resources is reduced; meanwhile, the state information of the electronic equipment is detected; generating request information for acquiring first configuration information according to the state information, and sending the request information to a server; the corresponding configuration information can be acquired according to the state of the electronic equipment, so that the efficiency of acquiring the configuration information can be improved, and the configuration information with high pertinence can be acquired.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flow chart of an embodiment 1 of a data processing method of the present invention;
FIG. 2 is a flow chart of an embodiment 2 of the data processing method of the present invention;
FIG. 3 is a flow chart of embodiment 3 of the data processing method of the present invention;
FIG. 4 is a flow chart of an embodiment 4 of the data processing method of the present invention;
FIG. 5 is a flow chart of an embodiment 5 of the data processing method of the present invention;
fig. 6 is a block diagram of an embodiment of an electronic device of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
First, it should be noted that the data processing method of the present invention is applied to an electronic device. The electronic device can be a mobile phone, a tablet computer, a notebook computer and the like. The electronic device is provided with a web application.
Fig. 1 is a flowchart of a data processing method embodiment 1 of the present invention. As shown in fig. 1, the method may include:
step 101: acquiring an operation on the webpage application program;
the operation may be user initiated. The operation may be various types of operations according to a hardware configuration of the electronic device. For example, when the electronic device is a device having a touch screen, the operation may be a touch operation on the touch screen; when the electronic device is a device having a key, the operation may be a click operation on the key.
The operation may be an operation for starting the web application, or another operation performed on the web application after the web application is started. For example, it may be an operation that invokes certain functions of the web application.
Step 102: responding to the operation, and detecting state information of the electronic equipment;
the state information may include information indicating an inherent attribute of the electronic device, and may also include information indicating a use state of the electronic device. Specifically, the information indicating the inherent attribute of the electronic device may be hardware parameter information of the electronic device, for example, a screen size parameter of the electronic device; the information representing the use state of the electronic device may be spatial posture information of the electronic device, for example, whether the use posture of the electronic device in the hand of the user is landscape or portrait.
Step 103: generating request information for acquiring first configuration information according to the state information, and sending the request information to a server;
the first configuration information may be configuration information representing an interface layout of the web application, configuration information indicating a download mechanism of the web application, or the like.
Step 104: acquiring the first configuration information fed back by the server;
step 105: and processing the data sent by the server according to the first configuration information.
The data sent by the server may be specific content that needs to be displayed by a program interface of the web application sent by the server.
When the first configuration information is configuration information representing an interface layout of the web application, the processing of the data sent by the server may specifically include:
and displaying the data sent by the server by adopting the interface layout mode. For example, when the data sent by the server is a text, the interface layout mode may define a font format, a font size, a word spacing, a line spacing, and other formats of the text, so that the font format, the font size, the word spacing, the line spacing, and other formats of the text may be adjusted to be the same as the formats defined in the interface layout mode.
When the first configuration information is configuration information indicating a downloading mechanism of the web application, the processing the data sent by the server may specifically include:
and receiving the data sent by the server by adopting a downloading mechanism defined in the configuration information. For example, if it is specified in the first configuration information that data can be downloaded through a network only when the electronic device is in a wifi network, the data sent by the server can be received when the electronic device is in the wifi network, and the data sent by the server cannot be received when the electronic device is not in the wifi network.
In summary, in this embodiment, the first configuration information fed back by the server is obtained; processing the data sent by the server according to the first configuration information; the data of different types related to the webpage application program can be separately transmitted, and for the data which is not required to be transmitted each time, the transmission times can be reduced, so that the occupation of transmission resources is reduced; meanwhile, the state information of the electronic equipment is detected; generating request information for acquiring first configuration information according to the state information, and sending the request information to a server; the corresponding configuration information can be acquired according to the state of the electronic equipment, so that the efficiency of acquiring the configuration information can be improved, and the configuration information with high pertinence can be acquired.
Fig. 2 is a flowchart of a data processing method embodiment 2 of the present invention. As shown in fig. 2, the method may include:
step 201: acquiring an operation on the webpage application program;
step 202: detecting a hardware parameter of the electronic device in response to the operation;
the hardware parameter may be a screen size of the electronic device or a resolution that the electronic device can support.
Step 203: generating request information for acquiring first configuration information according to the hardware parameters, and sending the request information to a server;
when the hardware parameter is a screen size or supportable resolution information, request information for acquiring the first configuration information may be generated. The first configuration information may be interface layout configuration information corresponding to the screen size or supportable resolution.
Specifically, when the screen size of the electronic device is large, the interface layout indicated by the interface layout configuration information can be set with a plurality of display layouts in the display interface corresponding to one screen, so that the screen of the large-size electronic device can obtain a high utilization rate. When the screen size of the electronic equipment is smaller, the interface layout represented by the interface layout configuration information can be set with fewer display layouts in the display interface corresponding to one screen, so that the content displayed in the screen of the small-size electronic equipment is not too dense.
Step 204: acquiring user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
step 205: and when the electronic equipment receives the data sent by the server, displaying the data in the interface layout mode.
In this embodiment, by detecting a hardware parameter of the electronic device, request information for acquiring first configuration information is generated according to the hardware parameter, and the request information is sent to a server; acquiring user interface layout configuration information fed back by the server; according to the hardware parameters of the electronic equipment, the user interface layout configuration information corresponding to the hardware parameters can be requested from the server, and therefore the display effect matched with the hardware parameters of the electronic equipment is achieved.
Fig. 3 is a flowchart of a data processing method embodiment 3 of the present invention. As shown in fig. 3, the method may include:
step 301: acquiring an operation on the webpage application program;
step 302: detecting a spatial attitude of the electronic device in response to the operation;
the spatial gesture may refer to whether the electronic device is in a landscape playing state or a portrait playing state when the user uses the electronic device. The spatial attitude of the electronic device can be sensed by means of a gravity sensor and/or a gyroscope in the electronic device.
Step 303: generating request information for acquiring first configuration information according to the space attitude, and sending the request information to a server;
when the spatial posture of the electronic equipment indicates that the electronic equipment is currently in a landscape display state, request information for acquiring display contents of a landscape typesetting interface can be generated; when the spatial posture of the electronic equipment indicates that the electronic equipment is currently in a vertical screen playing state, request information for acquiring display content of a vertical screen typesetting interface can be generated.
Step 304: acquiring user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
step 305: and when the electronic equipment receives the data sent by the server, displaying the data in the interface layout mode.
In practical applications, when the electronic device is currently in the landscape playing state, the interface layout mode may be an interface layout mode corresponding to the landscape playing state, for example, each line in the interface layout of the landscape may display more texts and is more suitable for displaying horizontal pictures compared to the interface layout mode of the vertical screen. When the electronic device is currently in the vertical screen playing state, the interface layout mode may be an interface layout mode corresponding to the vertical screen playing state, for example, compared to the interface layout mode of the horizontal screen, in the interface layout of the vertical screen, each line may display less text (may display more lines), and is more suitable for displaying vertical pictures.
In this embodiment, by detecting a spatial gesture of the electronic device, request information for acquiring first configuration information is generated according to the spatial gesture, and the request information is sent to a server; acquiring user interface layout configuration information fed back by the server; according to the space gesture of the electronic equipment, the user interface layout configuration information corresponding to the space gesture can be requested to the server, and therefore the display effect matched with the space gesture of the electronic equipment is achieved.
Fig. 4 is a flowchart of a data processing method embodiment 4 of the present invention. As shown in fig. 4, the method may include:
step 401: acquiring an operation on the webpage application program;
step 402: responding to the operation, and detecting state information of the electronic equipment;
step 403: generating request information for acquiring first configuration information according to the state information, and sending the request information to a server;
step 404: acquiring first characteristic information which is fed back by the server and used for identifying the first configuration information;
the server may first feed back first feature information for identifying the first configuration information to the electronic device. And when the electronic equipment determines that the electronic equipment does not store first configuration information corresponding to the first characteristic information according to the first characteristic information, the electronic equipment sends the first configuration information to the electronic equipment.
Specifically, the first feature information may be a version number of the first configuration information, or other information that may indicate a generation time of the first configuration information.
Step 405: acquiring second characteristic information of second configuration information which is already stored in the electronic equipment;
the electronic device may have acquired some configuration information during a previous use. In this embodiment, the configuration information already stored in the electronic device is referred to as second configuration information. The second feature information may be a version number of the second configuration information or other information that may indicate a generation time of the second configuration information.
Step 406: judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judgment result;
if the first feature information is the same as the second feature information, it may indicate that the first configuration information is the same as the second configuration information; if the first characteristic information is different from the second characteristic information, it may indicate that the first configuration information is different from the second configuration information.
Step 407: when the first judgment result is negative, acquiring the first configuration information fed back by the server;
and when the first judgment result is negative, the first configuration information is different from the second configuration information, and at this time, the first configuration information fed back by the server needs to be acquired, and the first configuration information fed back latest by the server is used as the configuration information according to which data sent by the server is processed.
Step 408: and processing the data sent by the server according to the first configuration information.
It should be noted that, when the first determination result is yes, it indicates that the first configuration information is the same as the second configuration information, and at this time, the first configuration information fed back by the server does not need to be acquired, and the step of acquiring the first configuration information fed back by the server may not be executed any more, so that consumption of transmission resources is reduced. And when the first judgment result is yes, exiting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information.
In this embodiment, first feature information, which is fed back by the server and used for identifying the first configuration information, is obtained; acquiring second characteristic information of second configuration information which is already stored in the electronic equipment; judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judgment result; and when the first judgment result is negative, the step of acquiring the first configuration information fed back by the server is executed, whether the first configuration information fed back by the server is acquired or not can be judged automatically according to the comparison result of the characteristic information, and when the two characteristic information are the same, the step of acquiring the first configuration information fed back by the server can not be executed any more, so that the consumption of transmission resources is reduced.
Fig. 5 is a flowchart of a data processing method according to embodiment 5 of the present invention. As shown in fig. 5, the method may include:
step 501: acquiring an operation on the webpage application program;
step 502: responding to the operation, and detecting networking mode information of the electronic equipment;
the networking mode information may indicate a mode by which the electronic device is connected to the internet. The networking mode can include: wifi mode, mobile data network (for example, 3G/2G mode), or fiber, ADSL mode, etc.
Step 503: generating request information for acquiring first configuration information according to the networking mode information, and sending the request information to a server;
the first configuration information may be download policy configuration information. The download policy configuration information may be used to instruct the terminal in which networking mode and in which mode to download the data.
Step 504: acquiring downloading strategy configuration information fed back by the server;
and the downloading strategy configuration information is used for indicating the terminal to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
For example, the first networking mode may be a wifi mode. In the wifi network, the downloading policy indicated by the downloading policy configuration information may be real-time downloading. This is because in wifi networks, there is typically no need to consider internet tariff issues. The second networking mode may be to access a 3G network. In the 3G network, the downloading policy indicated by the downloading policy configuration information may be to allow the electronic device to download data related to the web application sent by the server when the available data traffic of the electronic device is greater than a preset threshold; and when the available data flow of the electronic equipment is smaller than a preset threshold value, prohibiting the electronic equipment from downloading the data which is sent by the server and is related to the webpage application program. This is because, in the 3G network, the internet access fee is high, and the fee generated when downloading data needs to be considered.
Step 505: and processing the data sent by the server according to the first configuration information.
In this embodiment, the data sent by the server is processed, and may be the data sent by the server downloaded in real time in a wifi network; in the 3G network, when the available data flow of the electronic equipment is larger than a preset threshold value, the electronic equipment downloads data related to the webpage application program sent by the server in real time; and when the available data flow of the electronic equipment is smaller than a preset threshold value, the data related to the webpage application program sent by the server is not received any more.
In summary, in this embodiment, the networking mode information of the electronic device is detected; generating request information for acquiring downloading strategy configuration information according to the networking mode information, and sending the request information to a server; acquiring downloading strategy configuration information fed back by the server; processing the data sent by the server according to the downloading strategy configuration information; according to the networking mode of the electronic equipment, the data related to the webpage application program and sent by the server can be selectively received according to the downloading strategy corresponding to the networking mode, and the cost generated when the data are downloaded is reduced.
The invention also discloses an electronic device. The electronic device can be a mobile phone, a tablet computer, a notebook computer and the like. The electronic device is provided with a web application.
Fig. 6 is a block diagram of an embodiment of an electronic device of the present invention. As shown in fig. 6, the electronic device may include:
an operation acquisition unit 601 configured to acquire an operation for the web application;
the operation may be user initiated. The operation may be various types of operations according to a hardware configuration of the electronic device. For example, when the electronic device is a device having a touch screen, the operation may be a touch operation for the touch screen; when the electronic device is a device having a key, the operation may be a click operation on the key.
The operation may be an operation for starting the web application, or another operation performed on the web application after the web application is started. For example, it may be an operation that invokes certain functions of the web application.
A state information detection unit 602, configured to detect state information of the electronic device in response to the operation;
the state information may include information indicating an inherent attribute of the electronic device, and may also include information indicating a use state of the electronic device. Specifically, the information indicating the inherent attribute of the electronic device may be hardware parameter information of the electronic device, such as a screen size parameter of the electronic device; the information representing the use state of the electronic device may be spatial posture information of the electronic device, for example, whether the use posture of the electronic device in the hand of the user is landscape or portrait.
A request information generating unit 603, configured to generate request information for acquiring the first configuration information according to the state information, and send the request information to the server;
the first configuration information may be configuration information representing an interface layout of the web application, configuration information indicating a download mechanism of the web application, or the like.
A configuration information obtaining unit 604, configured to obtain the first configuration information fed back by the server;
a data processing unit 605, configured to process the data sent by the server according to the first configuration information.
The data sent by the server may be specific content that needs to be displayed by a program interface of the web application sent by the server.
When the first configuration information is configuration information representing an interface layout of the web application, the processing of the data sent by the server may specifically include:
and displaying the data sent by the server by adopting the interface layout mode. For example, when the data sent by the server is a text, the interface layout mode may define a font format, a font size, a word spacing, a line spacing, and other formats of the text, so that the font format, the font size, the word spacing, the line spacing, and other formats of the text may be adjusted to be the same as the formats defined in the interface layout mode.
When the first configuration information is configuration information indicating a downloading mechanism of the web application, the processing the data sent by the server may specifically include:
and receiving the data sent by the server by adopting a downloading mechanism defined in the configuration information. For example, if it is specified in the first configuration information that data can be downloaded through a network only when the electronic device is in a wifi network, the data sent by the server can be received when the electronic device is in the wifi network, and the data sent by the server cannot be received when the electronic device is not in the wifi network.
In summary, in this embodiment, the first configuration information fed back by the server is obtained; processing the data sent by the server according to the first configuration information; the data of different types related to the webpage application program can be separately transmitted, and for the data which is not required to be transmitted each time, the transmission times can be reduced, so that the occupation of transmission resources is reduced; meanwhile, the state information of the electronic equipment is detected; generating request information for acquiring first configuration information according to the state information, and sending the request information to a server; the corresponding configuration information can be acquired according to the state of the electronic equipment, so that the efficiency of acquiring the configuration information can be improved, and the configuration information with high pertinence can be acquired.
In practical applications, the state information detecting unit 602 may specifically include:
the hardware parameter detection subunit is used for detecting the hardware parameters of the electronic equipment;
and/or a spatial attitude detection subunit, configured to detect a spatial attitude of the electronic device.
In practical application, the method can further comprise the following steps:
a first feature information obtaining unit, configured to obtain, before obtaining the first configuration information fed back by the server, first feature information fed back by the server and used for identifying the first configuration information;
a second feature information acquisition unit configured to acquire second feature information of second configuration information already stored in the electronic device;
the first judging unit is used for judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judging result;
and the configuration information acquisition unit control unit is used for controlling the configuration information acquisition unit to execute the step of acquiring the first configuration information fed back by the server when the first judgment result is negative.
In practical application, the method can further comprise the following steps:
and the thread quitting unit is used for quitting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information when the first judgment result is yes.
In practical applications, the configuration information obtaining unit 604 may specifically include:
a download strategy configuration information obtaining subunit, configured to obtain the download strategy configuration information fed back by the server;
and the downloading strategy configuration information is used for indicating the terminal to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
In practical applications, the configuration information obtaining unit 604 may specifically include:
a user interface layout configuration information obtaining subunit, configured to obtain user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
the data processing unit 605 may specifically include:
and the display subunit is used for displaying the data in the interface layout mode after the electronic equipment receives the data sent by the server.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Through the description of the above embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary hardware platform, and certainly may be implemented by hardware entirely, but in many cases, the former is a better embodiment. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments of the present invention.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the electronic equipment disclosed by the embodiment, the description is relatively simple because the electronic equipment corresponds to the method disclosed by the embodiment, and the relevant part can be referred to the method part for description.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed. In view of the above, the present disclosure should not be construed as limiting the invention.

Claims (10)

1. A data processing method is applied to electronic equipment, and is characterized in that the electronic equipment is provided with a webpage application program, and the method comprises the following steps:
acquiring an operation on the webpage application program;
responding to the operation, and detecting state information of the electronic equipment;
generating request information for acquiring first configuration information according to the state information, and sending the request information to a server;
acquiring the first configuration information fed back by the server;
processing data sent by the server according to the first configuration information, wherein the data sent by the server and the first configuration information are transmitted separately;
before the obtaining of the first configuration information fed back by the server, the method further includes:
acquiring first characteristic information which is fed back by the server and used for identifying the first configuration information;
acquiring second characteristic information of second configuration information which is already stored in the electronic equipment;
judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judgment result;
when the first judgment result is negative, executing the step of acquiring the first configuration information fed back by the server;
and when the first judgment result is yes, processing the data sent by the server according to the second configuration information.
2. The method according to claim 1, wherein the detecting the status information of the electronic device specifically includes:
detecting a hardware parameter of the electronic device;
and/or detecting a spatial pose of the electronic device.
3. The method of claim 1, further comprising:
and when the first judgment result is yes, exiting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information.
4. The method according to claim 1, wherein the obtaining the first configuration information fed back by the server specifically includes:
acquiring downloading strategy configuration information fed back by the server;
the downloading strategy configuration information is used for indicating the electronic equipment to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
5. The method according to claim 1, wherein the obtaining the first configuration information fed back by the server specifically includes:
acquiring user interface layout configuration information fed back by the server; the user interface layout configuration information is used for representing an interface layout mode;
the processing of the data sent by the server specifically includes:
and when the electronic equipment receives the data sent by the server, displaying the data in the interface layout mode.
6. An electronic device, wherein a web application is installed in the electronic device, the electronic device comprising:
an operation acquisition unit configured to acquire an operation on the web application;
a state information detection unit for detecting state information of the electronic device in response to the operation;
a request information generating unit, configured to generate request information for acquiring first configuration information according to the state information, and send the request information to a server;
a configuration information obtaining unit, configured to obtain the first configuration information fed back by the server;
the data processing unit is used for processing the data sent by the server according to the first configuration information, and the data sent by the server and the first configuration information are transmitted separately;
further comprising:
a first feature information obtaining unit, configured to obtain, before obtaining the first configuration information fed back by the server, first feature information fed back by the server and used for identifying the first configuration information;
a second feature information acquisition unit configured to acquire second feature information of second configuration information already stored in the electronic device;
the first judging unit is used for judging whether the first characteristic information is the same as the second characteristic information or not to obtain a first judging result;
and the configuration information acquisition unit control unit is used for controlling the configuration information acquisition unit to execute the step of acquiring the first configuration information fed back by the server when the first judgment result is negative, and controlling the data processing unit to process the data sent by the server according to the second configuration information when the first judgment result is positive.
7. The electronic device according to claim 6, wherein the status information detecting unit specifically includes:
the hardware parameter detection subunit is used for detecting the hardware parameters of the electronic equipment;
and/or the spatial posture detection subunit is used for detecting the spatial posture of the electronic equipment.
8. The electronic device of claim 6, further comprising:
and the thread quitting unit is used for quitting the thread which runs in the background and is used for judging whether the first characteristic information is the same as the second characteristic information when the first judgment result is yes.
9. The electronic device according to claim 6, wherein the configuration information obtaining unit specifically includes:
a download strategy configuration information obtaining subunit, configured to obtain the download strategy configuration information fed back by the server;
the downloading strategy configuration information is used for indicating the electronic equipment to download the data in a first mode in a first networking mode and download the data in a second mode in a second networking mode.
10. The electronic device according to claim 6, wherein the configuration information obtaining unit specifically includes:
a user interface layout configuration information obtaining subunit, configured to obtain user interface layout configuration information fed back by the server;
the user interface layout configuration information is used for representing an interface layout mode;
the data processing unit specifically includes:
and the display subunit is used for displaying the data in the interface layout mode after the electronic equipment receives the data sent by the server.
CN201410224677.3A 2014-05-26 2014-05-26 Data processing method and electronic equipment Active CN105224526B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410224677.3A CN105224526B (en) 2014-05-26 2014-05-26 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410224677.3A CN105224526B (en) 2014-05-26 2014-05-26 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105224526A CN105224526A (en) 2016-01-06
CN105224526B true CN105224526B (en) 2022-05-31

Family

ID=54993504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410224677.3A Active CN105224526B (en) 2014-05-26 2014-05-26 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105224526B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817470A (en) * 2019-11-15 2021-05-18 华为技术有限公司 Display method of electronic equipment with flexible screen and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
CN102323880A (en) * 2011-06-30 2012-01-18 中兴通讯股份有限公司 Mobile phone application interface development method and terminal based on browser parsing mode
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5686046B2 (en) * 2011-03-31 2015-03-18 富士通株式会社 Application providing system, application providing method, and application providing program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067819A (en) * 2007-06-07 2007-11-07 北京大学 Web page resource issuing method and issuing system
CN102323880A (en) * 2011-06-30 2012-01-18 中兴通讯股份有限公司 Mobile phone application interface development method and terminal based on browser parsing mode
CN102915375A (en) * 2012-11-08 2013-02-06 山东大学 Webpage loading method based on layout zoning

Also Published As

Publication number Publication date
CN105224526A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
EP2854372B1 (en) Method and device for displaying pushed information
CN108880921B (en) Webpage monitoring method and device, storage medium and server
CN104426925B (en) Web page resources acquisition methods and device
CN107656768B (en) Method and system for controlling page jump
CN103399866A (en) Webpage rendering method, device and equipment
US20160217143A1 (en) Method and device for displaying browser resources and computer readable storage medium
US9262389B2 (en) Resource-adaptive content delivery on client devices
WO2013085595A1 (en) Selective image loading in mobile browsers
US9307010B2 (en) Data upload method using shortcut
US10042822B2 (en) Device, method and system for displaying pages of a digital edition by efficient download of assets
JP2007233659A (en) Information distribution system for network service
US9075517B2 (en) Web input through drag and drop
CN103440295A (en) Method for uploading multimedia files and electronic terminal
CN105912191A (en) Method and device for realizing interaction between applications of terminal equipment
CN105224526B (en) Data processing method and electronic equipment
CN116909505A (en) Display method, device, system and medium of self-adaptive visual area
RU2634221C2 (en) Method and device for drawing presentation of electronic document on screen
CN104978181B (en) Page display method, terminal and device
US20140101284A1 (en) System and method for customization of web content
CN114742013A (en) Online document display method and device and electronic equipment
CN104077292A (en) Webpage information storage method and equipment
JP2013225220A (en) Web browsing screen thumbnail generation system
JP7527866B2 (en) PROGRAM, INFORMATION PROCESSING APPARATUS AND CONTROL METHOD
CN106502519A (en) A kind of display methods of pushed information and device
JP2016062133A (en) Portable terminal device, browsing control method, and browsing control program

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
TG01 Patent term adjustment