CN106777113B - Data processing method and device in application program and mobile terminal - Google Patents

Data processing method and device in application program and mobile terminal Download PDF

Info

Publication number
CN106777113B
CN106777113B CN201611161066.4A CN201611161066A CN106777113B CN 106777113 B CN106777113 B CN 106777113B CN 201611161066 A CN201611161066 A CN 201611161066A CN 106777113 B CN106777113 B CN 106777113B
Authority
CN
China
Prior art keywords
target
user
environment
caching
determining
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
CN201611161066.4A
Other languages
Chinese (zh)
Other versions
CN106777113A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201611161066.4A priority Critical patent/CN106777113B/en
Publication of CN106777113A publication Critical patent/CN106777113A/en
Application granted granted Critical
Publication of CN106777113B publication Critical patent/CN106777113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a data processing method and device in an application program and a mobile terminal. The method comprises the following steps: collecting historical behavior information of a user; determining user behavior preference according to the historical behavior information; determining current environment information, and determining a target environment to which the user is about to arrive, a target application used by the user in the target environment and target content viewed in the target application according to the current environment information and the user behavior preference, wherein the current environment information comprises at least one of current time and current location; and starting the target application before the user reaches the target environment, and caching target content in the target application in advance. According to the technical scheme, targeted caching can be performed according to different user behavior preferences, namely different applications are started and different contents are cached aiming at different users, and then the users can watch target contents which the users want to watch after reaching a target environment.

Description

Data processing method and device in application program and mobile terminal
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing data in an application program, and a mobile terminal.
Background
Currently, most users are accustomed to browsing or watching news, videos, etc. on a mobile phone at fixed times. For example, users like to spend time on the subway by browsing news on the commute; for another example, watching a television show is used to spend a period of time after dinner and before sleep. Whether news or television drama, the watching is required while caching. Under the condition of poor network conditions, a user is likely to be unable to smoothly watch news, particularly large data contents such as TV series, and phenomena such as blocking and the like often occur; or, on the business trip, the user wants to watch the tv play, but the data is large, so that the user cannot use the traffic for caching, and finally cannot watch the tv play. Of course, in order to solve the above problem, the user may cache the content to be viewed in advance, but this approach requires manual caching by the user, which wastes time and effort of the user.
In the prior art, some smart phones can automatically cache data for a user in advance, but at present, the method still has limitations, which are specifically represented as follows: data content in an application program running on the current mobile phone can be cached in advance, and only one mode is provided for all users, so that targeted data caching cannot be performed according to habits or preferences of the users, and user experience is low.
Disclosure of Invention
In view of the above, the present invention is proposed in order to provide a data processing method, apparatus and mobile terminal in an application that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a data processing method in an application program, applied to a mobile terminal, the method including:
collecting historical behavior information of a user;
determining user behavior preference according to the historical behavior information;
determining current environment information, and determining a target environment to which the user is about to arrive, a target application used by the user in the target environment and target content viewed in the target application according to the current environment information and the user behavior preference, wherein the current environment information comprises at least one of current time and current location;
and starting the target application before the user reaches the target environment, and caching target content in the target application in advance.
Optionally, the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content in the application viewed in the different environment.
Optionally, the historical behavior information comprises at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
Optionally, pre-caching the target content in the target application includes:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time of caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time.
Optionally, determining a viewing time for the user to view the target content according to the user behavior preference includes:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
Optionally, pre-caching the target content in the target application includes:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
Optionally, the method further comprises:
and when a preset condition for triggering the removal of the target content is reached, removing the cache data of the pre-cached target content.
Optionally, the preset condition comprises at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
Optionally, the determining the current environment information includes:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
Optionally, the method further comprises:
monitoring that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
outputting prompt information for prompting the user whether to open the target content;
and opening the target content for display/play when receiving a confirmation operation aiming at the prompt information.
Optionally, the monitoring that the user is located in the target environment includes:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
Optionally, the target content includes at least one of text, video, and picture.
According to another aspect of the present invention, there is provided a data processing apparatus in an application program, which is provided in a mobile terminal, the apparatus including:
the collecting module is suitable for collecting historical behavior information of a user;
a first determination module adapted to determine a user behavior preference based on the historical behavior information;
a second determination module, adapted to determine current environment information, and determine, according to the current environment information and the user behavior preference, a target environment to which the user is about to arrive, a target application used by the user in the target environment, and target content viewed in the target application, wherein the current environment information includes at least one of a current time and a current location;
and the cache module is suitable for starting the target application before the user reaches the target environment and caching the target content in the target application in advance.
Optionally, the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content in the application viewed in the different environment.
Optionally, the historical behavior information comprises at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
Optionally, the cache module is further adapted to:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time of caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time.
Optionally, the cache module is further adapted to:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
Optionally, the cache module is further adapted to:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
Optionally, the apparatus further comprises:
and the clearing module is suitable for clearing the cache data of the pre-cached target content when a preset condition for triggering the clearing of the target content is reached.
Optionally, the preset condition comprises at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
Optionally, the second determination module is further adapted to:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
Optionally, the apparatus further comprises:
a monitoring module adapted to monitor that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
the output module is suitable for outputting prompt information for prompting the user whether to open the target content;
and the opening module is suitable for opening the target content to display/play when receiving the confirmation operation aiming at the prompt information.
Optionally, the monitoring module is further adapted to:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
Optionally, the target content includes at least one of text, video, and picture.
According to another aspect of the present invention, there is provided a mobile terminal including a processor and a memory, the memory storing a program for executing the data processing method in the application program described above, the processor being configured to execute the program stored in the memory.
According to the technical scheme, the user behavior preference can be determined according to the historical behavior information of the user, the target environment which is about to be reached by the user, the target application used by the user in the target environment and the target content watched in the target application are determined according to the user behavior preference and the current environment information, the target application is started before the user reaches the target environment, the target content in the target application is cached in advance, the mobile terminal can carry out targeted caching according to different user behavior preferences, namely different applications are started and different contents are cached aiming at different users, and the user can watch the target content which the user wants to watch after the user reaches the target environment. Therefore, the content cached by the mobile terminal for the user in the technical scheme can better accord with the personal habits or preferences of the user, and the experience degree of the user is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a schematic flow chart diagram of a method of data processing in an application in accordance with one embodiment of the present invention;
FIG. 2 is a schematic flow chart of a data processing method in an application according to a first embodiment of the present invention;
FIG. 3 is a schematic block diagram of a data processing apparatus in an application according to one embodiment of the present invention;
FIG. 4 is a schematic block diagram of a data processing apparatus in an application according to another embodiment of the present invention;
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic flow chart of a data processing method in an application according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a mobile terminal, which may generally include the following steps S101-S104.
Step S101, collecting historical behavior information of a user.
And step S102, determining the user behavior preference according to the historical behavior information.
Step S103, determining the current environment information, and determining the target environment to which the user is going to arrive, the target application used by the user in the target environment and the target content viewed in the target application according to the current environment information and the user behavior preference.
Wherein the current environment information includes at least one of a current time and a current location.
And step S104, starting the target application before the user reaches the target environment, and caching the target content in the target application in advance.
According to the technical scheme, the user behavior preference can be determined according to the historical behavior information of the user, the target environment which is about to be reached by the user, the target application used by the user in the target environment and the target content watched in the target application are determined according to the user behavior preference and the current environment information, the target application is started before the user reaches the target environment, the target content in the target application is cached in advance, the mobile terminal can carry out targeted caching according to different user behavior preferences, namely different applications are started and different contents are cached aiming at different users, and the user can watch the target content which the user wants to watch after the user reaches the target environment. Therefore, the content cached by the mobile terminal for the user in the technical scheme can better accord with the personal habits or preferences of the user, and the experience degree of the user is improved.
The following describes the above steps S101 to S104 in detail.
Step S101 is performed first, that is, historical behavior information of the user is collected. Wherein the historical behavior information comprises at least one of: different applications used in each time period, different content viewed when different applications are used in each time period, different applications used in each place, different content viewed when different applications are used in each place, viewing speed when different content is viewed, number of times the same content is viewed.
For example, the historical behavior information of a certain user is gathered as follows: at 7 am each day: opening a microblog on a commute to see the Bowen at 00-8: 00, wherein the speed of seeing the Bowen is one in every 5 minutes; opening a news client A to watch current news at a restaurant at noon of 12: 00-13: 00 every day; opening a video client B at home to watch the country love of the TV drama between 20:00 and 22:00 every night; and so on.
Next, step S102 is executed, i.e. the user behavior preference is determined according to the historical behavior information. Wherein the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in different environments, and content in the application viewed in different environments.
Still taking the above-mentioned certain user as an example, according to the collected historical behavior information, the behavior preference of the user can be determined as follows: 7 in the morning: 00-8: 00 is on the working road, and the user prefers to watch the blog articles by using the microblog; the method comprises the following steps that a restaurant is located between 12:00 and 13:00 noon every day, and a news client A is preferred to watch current news; the television is at home at 20: 00-22: 00 every night, and a video client B is preferred to watch the country love of the TV series.
After determining the user behavior preference, step S103 is executed to determine current environment information, and determine a target environment to which the user is going to arrive, a target application used by the user in the target environment, and target content viewed in the target application according to the current environment information and the user behavior preference, where the current environment information includes at least one of a current time and a current location. The target content may include at least one of text, video, and pictures. In this step, the current location may be determined by any one of the following:
firstly, determining the current network environment, then obtaining the corresponding relation between the preset network environment and the place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation. Wherein the network environment may be a wireless fidelity wifi environment. For example, in the preset corresponding relationship between the network environment and the location, when the account number of the wifi environment is TP-LINK1, the corresponding location is home; and when the account number of the wifi environment is TP-LINK2, the corresponding place is an office, and when the account number of the wifi environment is TP-LINK3, the corresponding place is a company dining room.
And secondly, acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information. The mapping relation between each geographic position information and each place is stored in the server, when the mobile terminal acquires the current geographic position information by using a built-in GPS sensor, the geographic position information is sent to the server, the server inquires the place corresponding to the current geographic position information of the mobile terminal according to the mapping relation between each geographic position information and each place, and the inquired place is returned to the mobile terminal.
After the current environment information is determined, the target environment to which the user is going to arrive, the target application used by the user in the target environment and the target content viewed in the target application are determined according to the current environment information and the user behavior preference. Assume that user behavior preferences are as follows: 7 in the morning: 00-8: 00 is on the working road, and the user prefers to watch the blog articles by using the microblog; the method comprises the following steps that a restaurant is located between 12:00 and 13:00 noon every day, and a news client A is preferred to watch current news; the television is at home at 20: 00-22: 00 every night, and a video client B is preferred to watch the 'country love'; other times are located in the office and no applications are used. Then, if the determined current time is 6 a.m.: and 30, determining that the target environment to be reached by the user is on the way to work, the target application used by the user on the way to work is the microblog and the target content watched in the target application microblog is the blog according to the current time. If the determined current time is 11:40 and the current location is determined to be an office, then according to the current time and the current location, it can be determined that the target environment to which the user is about to arrive is a restaurant, the target application used by the user in the restaurant is a news client a, and the target content viewed in the target application, news client a, is current news.
After determining the information of the target environment to which the user is going to arrive, the target application used by the user in the target environment, and the target content viewed in the target application, the step S104 is continued, i.e. the target application is started before the user reaches the target environment, and the target content in the target application is cached in advance.
In one embodiment, step S104 may be performed by:
step one, determining the watching time of the user watching the target content according to the user behavior preference. Specifically, the time when the user reaches the target environment is determined according to the user behavior preference, and then the time when the user reaches the target environment is determined to be the viewing time when the user views the target content. For example, the user is about to arrive at the target environmental restaurant at 12:00 PM, so it may be determined that the viewing time of the user viewing the target content, current news, is 12:00 PM.
And step two, determining a caching factor related to the caching target content, and determining the caching duration required by caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of the user viewing the target content, and the current network condition. Specifically, when the caching factor includes the data size of the target content and the current network condition (e.g., the current caching speed), the caching duration required for caching the target content may be determined by dividing the data size of the target content by the current caching speed. When the caching factor includes the viewing speed of the user viewing the target content and the current network condition, the total amount of the target content to be cached can be determined according to the viewing speed of the user viewing the target content and the total time length in the target environment, and then the caching time length required for caching the target content can be calculated according to the total amount of the target content to be cached and the current caching speed. For example, the time of the user in the target environment is 20:00 to 22:00 at night, that is, the total time duration is 2 hours, the target content is "country love" of a tv drama, the viewing speed of the user viewing the target content, that is, the "country love" of the tv drama, is 300M per hour, and the current caching speed is 1M per second, then, according to the viewing speed (that is, 300M per hour) and the total time duration (that is, 2 hours), it can be determined that the total number of the target content to be cached is 600M (that is, 300M × 2), and since the current caching speed is 1M per second, the caching time duration required for caching the target content is 600M/(1M/second) ═ 600 seconds, that is, the caching time duration is 10 minutes.
And step three, determining the starting time of the pre-caching target content according to the watching time and the caching duration, and starting caching the target content from the starting time. Wherein the viewing time may be the time when the user reaches the target environment. Assuming that the time of the user in the target environment to be reached is 20: 00-22: 00 pm, the viewing time can be regarded as 20:00 pm, when the caching duration is 10 minutes, the starting time of pre-caching the target content can be determined as 19:50 pm, and therefore when the current time is 19:50 pm, the target content starts to be cached.
In one embodiment, step S104 may also be performed by: judging whether the current environment is in a wireless fidelity wifi environment or not; if yes, caching target content in the target application in advance before the user reaches the target environment; if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than the preset flow threshold value, caching the target content in the target application in advance. In the embodiment, the target content is cached in advance only when the target content is currently in a wifi environment or the flow value required by caching the target content is smaller than the preset flow threshold, so that the situation that the user flow value is wasted when large data is cached is avoided, the flow is saved for the user, and the experience of the user is improved.
In one embodiment, after step S104 is executed, the method further includes the following steps: when it is monitored that the user is located in the target environment; and/or outputting prompt information for prompting a user whether to open the target content when the current time is monitored to reach the time period corresponding to the target environment, and opening the target content for display/playing when confirmation operation aiming at the prompt information is received. That is to say, when it is monitored that the user is located in the target environment and/or the current time reaches the time period corresponding to the target environment, the target content cached in advance is not directly displayed/played, but whether the target content is displayed/played is determined according to the selection operation of the user on the prompt information, so that the situation that the user still displays/plays the target content when the user does not want to watch the target content occasionally can be avoided, and the trouble brought to the user is avoided.
Furthermore, in this embodiment, whether the user is located in the target environment may be monitored by any of the following means:
starting a map application on the mobile terminal, and monitoring the geographical position information of a user by using the map application; and when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment.
Acquiring time information on the mobile terminal or determining the time information by using a built-in timer of the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the monitored user is located in the target environment.
In one embodiment, the above method further comprises the steps of: and when a preset condition for triggering the removal of the target content is reached, removing the cache data of the target content cached in advance. Wherein the preset condition comprises at least one of the following conditions: the pre-cached target content is watched by the user, the time period corresponding to the target environment is finished, and the user is located in other environments different from the target environment in the time period corresponding to the target environment. That is, the cached target content is cleared only when the preset condition is reached, that is, the cached target content is cleared only when the user has viewed the target content or has left the target environment, so as to ensure that the target content is not cleared by other factors (such as the target application is closed) when the user does not view the target content.
In order to more clearly illustrate the data processing method in the application program provided by the present invention, the method is described in detail below by using a specific embodiment.
Example one
Fig. 2 is a schematic flowchart of a data processing method in an application according to a first embodiment of the present invention. As shown in fig. 2, the method is applied to a mobile terminal and includes the following steps S201 to S209:
step S201, collecting historical behavior information of a user.
Wherein the historical behavior information comprises at least one of: different applications used in each time period, different content viewed when different applications are used in each time period, different applications used in each place, different content viewed when different applications are used in each place, viewing speed when different content is viewed, number of times the same content is viewed.
Step S202, determining user behavior preference according to the historical behavior information.
Wherein the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in different environments, and content in the application viewed in different environments.
Step S203, using a GPS sensor built in the mobile terminal to collect the current geographic position information, determining the current location according to the geographic position information, and determining the current time.
Step S204, determining the target environment to be reached by the user, the target application used by the user in the target environment and the target content viewed in the target application according to the current location, the current time and the user behavior preference.
Step S205, determining the viewing time of the user viewing the target content according to the time when the user is about to reach the target environment.
Step S206, determining the data size of the target content to be cached and the current caching speed, and determining the caching duration required for caching the target content according to the data size of the target content and the current caching speed.
Step S207, determining a start time of the pre-caching target content according to the viewing time and the caching duration, and starting caching the target content from the start time.
Step S208, judging whether the user is in the target environment. If yes, go to step S209; if not, the current step is continuously executed.
In this step, whether the user is located in the target environment may be determined by any one of the following methods: starting a map application on the mobile terminal, and monitoring the geographical position information of a user by using the map application; and when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment. Acquiring time information on the mobile terminal or determining the time information by using a built-in timer of the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the monitored user is located in the target environment.
In step S209, the target content is displayed/played.
For example, the user preference information is as follows: 7 in the morning: 00-8: 00 is on the working road, and the user prefers to watch the blog articles by using the microblog; the method comprises the following steps that a restaurant is located between 12:00 and 13:00 noon every day, and a news client A is preferred to watch current news; the television is at home at 20: 00-22: 00 every night, and a video client B is preferred to watch the 'country love'; other times are located in the office and no applications are used. The current time is 19:30 at night, the current place is an office, the target environment to which the user is about to arrive can be determined to be a home according to the current time, the current place and the user behavior preference, the target application used by the user in the target environment, namely the home, is a video client B, and the watched target content is the TV drama 'country love'. And determining that the watching time of the user watching the target content is 20:00 at night according to the information. Since the time length of the user in the target environment, that is, the home, is 2 hours, and the viewable data size in two hours is 600M (assuming that the data size of the tv drama "country love" of 2 time lengths is 600M), it can be determined that the data size of the tv drama "country love" that needs to be cached is 600M, and then according to the current cache time length of 1M/second, it can be calculated that the cache time length required for caching the target content is 10 minutes. Therefore, the start time of the pre-caching of the target content is 19:50 pm, and when the time reaches 19:50 pm, the caching of the drama "country love" is started. And, when it is determined that the user is located in the target environment, home, the "country love" of the tv series, which has been cached in advance, is played for the user.
It can be seen that, by adopting the technical scheme provided by the first embodiment, the user behavior preference can be determined according to the historical behavior information of the user, the target environment to be reached by the user, the target application used by the user in the target environment and the target content watched in the target application can be determined according to the user behavior preference and the current environment information, the target application is started before the user reaches the target environment, the target content in the target application is cached in advance, so that the mobile terminal can perform targeted caching according to different user behavior preferences, that is, different applications are started and different contents are cached aiming at different users, and the user can watch the target content which the user wants to watch after reaching the target environment. Therefore, the content cached by the mobile terminal for the user in the technical scheme can better accord with the personal habits or preferences of the user, and the experience degree of the user is improved.
Fig. 3 is a schematic block diagram of a data processing apparatus in an application according to an embodiment of the present invention. As shown in fig. 3, the apparatus is provided in a mobile terminal, and includes:
a gathering module 310 adapted to gather historical behavior information of a user;
a first determining module 320, coupled to the gathering module 310, adapted to determine user behavior preferences based on the historical behavior information;
a second determining module 330, coupled to the first determining module 320, adapted to determine current environment information, and determine a target environment to which the user is about to arrive, a target application used by the user in the target environment, and target content viewed in the target application according to the current environment information and the user behavior preference, wherein the current environment information includes at least one of a current time and a current location;
the caching module 340, coupled to the second determining module 330, is adapted to start the target application before the user reaches the target environment and pre-cache the target content in the target application.
In one embodiment, the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content viewed in the application in the different environment.
In one embodiment, the historical behavior information includes at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
In one embodiment, the caching module 340 is further adapted to:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time of caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time.
In one embodiment, the caching module 340 is further adapted to:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
In one embodiment, the caching module 340 is further adapted to:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
In one embodiment, the above apparatus further comprises:
and the clearing module is suitable for clearing the cache data of the pre-cached target content when a preset condition for triggering the clearing of the target content is reached.
In one embodiment, the preset conditions include at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
In one embodiment, the second determination module 330 is further adapted to:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
In one embodiment, as shown in fig. 4, the apparatus further comprises:
a monitoring module 350, coupled to the caching module 340, adapted to monitor that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
an output module 360, coupled to the monitoring module 350, adapted to output a prompt message for prompting the user whether to open the target content;
the opening module 370 is coupled to the output module 360 and adapted to open the target content for display/playing when receiving the confirmation operation for the prompt message.
In one embodiment, the monitoring module 350 is further adapted to:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
In one embodiment, the target content includes at least one of text, video, and pictures.
The device can determine the user behavior preference according to the historical behavior information of the user, and according to the user behavior preference and the target environment which is about to be reached by the user, the target application used by the user in the target environment and the target content watched in the target application according to the current environment information, further starts the target application before the user reaches the target environment, and caches the target content in the target application in advance, so that the mobile terminal can carry out targeted caching according to different user behavior preferences, namely different applications are started and different contents are cached aiming at different users, and further the user can watch the target content which the user wants to watch after reaching the target environment. Therefore, the content cached by the mobile terminal for the user in the technical scheme can better accord with the personal habits or preferences of the user, and the experience degree of the user is improved.
It should be understood by those skilled in the art that the data processing apparatus in the application programs in fig. 3 and fig. 4 can be used to implement the data processing scheme in the application program, and the detailed description thereof should be similar to the description of the method part, and is not repeated herein to avoid complexity.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuitry 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuitry 560, wireless-fidelity (Wi-Fi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user send and receive e-mail, view web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 580 included in the terminal further has the following functions:
collecting historical behavior information of a user;
determining user behavior preference according to the historical behavior information;
determining current environment information, and determining a target environment to which the user is about to arrive, a target application used by the user in the target environment and target content viewed in the target application according to the current environment information and the user behavior preference, wherein the current environment information comprises at least one of current time and current location;
and starting the target application before the user reaches the target environment, and caching target content in the target application in advance.
Optionally, the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content in the application viewed in the different environment.
Optionally, the historical behavior information comprises at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
Optionally, the processor 580 also has the following functions:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time of caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time.
Optionally, the processor 580 also has the following functions:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
Optionally, the processor 580 also has the following functions:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
Optionally, the processor 580 also has the following functions:
and when a preset condition for triggering the removal of the target content is reached, removing the cache data of the pre-cached target content.
Optionally, the preset condition comprises at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
Optionally, the processor 580 also has the following functions:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
Optionally, the processor 580 also has the following functions:
monitoring that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
outputting prompt information for prompting the user whether to open the target content;
and opening the target content for display/play when receiving a confirmation operation aiming at the prompt information.
Optionally, the processor 580 also has the following functions:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
Optionally, the target content includes at least one of text, video, and picture.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a data processing apparatus in an application according to an embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Thus, it should be appreciated by those skilled in the art that while a number of exemplary embodiments of the invention have been illustrated and described in detail herein, many other variations or modifications consistent with the principles of the invention may be directly determined or derived from the disclosure of the present invention without departing from the spirit and scope of the invention. Accordingly, the scope of the invention should be understood and interpreted to cover all such other variations or modifications.

Claims (22)

1. A data processing method in an application program is applied to a mobile terminal, and the method comprises the following steps:
collecting historical behavior information of a user;
determining user behavior preference according to the historical behavior information;
determining current environment information, and determining a target environment to which the user is about to arrive, a target application used by the user in the target environment and target content viewed in the target application according to the current environment information and the user behavior preference, wherein the current environment information comprises a current time and a current place;
starting the target application before the user reaches the target environment, and caching target content in the target application in advance;
the pre-caching of the target content in the target application comprises:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time for caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time;
the determining the current environment information includes:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
2. The method of claim 1, wherein the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content in the application viewed in the different environment.
3. The method of claim 1, wherein the historical behavior information comprises at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
4. The method of claim 1, wherein determining a viewing time for the user to view the target content according to the user behavior preference comprises:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
5. The method of any of claims 1-4, wherein pre-caching target content in the target application further comprises:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
6. The method according to any one of claims 1-4, wherein the method further comprises:
and when a preset condition for triggering the removal of the target content is reached, removing the cache data of the pre-cached target content.
7. The method of claim 6, wherein the preset conditions include at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
8. The method according to any one of claims 1-4, wherein the method further comprises:
monitoring that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
outputting prompt information for prompting the user whether to open the target content;
and opening the target content for display/play when receiving a confirmation operation aiming at the prompt information.
9. The method of claim 8, wherein monitoring that the user is located in the target environment comprises:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
10. The method of any of claims 1-4, wherein the target content comprises at least one of text, video, pictures.
11. A data processing device in an application program is arranged in a mobile terminal, and the device comprises:
the collecting module is suitable for collecting historical behavior information of a user;
a first determination module adapted to determine a user behavior preference based on the historical behavior information;
a second determination module, adapted to determine current environment information, and determine, according to the current environment information and the user behavior preference, a target environment to which the user is about to arrive, a target application used by the user in the target environment, and target content viewed in the target application, wherein the current environment information includes a current time and a current location;
the cache module is suitable for starting the target application before the user reaches the target environment and caching target content in the target application in advance;
wherein the caching module is further adapted to:
determining the watching time of the user watching the target content according to the user behavior preference;
determining a caching factor related to caching the target content, and determining a caching duration required for caching the target content according to the caching factor, wherein the caching factor comprises at least one of the data size of the target content, the viewing speed of a user viewing the target content, and the current network condition;
determining the starting time for caching the target content in advance according to the viewing time and the caching duration, and caching the target content from the starting time;
the second determination module is further adapted to:
determining the current network environment; acquiring a corresponding relation between a preset network environment and a place, and determining the place corresponding to the current network environment as the current place according to the corresponding relation;
and/or the presence of a gas in the gas,
and acquiring current geographical position information by using a Global Positioning System (GPS) sensor built in the mobile terminal, and determining the current location according to the geographical position information.
12. The apparatus of claim 11, wherein the user behavior preferences include at least one of an environment in which the user is located for different periods of time, an application used by the user in a different environment, and content in the application viewed in the different environment.
13. The apparatus of claim 11, wherein the historical behavior information comprises at least one of:
different applications used in each time period;
different content viewed when different applications are used in each time period;
different applications used at various locations;
different content viewed when using different applications at various locations;
viewing speed when viewing different content;
the number of times the same content is viewed.
14. The apparatus of claim 11, wherein the caching module is further adapted to:
determining a time for the user to reach the target environment according to the user behavior preference;
and determining the time when the user reaches the target environment as the viewing time when the user views the target content.
15. The apparatus of any of claims 11-14, wherein the caching module is further adapted to:
judging whether the current environment is in a wireless fidelity wifi environment or not;
if yes, caching target content in the target application in advance before the user reaches the target environment;
if not, determining a flow value required by caching the target content according to the data size of the target content; and when the flow value is smaller than a preset flow threshold value, caching the target content in the target application in advance.
16. The apparatus of any one of claims 11-14, wherein the apparatus further comprises:
and the clearing module is suitable for clearing the cache data of the pre-cached target content when a preset condition for triggering the clearing of the target content is reached.
17. The apparatus of claim 16, wherein the preset conditions comprise at least one of:
the pre-cached target content is watched by a user;
the time period corresponding to the target environment is over;
and the user is located in other environments different from the target environment in the time period corresponding to the target environment.
18. The apparatus of any one of claims 11-14, wherein the apparatus further comprises:
a monitoring module adapted to monitor that the user is located in the target environment; and/or monitoring that the current time reaches a time period corresponding to the target environment;
the output module is suitable for outputting prompt information for prompting the user whether to open the target content;
and the opening module is suitable for opening the target content to display/play when receiving the confirmation operation aiming at the prompt information.
19. The apparatus of claim 18, wherein the monitoring module is further adapted to:
starting a map application on the mobile terminal, and monitoring the geographical position information of the user by using the map application; when the geographical position information of the user is matched with the geographical position information corresponding to the target environment, determining that the user is monitored to be located in the target environment;
and/or the presence of a gas in the gas,
acquiring time information on the mobile terminal, or determining the time information by using a timer built in the mobile terminal; and when the time information is matched with the time period corresponding to the target environment, determining that the user is monitored to be located in the target environment.
20. The apparatus according to any of claims 11-14, wherein the target content comprises at least one of text, video, pictures.
21. A mobile terminal, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the method of any one of claims 1-10.
22. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs that, when executed by a mobile terminal comprising a plurality of application programs, cause the mobile terminal to perform the method of any of claims 1-10.
CN201611161066.4A 2016-12-15 2016-12-15 Data processing method and device in application program and mobile terminal Active CN106777113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611161066.4A CN106777113B (en) 2016-12-15 2016-12-15 Data processing method and device in application program and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611161066.4A CN106777113B (en) 2016-12-15 2016-12-15 Data processing method and device in application program and mobile terminal

Publications (2)

Publication Number Publication Date
CN106777113A CN106777113A (en) 2017-05-31
CN106777113B true CN106777113B (en) 2020-03-13

Family

ID=58887626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611161066.4A Active CN106777113B (en) 2016-12-15 2016-12-15 Data processing method and device in application program and mobile terminal

Country Status (1)

Country Link
CN (1) CN106777113B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360306B (en) * 2017-06-05 2019-08-30 Oppo广东移动通信有限公司 Application control method and Related product
CN107391200A (en) * 2017-07-27 2017-11-24 上海传英信息技术有限公司 A kind of control method and control system based on intelligent terminal application program
CN108345478B (en) * 2018-02-28 2020-04-21 Oppo广东移动通信有限公司 Application processing method and device, storage medium and electronic equipment
CN110780741B (en) * 2019-10-28 2022-03-01 Oppo广东移动通信有限公司 Model training method, application running method, device, medium and electronic equipment
CN113127774B (en) * 2019-12-30 2023-12-12 ***通信集团辽宁有限公司 Content pre-caching method and device for mobile application
CN111526246A (en) * 2020-04-07 2020-08-11 咪咕音乐有限公司 Caching method, electronic device and computer-readable storage medium
CN111615134A (en) * 2020-04-27 2020-09-01 深圳壹账通智能科技有限公司 Method and device for processing mobile network access data and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038846A (en) * 2013-03-05 2014-09-10 华为技术有限公司 Cache status estimation method and cache status estimation equipment
CN104239690A (en) * 2014-08-20 2014-12-24 腾讯科技(深圳)有限公司 Consumed time calculation method and device
CN104850434A (en) * 2015-04-30 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for downloading multimedia resources
CN105282299A (en) * 2014-06-11 2016-01-27 中兴通讯股份有限公司 Application starting device and method
CN105550356A (en) * 2015-12-28 2016-05-04 魅族科技(中国)有限公司 Preloading method of browsed contents, and terminal
CN105786604A (en) * 2016-03-01 2016-07-20 上海卓易科技股份有限公司 Application opening method and system
CN106131657A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video playing control method and device
CN106210258A (en) * 2016-06-14 2016-12-07 北京小米移动软件有限公司 Web access method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038846A (en) * 2013-03-05 2014-09-10 华为技术有限公司 Cache status estimation method and cache status estimation equipment
CN105282299A (en) * 2014-06-11 2016-01-27 中兴通讯股份有限公司 Application starting device and method
CN104239690A (en) * 2014-08-20 2014-12-24 腾讯科技(深圳)有限公司 Consumed time calculation method and device
CN104850434A (en) * 2015-04-30 2015-08-19 腾讯科技(深圳)有限公司 Method and apparatus for downloading multimedia resources
CN105550356A (en) * 2015-12-28 2016-05-04 魅族科技(中国)有限公司 Preloading method of browsed contents, and terminal
CN105786604A (en) * 2016-03-01 2016-07-20 上海卓易科技股份有限公司 Application opening method and system
CN106210258A (en) * 2016-06-14 2016-12-07 北京小米移动软件有限公司 Web access method and device
CN106131657A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video playing control method and device

Also Published As

Publication number Publication date
CN106777113A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106777113B (en) Data processing method and device in application program and mobile terminal
CN109241765B (en) Mobile terminal and method and device for managing authority of application program
CN109844706B (en) Message processing method and device
CN106303070B (en) notification message prompting method and device and mobile terminal
CN111161515A (en) Reminding information pushing method, terminal equipment and computer readable storage medium
CN107562539B (en) Application program processing method and device, computer equipment and storage medium
CN105554550A (en) Video playing method and device
CN107592615B (en) Positioning method and device
CN103458277B (en) A kind of method and apparatus operating direct broadcast band program
CN103180809A (en) Screen-interface display method and terminal
WO2015043476A1 (en) Devices and methods for webpage display
CN108933964B (en) Bullet screen display method, playing device and control terminal
CN106371326B (en) Storage method and device for equipment working scene
CN111611027A (en) Method for starting application program, terminal equipment and readable storage medium
CN107193435B (en) Processing method and device for task window and mobile terminal
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
CN104571979A (en) Method and device for realizing split-screen views
CN106326489B (en) Method and device for updating network resources
WO2020011212A1 (en) Mobile terminal, and method and device for answering call
CN108038244B (en) Method and device for displaying cover of work by utilizing widget and mobile terminal
CN110110253B (en) Advertisement putting method and device and terminal equipment
CN106713627B (en) Method and device for pushing message in notification bar and mobile terminal
CN108200281B (en) Comment data loading method and device
CN107360211B (en) Information flow information offline method, related equipment and computer storage medium
CN106339477B (en) Picture playing method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170725

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant