WO2012149707A1 - Method and device for making mobile terminal enter standby - Google Patents

Method and device for making mobile terminal enter standby Download PDF

Info

Publication number
WO2012149707A1
WO2012149707A1 PCT/CN2011/078410 CN2011078410W WO2012149707A1 WO 2012149707 A1 WO2012149707 A1 WO 2012149707A1 CN 2011078410 W CN2011078410 W CN 2011078410W WO 2012149707 A1 WO2012149707 A1 WO 2012149707A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
duration
standby
screen
program
Prior art date
Application number
PCT/CN2011/078410
Other languages
French (fr)
Chinese (zh)
Inventor
邵敏茹
谭辉
田超
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012149707A1 publication Critical patent/WO2012149707A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • H04M1/724631User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device by limiting the access to the user interface, e.g. locking a touch-screen or a keypad
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for causing a mobile terminal to enter standby. Background technique
  • mobile terminals have penetrated into people's lives, and mobile communication has become the most widely used communication method.
  • mobile phones as an example, mobile phones, as tools for everyday life and business affairs, play an important role in the lives of users.
  • the mobile terminal relying on the value-added services of mobile communication, the mobile terminal has been further developed.
  • SMS and voice Common value-added service implementation methods include SMS and voice.
  • mobile terminals have more and more functions, such as wireless Internet access functions and instant messaging functions.
  • the user For traditional value-added services, such as short message service, the user often operates continuously during the use process.
  • the user edits the short message and sends the short message to be almost synchronized with the stop keyboard operation.
  • the mobile terminal When the user stops the keyboard operation for a period of time, the mobile terminal will be based on The screen standby time set by the user automatically turns off the screen of the mobile terminal to save the power of the mobile terminal.
  • the screen standby time setting of the mobile terminal is not flexible, so that the mobile terminal cannot intelligently enter the screen standby according to the service type, if the screen standby time is set too If it is short, it will affect the user experience when using services such as browsers, e-books, and instant messaging. If the screen standby time is set too long, the mobile terminal will be wasted.
  • a primary object of the present invention is to provide a method and apparatus for causing a mobile terminal to enter standby, thereby achieving a user experience while achieving power saving of the mobile terminal.
  • the present invention provides a method for causing a mobile terminal to enter standby, including:
  • the mobile terminal When the timer duration of the timer reaches the screen standby duration, the mobile terminal is brought into the screen standby state.
  • the acquiring the screen standby duration corresponding to the currently running program includes: determining whether the mobile terminal enables the non-default duration function;
  • the screen standby duration corresponding to the currently running program is set as the default screen standby duration of the mobile terminal;
  • the mobile terminal When the mobile terminal enables the non-default duration function, it queries the screen standby duration corresponding to the currently running program.
  • the screen standby duration corresponding to the currently running program is: When there are more than one program currently running, extracting a screen standby duration of the plurality of programs; comparing a screen standby duration of the plurality of programs;
  • the maximum value of the screen standby duration of the plurality of programs is set to the screen standby duration corresponding to the currently running program.
  • the method further includes:
  • the currently running program includes:
  • a program that is currently running on the front end and that has been running for more than a preset time is currently running on the front end and that has been running for more than a preset time.
  • the present invention also provides an apparatus for causing a mobile terminal to enter standby, including:
  • An acquisition module configured to acquire a screen standby duration corresponding to a currently running program; the screen standby duration is preset;
  • the timing module is configured to start a timer when the user stops the operation of the mobile terminal
  • the standby module is configured to enable the mobile terminal to enter a screen standby state when the timer duration of the timer reaches the screen standby duration.
  • the acquiring module includes:
  • a determining unit configured to determine whether the mobile terminal enables a non-default duration function
  • a default duration unit configured to set a screen standby duration corresponding to the currently running program to be mobile when the mobile terminal does not enable the non-default duration function The default screen standby time of the terminal
  • the non-default duration unit is used to query the screen standby duration corresponding to the currently running program when the mobile terminal enables the non-default duration function.
  • the non-default duration unit comprises:
  • Extracting a subunit configured to extract a screen standby duration of the plurality of programs when there are multiple programs currently running;
  • a comparison subunit configured to compare a screen standby duration of the plurality of programs;
  • the value subunit is configured to set a maximum value of the screen standby duration of the plurality of programs to a screen standby duration corresponding to the currently running program.
  • the device for causing the mobile terminal to enter standby further includes:
  • the detecting module is configured to periodically detect whether the user stops the mobile terminal operation.
  • the currently running program includes:
  • a program that is currently running on the front end and that has been running for more than a preset time is currently running on the front end and that has been running for more than a preset time.
  • the invention provides a method and a device for causing a mobile terminal to enter a standby state, which can flexibly set a screen standby duration of each program in the mobile terminal, and intelligently enter the screen standby according to a program currently running by the mobile terminal, and the present invention fully considers the user experience. , greatly improving the user experience while achieving terminal power saving.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for causing a mobile terminal to enter a standby mode according to the present invention
  • FIG. 2 is a schematic flowchart of an obtaining step in an embodiment of a method for causing a mobile terminal to enter standby mode according to the present invention
  • FIG. 3 is a schematic flowchart of a step of acquiring a non-default duration function according to an embodiment of the present invention
  • FIG. 4 is a schematic flow chart of still another embodiment of a method for causing a mobile terminal to enter standby according to the present invention
  • FIG. 5 is a schematic structural diagram of an embodiment of a device for causing a mobile terminal to enter standby according to the present invention
  • FIG. 6 is a schematic diagram of the present invention for causing a mobile terminal to enter standby mode.
  • FIG. 7 is a schematic structural diagram of a non-default duration unit 13 in an embodiment of the apparatus for causing a mobile terminal to enter standby;
  • FIG. 8 is a schematic structural diagram of still another embodiment of a device for causing a mobile terminal to enter standby. detailed description
  • Step S10 Obtain a screen standby duration corresponding to a program currently running by the mobile terminal; the screen standby duration is preset.
  • the mobile terminal sets a non-default duration function
  • the non-default duration function refers to setting different screen standby durations according to the service type of the mobile terminal, for example, the screen standby duration set by the instant messaging service is set to 2 minutes, the browser The screen standby time of the business setting is set to 1 minute, the screen standby time of the reading service setting such as e-book is set to 5 minutes, and the screen standby time set for the circuit domain service such as SMS/voice is set to 10 seconds.
  • the opening or closing of the non-default duration function can be manually set by the user of the mobile terminal, and the screen standby duration corresponding to different service types can also be preset by the user of the mobile terminal as needed.
  • the mobile terminal queries the program running on the front end of the mobile terminal:
  • the mobile terminal can obtain the program running on the front end of the mobile terminal by querying the front-end process, and the front-end process refers to the program process that interacts with the user.
  • the front-end process refers to the program process that interacts with the user.
  • the front-end process First, there is a process that displays an Activity that is displayed at the forefront of the screen and interacts with the user (ie, the onResume() method of the Activity object is Call))
  • Each program and the corresponding screen standby duration may be a mapping table stored in the mobile terminal, by querying the mapping In the table, the mobile terminal can obtain the screen standby duration corresponding to each program. Finally, the acquired screen standby duration is sent to a timer that counts the screen standby.
  • the mobile terminal referred to in this embodiment specifically refers to a mobile communication device having a screen or a display device through other products such as a mobile phone, a PDA, or an internet box.
  • Step S11 When the user stops the operation of the mobile terminal, the timer is started.
  • the mobile terminal detects whether the user has stopped operating the mobile terminal, such as keyboard operation, sliding operation, etc. If the user has stopped operating, the timer is started according to the screen standby duration corresponding to the currently running program that the mobile terminal has acquired.
  • Step S12 When the time duration of the timer reaches the standby time of the screen, the mobile terminal is brought into the screen standby state.
  • the screen of the mobile terminal is closed, and the mobile terminal enters the screen standby state.
  • the screen standby duration of each program in the mobile terminal can be flexibly set, and the screen standby is intelligently entered according to the program currently running by the mobile terminal.
  • the present invention fully considers the user experience, and achieves a large degree of power saving at the terminal. Improve the user experience.
  • step S10 may include:
  • Step S101 Determine whether the mobile terminal enables a non-default duration function.
  • Step S102 When the mobile terminal does not enable the non-default duration function, set the screen standby duration corresponding to the currently running program to the default screen standby duration of the mobile terminal.
  • the screen standby duration of all programs is set to the preset default screen standby duration, and the mobile terminal's timer counts the screen standby by the default screen standby duration.
  • Step S103 When the mobile terminal enables the non-default duration function, query the screen standby duration corresponding to the currently running program.
  • the screen standby time can be made more flexible according to whether the non-default duration function is enabled or not to determine the default screen standby duration or the screen standby duration corresponding to the current program.
  • step S103 may further include:
  • Step S1031 When there are a plurality of programs currently running, the screen standby time of the plurality of programs is extracted.
  • the mobile terminal When there are multiple programs currently running, the mobile terminal obtains a list of currently running programs: The mobile terminal can open a temporary space Space - App is used to store the currently running program, such as Space_App[l] stored program Browser, Space [2] The program Mobile_QQ is stored, and when the mobile terminal has no other programs running, the other values of Space-App are 0. The mobile terminal extracts the screen standby time of a plurality of programs in the temporary space.
  • a temporary space Space - App is used to store the currently running program, such as Space_App[l] stored program Browser, Space [2]
  • the program Mobile_QQ is stored, and when the mobile terminal has no other programs running, the other values of Space-App are 0.
  • the mobile terminal extracts the screen standby time of a plurality of programs in the temporary space.
  • Step S1032 Compare the screen standby duration of the plurality of programs.
  • Step S1033 The maximum value of the screen standby duration of the plurality of programs is set to the screen standby duration corresponding to the currently running program.
  • the maximum value is set to the screen standby duration corresponding to the currently running program, and is sent to the timer for timing of the screen standby.
  • the timing of the screen standby is performed using the maximum value of the screen standby duration.
  • step S11 the method further includes:
  • Step S13 Timely detecting whether the user stops the operation of the mobile terminal.
  • the mobile terminal periodically detects whether the user stops the mobile terminal operation to determine whether to turn on the timing of the screen standby.
  • the timing when entering the screen standby provides preparation.
  • the currently running program includes:
  • a program that is currently running on the front end and that has been running for more than a preset time is currently running on the front end and that has been running for more than a preset time.
  • the user Since the user has a normal operation such as program switching when using the mobile terminal, it is possible to determine the program that is running on the front end of the mobile terminal for a predetermined period of time, thereby using the program as the currently running program, instead of being at the front end of the mobile terminal at a certain point in time.
  • the program that runs For example, it is determined that the program running on the front end of the mobile terminal continues for 60 minutes, and the program is added to the opened temporary space as a program running on the front end of the mobile terminal in this time period.
  • the currently running program is defined to better simulate the user's usage scenario.
  • an embodiment of the device for causing a mobile terminal to enter standby includes: an obtaining module 10, configured to acquire a screen standby duration corresponding to a program currently running by the mobile terminal; and the screen standby duration is preset.
  • the timing module 20 is started to start a timer when the user stops the operation of the mobile terminal.
  • the standby module 30 is configured to enable the mobile terminal to enter a screen standby state when the timer duration of the timer reaches the screen standby duration.
  • the non-default duration function refers to setting different screen standby durations according to the service type of the mobile terminal, such as: the screen standby duration set by the instant messaging service is set to 2 minutes, and the screen standby duration of the browser service setting is set to 1 Minutes, the screen standby time set for reading services such as e-books is set to 5 minutes, and the screen standby time set for circuit domain services such as SMS/voice is set to 10 seconds.
  • the opening or closing of the non-default duration function can be manually set by the user of the mobile terminal, and the screen standby duration corresponding to different service types can also be preset by the user of the mobile terminal as needed.
  • the mobile terminal queries a program that is running on the front end of the mobile terminal: the mobile terminal can obtain a program that is running on the front end of the mobile terminal by querying the front-end process, and the front-end process refers to the user. There are interactive program processes.
  • the front-end process First, there is a process that displays an Activity that is displayed at the forefront of the screen and interacts with the user (ie, the onResume() method of the Activity object is Call)) Second, there is a Service that is interacting with the user; Third, there is a Servcie object, which is executing the lifecycle method (Oncreat(), Onstart(), or Ondestroy()); Fourth, there is a BroadcastReceiver object. , which is executing the onReceive() method. Then, after the mobile terminal queries the program running on the front end of the mobile terminal, the obtaining module 10 acquires the screen standby duration of the program.
  • Each program and the corresponding screen standby duration may be a mapping table stored in the mobile terminal, and the obtaining module 10 may query the mapping table, and the mobile terminal may acquire the screen standby duration corresponding to each program. Finally, the acquired screen standby duration is sent to a timer that counts the screen standby.
  • the mobile terminal referred to in this embodiment specifically refers to a mobile communication device having a screen or a display device through other products such as a mobile phone, a PDA, or an internet box.
  • the mobile terminal detects whether the user has stopped operating the mobile terminal, such as keyboard operation, sliding operation, etc. If the user has stopped operating, the startup timing module 20 starts timing according to the screen standby duration corresponding to the currently running program that the mobile terminal has acquired. The device starts timing.
  • the standby module 30 closes the screen of the mobile terminal, and the mobile terminal enters the screen standby state.
  • the screen standby duration of each program in the mobile terminal can be flexibly set, and the screen standby is intelligently entered according to the currently running program.
  • the present invention fully considers the user experience and greatly improves the terminal power saving. The user experience.
  • the obtaining module 10 may include:
  • the determining unit 11 is configured to determine whether the mobile terminal enables the non-default duration function.
  • the default duration unit 12 is configured to set the screen standby duration corresponding to the currently running program to the default screen standby duration of the mobile terminal when the mobile terminal does not enable the non-default duration function.
  • the non-default duration unit 13 is configured to query the screen standby duration corresponding to the currently running program when the mobile terminal enables the non-default duration function.
  • the default duration unit 12 sets the screen standby duration of all programs to the preset default screen standby duration, and the mobile terminal's timer counts the screen standby through the default screen standby duration.
  • the non-default duration unit 13 queries the screen standby duration corresponding to the currently running program and sends it to the timer.
  • the screen standby time can be made more flexible according to whether the non-default duration function is enabled or not to determine the default screen standby duration or the screen standby duration corresponding to the current program.
  • the non-default duration unit 13 includes:
  • the extracting sub-unit 131 is configured to extract a screen standby duration of the plurality of programs when there are multiple programs currently running.
  • the comparison subunit 132 is configured to compare the screen standby duration of the plurality of programs.
  • the value sub-unit 133 is configured to set a maximum value of the screen standby duration of the plurality of programs to a screen standby duration corresponding to the currently running program.
  • the mobile terminal When there are multiple programs currently running, the mobile terminal obtains a list of currently running programs:
  • the mobile terminal can open a temporary space Space - App is used to store the currently running program, such as Space_App[l] stored program Browser, Space [2]
  • Space_App[l] stored program Browser Space [2]
  • the program Mobile_QQ is stored, and when the mobile terminal has no other programs running, the other values of Space-App are 0.
  • the extraction sub-unit 131 extracts the screen standby duration of a plurality of programs in the temporary space.
  • the comparison sub-unit 132 compares the screen standby durations corresponding to the plurality of programs in the program list to obtain the maximum value therein.
  • the value sub-unit 133 sets the maximum value to the screen standby time corresponding to the currently running program, and sends it to the timer for timing of the screen standby.
  • the screen standby when there are multiple programs currently running, the screen standby is used.
  • the maximum value of the duration is the timing of the screen standby.
  • the method further includes:
  • the detecting module 40 is configured to periodically detect whether the user stops the mobile terminal operation.
  • the detecting module 40 periodically detects whether the user stops the operation of the mobile terminal to determine whether to turn on the timing of the screen standby. The timing when entering the screen standby provides preparation.
  • the currently running program includes:
  • a program that is currently running on the front end and that has been running for more than a preset time is currently running on the front end and that has been running for more than a preset time.
  • the user Since the user has a normal operation such as program switching when using the mobile terminal, it is possible to determine the program that is running on the front end of the mobile terminal for a predetermined period of time, thereby using the program as the currently running program, instead of being at the front end of the mobile terminal at a certain point in time.
  • the program that runs For example, it is determined that the program running on the front end of the mobile terminal continues for 60 minutes, and the program is added to the opened temporary space as a program running on the front end of the mobile terminal in this time period.
  • the currently running program is defined to better simulate the user's usage scenario.

Abstract

Disclosed is a method for making a mobile terminal enter standby, including: obtaining the screen standby duration corresponding to the currently running program of a mobile terminal, wherein the screen standby duration corresponding to each program in the mobile terminal is preset; when a user stops the operation of the mobile terminal, starting a timer; and when the timing duration of the timer reaches the screen standby duration, entering a screen standby state. Also proposed is a corresponding device. The method and device for making a mobile terminal enter standby provided in the present invention can flexibly set the screen standby duration of each program in the mobile terminal, and enter screen standby intelligently according to the currently running program of the mobile terminal. The present invention takes full account of user experience, and improves user experience to a great extent while saving power for the terminal.

Description

使移动终端 待机的方法及装置 技术领域  Method and device for making mobile terminal standby
本发明涉及到通信领域, 特别涉及到一种使移动终端进入待机的方法 及装置。 背景技术  The present invention relates to the field of communications, and in particular, to a method and apparatus for causing a mobile terminal to enter standby. Background technique
随着移动通信技术的不断发展, 移动终端已经深入到人们的生活当中, 移动通信也已经成为最广泛使用的通信方式。 以手机为例, 手机作为曰常 生活和商业事务的工具, 在用户的生活中占有重要的地位。 同时依托移动 通信的增值业务, 使移动终端得到了更进一步的发展。  With the continuous development of mobile communication technology, mobile terminals have penetrated into people's lives, and mobile communication has become the most widely used communication method. Taking mobile phones as an example, mobile phones, as tools for everyday life and business affairs, play an important role in the lives of users. At the same time, relying on the value-added services of mobile communication, the mobile terminal has been further developed.
常见的增值业务实现方式包括短信和语音等, 随着移动通信技术的发 展, 移动终端的功能越来越多, 如无线上网功能、 即时通讯功能等, 这些 效的联系沟通。  Common value-added service implementation methods include SMS and voice. With the development of mobile communication technologies, mobile terminals have more and more functions, such as wireless Internet access functions and instant messaging functions.
对于传统的增值业务, 如短信业务, 用户在使用过程中往往是连续在 操作, 用户编辑短信、 发送短信结束几乎与停止键盘操作是同步的, 当用 户停止键盘操作一段时间后移动终端就会根据之前用户设置的屏幕待机时 长自动关闭移动终端屏幕, 以达到节省移动终端电量的目的。  For traditional value-added services, such as short message service, the user often operates continuously during the use process. The user edits the short message and sends the short message to be almost synchronized with the stop keyboard operation. When the user stops the keyboard operation for a period of time, the mobile terminal will be based on The screen standby time set by the user automatically turns off the screen of the mobile terminal to save the power of the mobile terminal.
随着增值业务, 尤其是数据业务不断扩展, 移动终端中逐渐集成了浏 览器、 即时通讯、 电子书等功能, 以电子书为例, 这类业务与传统的增值 业务不同, 键盘操作与该业务使用结束的同步性极差, 因而往往在移动终 端屏幕关闭的时候用户还正在使用业务。 虽然用户可通过键盘操作使移动 终端的屏幕恢复点亮状态, 但往往在打开移动终端屏幕后仍然需要输入解 锁图案或输入密码才能正常使用移动终端功能, 比较繁瑣。 但是当用户试 图通过延长屏幕待机时长解决上述问题时, 较长的屏幕待机时长又不适用 于交互性较强的业务, 如短信、 通话、 闹钟、 计算器等, 屏幕待机时间的 延长会造成移动终端电量的浪费。 With the expansion of value-added services, especially data services, mobile terminals are gradually integrating functions such as browsers, instant messaging, and e-books. Taking e-books as an example, such services are different from traditional value-added services, keyboard operations and services. The synchronization at the end of use is extremely poor, so users are often using services when the screen of the mobile terminal is turned off. Although the user can restore the screen of the mobile terminal to the light state through the keyboard operation, it is often required to input the unlock pattern or input a password to open the function of the mobile terminal after opening the screen of the mobile terminal, which is cumbersome. But when the user tries When the above problem is solved by extending the standby time of the screen, the longer screen standby time is not applicable to the more interactive services, such as SMS, call, alarm clock, calculator, etc., the extension of the screen standby time will cause the power of the mobile terminal. waste.
由此可以看出, 目前关于移动终端进入屏幕待机的方法存在如下明显 的缺陷: 移动终端的屏幕待机时长设置不灵活, 使得移动终端无法根据业 务类型智能地进入屏幕待机, 如果屏幕待机时间设置太短, 则影响浏览器、 电子书、 即时通讯等业务使用时的用户体验, 如果屏幕待机时间设置过长, 会引起移动终端电量浪费。 发明内容  It can be seen that the current method for the mobile terminal to enter the screen standby has the following obvious drawbacks: The screen standby time setting of the mobile terminal is not flexible, so that the mobile terminal cannot intelligently enter the screen standby according to the service type, if the screen standby time is set too If it is short, it will affect the user experience when using services such as browsers, e-books, and instant messaging. If the screen standby time is set too long, the mobile terminal will be wasted. Summary of the invention
本发明的主要目的为提供一种使移动终端进入待机的方法及装置, 达 到移动终端节电的同时提高了用户体验。  SUMMARY OF THE INVENTION A primary object of the present invention is to provide a method and apparatus for causing a mobile terminal to enter standby, thereby achieving a user experience while achieving power saving of the mobile terminal.
本发明提出一种使移动终端进入待机的方法, 包括:  The present invention provides a method for causing a mobile terminal to enter standby, including:
获取移动终端当前正在运行的程序对应的屏幕待机时长; 所述屏幕待 机时长为预先设置;  Obtaining a screen standby duration corresponding to a program currently running by the mobile terminal; the screen waiting time is preset;
当用户停止移动终端操作时, 启动计时器;  When the user stops the mobile terminal operation, the timer is started;
当所述计时器的计时时长到达所述屏幕待机时长时, 使移动终端进入 屏幕待机状态。  When the timer duration of the timer reaches the screen standby duration, the mobile terminal is brought into the screen standby state.
优选地, 所述获取当前正在运行的程序对应的屏幕待机时长包括: 判断所述移动终端是否启用非默认时长功能;  Preferably, the acquiring the screen standby duration corresponding to the currently running program includes: determining whether the mobile terminal enables the non-default duration function;
当所述移动终端没有启用非默认时长功能时, 将当前正在运行的程序 对应的屏幕待机时长设置为移动终端的默认屏幕待机时长;  When the mobile terminal does not enable the non-default duration function, the screen standby duration corresponding to the currently running program is set as the default screen standby duration of the mobile terminal;
当所述移动终端启用非默认时长功能时, 查询当前正在运行的程序对 应的屏幕待机时长。  When the mobile terminal enables the non-default duration function, it queries the screen standby duration corresponding to the currently running program.
优选地, 所述当移动终端启用非默认时长功能时, 查询当前正在运行 的程序对应的屏幕待机时长包括: 当当前正在运行的程序有多个时, 提取所述多个程序的屏幕待机时长; 比较所述多个程序的屏幕待机时长; Preferably, when the mobile terminal enables the non-default duration function, the screen standby duration corresponding to the currently running program is: When there are more than one program currently running, extracting a screen standby duration of the plurality of programs; comparing a screen standby duration of the plurality of programs;
将所述多个程序的屏幕待机时长中最大值设为当前正在运行的程序对 应的屏幕待机时长。  The maximum value of the screen standby duration of the plurality of programs is set to the screen standby duration corresponding to the currently running program.
优选地, 在执行所述当用户停止移动终端操作时, 启动计时器之前, 还包括:  Preferably, before the timer is started when the user stops the operation of the mobile terminal, the method further includes:
定时检测用户是否停止移动终端操作。  It is periodically detected whether the user stops the mobile terminal operation.
优选地, 所述当前正在运行的程序包括:  Preferably, the currently running program includes:
当前正在前端运行, 且运行时间超过一预设时间的程序。  A program that is currently running on the front end and that has been running for more than a preset time.
本发明还提出一种使移动终端进入待机的装置, 包括:  The present invention also provides an apparatus for causing a mobile terminal to enter standby, including:
获取模块, 用于获取当前正在运行的程序对应的屏幕待机时长; 所述 屏幕待机时长为预先设置;  An acquisition module, configured to acquire a screen standby duration corresponding to a currently running program; the screen standby duration is preset;
启动计时模块, 用于当用户停止移动终端操作时, 启动计时器; 待机模块, 用于当所述计时器的计时时长到达所述屏幕待机时长时, 使移动终端进入屏幕待机状态。  The timing module is configured to start a timer when the user stops the operation of the mobile terminal, and the standby module is configured to enable the mobile terminal to enter a screen standby state when the timer duration of the timer reaches the screen standby duration.
优选地, 所述获取模块包括:  Preferably, the acquiring module includes:
判断单元, 用于判断所述移动终端是否启用非默认时长功能; 默认时长单元, 用于当所述移动终端没有启用非默认时长功能时, 将 当前正在运行的程序对应的屏幕待机时长设置为移动终端的默认屏幕待机 时长;  a determining unit, configured to determine whether the mobile terminal enables a non-default duration function; a default duration unit, configured to set a screen standby duration corresponding to the currently running program to be mobile when the mobile terminal does not enable the non-default duration function The default screen standby time of the terminal;
非默认时长单元, 用于当所述移动终端启用非默认时长功能时, 查询 当前正在运行的程序对应的屏幕待机时长。  The non-default duration unit is used to query the screen standby duration corresponding to the currently running program when the mobile terminal enables the non-default duration function.
优选地, 所述非默认时长单元包括:  Preferably, the non-default duration unit comprises:
提取子单元, 用于当当前正在运行的程序有多个时, 提取所述多个程 序的屏幕待机时长; 比较子单元, 用于比较所述多个程序的屏幕待机时长; Extracting a subunit, configured to extract a screen standby duration of the plurality of programs when there are multiple programs currently running; a comparison subunit, configured to compare a screen standby duration of the plurality of programs;
取值子单元, 用于将所述多个程序的屏幕待机时长中最大值设为当前 正在运行的程序对应的屏幕待机时长。  The value subunit is configured to set a maximum value of the screen standby duration of the plurality of programs to a screen standby duration corresponding to the currently running program.
优选地, 所述使移动终端进入待机的装置还包括:  Preferably, the device for causing the mobile terminal to enter standby further includes:
检测模块, 用于定时检测用户是否停止移动终端操作。  The detecting module is configured to periodically detect whether the user stops the mobile terminal operation.
优选地, 所述当前正在运行的程序包括:  Preferably, the currently running program includes:
当前正在前端运行, 且运行时间超过一预设时间的程序。  A program that is currently running on the front end and that has been running for more than a preset time.
本发明提供的一种使移动终端进入待机的方法及装置, 可灵活设置移 动终端内各程序的屏幕待机时长, 根据移动终端当前正在运行的程序智能 地进入屏幕待机, 本发明充分考虑了用户体验, 在达到终端省电的同时很 大程度上提高了用户体验。 附图说明  The invention provides a method and a device for causing a mobile terminal to enter a standby state, which can flexibly set a screen standby duration of each program in the mobile terminal, and intelligently enter the screen standby according to a program currently running by the mobile terminal, and the present invention fully considers the user experience. , greatly improving the user experience while achieving terminal power saving. DRAWINGS
图 1 为本发明使移动终端进入待机的方法一实施例的流程示意图; 图 2 为本发明使移动终端进入待机的方法一实施例中获取步骤的流程 示意图;  1 is a schematic flowchart of an embodiment of a method for causing a mobile terminal to enter a standby mode according to the present invention; FIG. 2 is a schematic flowchart of an obtaining step in an embodiment of a method for causing a mobile terminal to enter standby mode according to the present invention;
图 3 为本发明使移动终端进入待机的方法一实施例非默认时长功能时 获取步骤的流程示意图;  FIG. 3 is a schematic flowchart of a step of acquiring a non-default duration function according to an embodiment of the present invention;
图 4 为本发明使移动终端进入待机的方法又一实施例的流程示意图; 图 5 为本发明使移动终端进入待机的装置一实施例的结构示意图; 图 6 为本发明使移动终端进入待机的装置一实施例中获取模块的结构 示意图;  4 is a schematic flow chart of still another embodiment of a method for causing a mobile terminal to enter standby according to the present invention; FIG. 5 is a schematic structural diagram of an embodiment of a device for causing a mobile terminal to enter standby according to the present invention; FIG. 6 is a schematic diagram of the present invention for causing a mobile terminal to enter standby mode. A schematic structural diagram of an acquisition module in an embodiment of the apparatus;
图 7 为本发明使移动终端进入待机的装置一实施例中非默认时长单元 13的结构示意图;  FIG. 7 is a schematic structural diagram of a non-default duration unit 13 in an embodiment of the apparatus for causing a mobile terminal to enter standby;
图 8 为本发明使移动终端进入待机的装置又一实施例的结构示意图。 具体实施方式 FIG. 8 is a schematic structural diagram of still another embodiment of a device for causing a mobile terminal to enter standby. detailed description
本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一 步说明。  The implementation, functional features and advantages of the objects of the present invention will be further described in conjunction with the embodiments herein.
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。  It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图 1 , 提出本发明使移动终端进入待机的方法一实施例, 包括: 步骤 S10、 获取移动终端当前正在运行的程序对应的屏幕待机时长; 所 述屏幕待机时长为预先设置。  Referring to FIG. 1 , an embodiment of a method for the mobile terminal to enter standby is provided. The method includes the following steps: Step S10: Obtain a screen standby duration corresponding to a program currently running by the mobile terminal; the screen standby duration is preset.
本实施例中, 移动终端设置了非默认时长功能, 非默认时长功能是指 根据移动终端的业务类型设置不同的屏幕待机时长, 如: 即时通讯业务设 置的屏幕待机时长设置为 2分钟, 浏览器业务设置的屏幕待机时长设置为 1 分钟, 电子书等阅读类业务设置的屏幕待机时长设置为 5分钟, 而对 SMS/ 语音等电路域业务设置的屏幕待机时长设置为 10秒钟。 非默认时长功能的 开启或关闭可由移动终端的用户手动设置, 不同业务类型对应的屏幕待机 时长也可由移动终端的用户根据需要进行预先设置。  In this embodiment, the mobile terminal sets a non-default duration function, and the non-default duration function refers to setting different screen standby durations according to the service type of the mobile terminal, for example, the screen standby duration set by the instant messaging service is set to 2 minutes, the browser The screen standby time of the business setting is set to 1 minute, the screen standby time of the reading service setting such as e-book is set to 5 minutes, and the screen standby time set for the circuit domain service such as SMS/voice is set to 10 seconds. The opening or closing of the non-default duration function can be manually set by the user of the mobile terminal, and the screen standby duration corresponding to different service types can also be preset by the user of the mobile terminal as needed.
首先, 移动终端查询正在移动终端前端运行的程序: 移动终端可通过 查询前端进程来获取正在移动终端前端运行的程序, 前端进程是指和用户 有交互的程序进程。 以 Android智能操作系统为例, 满足下述四个条件之一 的即为前端进程: 一是拥有一个显示在屏幕最前端并与用户作交互的 Activity的进程(即 Activity对象的 onResume()方法被调用); 二是有一个正 在与用户交互的 Activity的 Service; 三是有一个 Servcie对象, 其正在执行生 命周期的方法 ( Oncreat()、 Onstart()或 Ondestroy() ); 四是有一个 BroadcastReceiver对象, 其正在执行 onReceive()方法。 然后, 当移动终端查 询到移动终端前端运行的程序后, 获取该程序的屏幕待机时长。 各程序与 对应的屏幕待机时长可以是存储在移动终端的一映射表, 通过查询该映射 表, 移动终端可获取各程序对应的屏幕待机时长。 最后, 将获取的屏幕待 机时长发送给对屏幕待机进行计时的计时器。 First, the mobile terminal queries the program running on the front end of the mobile terminal: The mobile terminal can obtain the program running on the front end of the mobile terminal by querying the front-end process, and the front-end process refers to the program process that interacts with the user. Taking the Android smart operating system as an example, one of the following four conditions is the front-end process: First, there is a process that displays an Activity that is displayed at the forefront of the screen and interacts with the user (ie, the onResume() method of the Activity object is Call)) Second, there is a Service that is interacting with the user; Third, there is a Servcie object, which is executing the lifecycle method (Oncreat(), Onstart(), or Ondestroy()); Fourth, there is a BroadcastReceiver object. , which is executing the onReceive() method. Then, when the mobile terminal queries the program running on the front end of the mobile terminal, the screen standby time of the program is obtained. Each program and the corresponding screen standby duration may be a mapping table stored in the mobile terminal, by querying the mapping In the table, the mobile terminal can obtain the screen standby duration corresponding to each program. Finally, the acquired screen standby duration is sent to a timer that counts the screen standby.
本实施例所称的移动终端具体指手机、 PDA、 上网盒等具有屏幕或通 过其它产品作为显示设备的移动通信设备。  The mobile terminal referred to in this embodiment specifically refers to a mobile communication device having a screen or a display device through other products such as a mobile phone, a PDA, or an internet box.
步骤 Sll、 当用户停止移动终端操作时, 启动计时器。  Step S11: When the user stops the operation of the mobile terminal, the timer is started.
移动终端检测用户是否已经停止操作移动终端, 如键盘操作、 滑屏操 作等, 如果用户已停止操作, 则根据移动终端已获取的当前正在运行的程 序对应的屏幕待机时长, 启动计时器开始计时。  The mobile terminal detects whether the user has stopped operating the mobile terminal, such as keyboard operation, sliding operation, etc. If the user has stopped operating, the timer is started according to the screen standby duration corresponding to the currently running program that the mobile terminal has acquired.
步骤 S12、 当所述计时器的计时时长到达所述屏幕待机时长时, 使移动 终端进入屏幕待机状态。  Step S12: When the time duration of the timer reaches the standby time of the screen, the mobile terminal is brought into the screen standby state.
当计时器的计时时长到达当前程序的屏幕待机时长时, 关闭移动终端 屏幕, 移动终端进入屏幕待机状态。  When the timer duration of the timer reaches the screen standby duration of the current program, the screen of the mobile terminal is closed, and the mobile terminal enters the screen standby state.
本实施例中, 可灵活设置移动终端内各程序的屏幕待机时长, 根据移 动终端当前正在运行的程序智能地进入屏幕待机, 本发明充分考虑了用户 体验, 在达到终端省电的同时很大程度上提高了用户体验。  In this embodiment, the screen standby duration of each program in the mobile terminal can be flexibly set, and the screen standby is intelligently entered according to the program currently running by the mobile terminal. The present invention fully considers the user experience, and achieves a large degree of power saving at the terminal. Improve the user experience.
参照图 2, 本实施例中, 步骤 S10可包括:  Referring to FIG. 2, in this embodiment, step S10 may include:
步骤 S101、 判断所述移动终端是否启用非默认时长功能。  Step S101: Determine whether the mobile terminal enables a non-default duration function.
步骤 S102、 当所述移动终端没有启用非默认时长功能时, 将当前正在 运行的程序对应的屏幕待机时长设置为移动终端的默认屏幕待机时长。  Step S102: When the mobile terminal does not enable the non-default duration function, set the screen standby duration corresponding to the currently running program to the default screen standby duration of the mobile terminal.
如果非默认时长功能未开启, 则将所有程序的屏幕待机时长设置为预 设的默认屏幕待机时长, 移动终端的计时器通过默认屏幕待机时长对屏幕 待机进行计时。  If the non-default duration function is not enabled, the screen standby duration of all programs is set to the preset default screen standby duration, and the mobile terminal's timer counts the screen standby by the default screen standby duration.
步骤 S103、 当所述移动终端启用非默认时长功能时, 查询当前正在运 行的程序对应的屏幕待机时长。  Step S103: When the mobile terminal enables the non-default duration function, query the screen standby duration corresponding to the currently running program.
如果非默认时长功能开启, 则查询当前正在运行的程序对应的屏幕待 机时长, 并发送给计时器。 If the non-default duration function is enabled, query the screen corresponding to the currently running program. The machine is long and sent to the timer.
本实施例中, 可根据非默认时长功能是否启用决定适用默认屏幕待机 时长或当前程序对应的屏幕待机时长, 使屏幕待机更加灵活。  In this embodiment, the screen standby time can be made more flexible according to whether the non-default duration function is enabled or not to determine the default screen standby duration or the screen standby duration corresponding to the current program.
参照图 3 , 在上述实施例中, 步骤 S103可进一步包括:  Referring to FIG. 3, in the above embodiment, step S103 may further include:
步骤 S1031、 当当前正在运行的程序有多个时, 提取所述多个程序的屏 幕待机时长。  Step S1031: When there are a plurality of programs currently running, the screen standby time of the plurality of programs is extracted.
当当前正在运行的程序有多个时, 移动终端获取当前正在运行的程序 列表: 移动终端可开辟一临时空间 Space— App用于存储当前正在运行的程 序, 例如 Space_App[l]存储程序 Browser, Space[2]存储程序 Mobile_QQ, 而 移动终端前端无其它程序运行时, Space— App的其它值均为 0。 移动终端提 取临时空间中多个程序的屏幕待机时长。  When there are multiple programs currently running, the mobile terminal obtains a list of currently running programs: The mobile terminal can open a temporary space Space - App is used to store the currently running program, such as Space_App[l] stored program Browser, Space [2] The program Mobile_QQ is stored, and when the mobile terminal has no other programs running, the other values of Space-App are 0. The mobile terminal extracts the screen standby time of a plurality of programs in the temporary space.
步骤 S1032、 比较所述多个程序的屏幕待机时长。  Step S1032: Compare the screen standby duration of the plurality of programs.
比较程序列表中多个程序对应的屏幕待机时长, 以获取其中最大值。 步骤 S1033、将所述多个程序的屏幕待机时长中最大值设为当前正在运 行的程序对应的屏幕待机时长。  Compare the screen standby duration of multiple programs in the program list to get the maximum value. Step S1033: The maximum value of the screen standby duration of the plurality of programs is set to the screen standby duration corresponding to the currently running program.
将所述最大值设为当前正在运行的程序对应的屏幕待机时长, 并发送 给计时器进行屏幕待机的计时。  The maximum value is set to the screen standby duration corresponding to the currently running program, and is sent to the timer for timing of the screen standby.
本实施例中, 对于当前正在运行的程序有多个时, 使用其中屏幕待机 时长的最大值进行屏幕待机的计时。  In this embodiment, when there are a plurality of programs currently running, the timing of the screen standby is performed using the maximum value of the screen standby duration.
参照图 4, 提出本发明使移动终端进入待机的方法又一实施例, 在上述 实施例中, 在执行步骤 S11之前, 还包括:  Referring to FIG. 4, another embodiment of the method for the mobile terminal to enter the standby mode is proposed. In the foregoing embodiment, before performing step S11, the method further includes:
步骤 S13 , 定时检测用户是否停止移动终端操作。  Step S13: Timely detecting whether the user stops the operation of the mobile terminal.
移动终端定时检测用户是否停止移动终端操作, 以决定是否开启屏幕 待机的计时。 时进入屏幕待机的计时提供了准备。 The mobile terminal periodically detects whether the user stops the mobile terminal operation to determine whether to turn on the timing of the screen standby. The timing when entering the screen standby provides preparation.
在上述实施例中, 所述当前正在运行的程序包括:  In the above embodiment, the currently running program includes:
当前正在前端运行, 且运行时间超过一预设时间的程序。  A program that is currently running on the front end and that has been running for more than a preset time.
由于用户使用移动终端时存在程序切换等常规操作, 因此可通过判定 一预设时间内持续在移动终端前端运行的程序, 以此作为当前正在运行的 程序, 而非某一时间点正在移动终端前端运行的程序。 例如判定持续 60min 内在移动终端前端运行的程序, 将该程序添加到已开辟的临时空间中, 作 为本时间段内的在移动终端前端运行的程序。  Since the user has a normal operation such as program switching when using the mobile terminal, it is possible to determine the program that is running on the front end of the mobile terminal for a predetermined period of time, thereby using the program as the currently running program, instead of being at the front end of the mobile terminal at a certain point in time. The program that runs. For example, it is determined that the program running on the front end of the mobile terminal continues for 60 minutes, and the program is added to the opened temporary space as a program running on the front end of the mobile terminal in this time period.
本实施例中, 对当前正在运行的程序作出定义, 更好的模拟用户的使 用场景。  In this embodiment, the currently running program is defined to better simulate the user's usage scenario.
参照图 5, 提出本发明使移动终端进入待机的装置一实施例, 包括: 获取模块 10, 用于获取移动终端当前正在运行的程序对应的屏幕待机 时长; 所述屏幕待机时长为预先设置。  Referring to FIG. 5, an embodiment of the device for causing a mobile terminal to enter standby is provided. The method includes: an obtaining module 10, configured to acquire a screen standby duration corresponding to a program currently running by the mobile terminal; and the screen standby duration is preset.
启动计时模块 20, 用于当用户停止移动终端操作时, 启动计时器。 待机模块 30, 用于当所述计时器的计时时长到达所述屏幕待机时长时, 使移动终端进入屏幕待机状态。  The timing module 20 is started to start a timer when the user stops the operation of the mobile terminal. The standby module 30 is configured to enable the mobile terminal to enter a screen standby state when the timer duration of the timer reaches the screen standby duration.
本实施例中, 非默认时长功能是指根据移动终端的业务类型设置不同 的屏幕待机时长, 如: 即时通讯业务设置的屏幕待机时长设置为 2分钟, 浏 览器业务设置的屏幕待机时长设置为 1分钟, 电子书等阅读类业务设置的屏 幕待机时长设置为 5分钟,而对 SMS/语音等电路域业务设置的屏幕待机时长 设置为 10秒钟。 非默认时长功能的开启或关闭可由移动终端的用户手动设 置, 不同业务类型对应的屏幕待机时长也可由移动终端的用户根据需要进 行预先设置。  In this embodiment, the non-default duration function refers to setting different screen standby durations according to the service type of the mobile terminal, such as: the screen standby duration set by the instant messaging service is set to 2 minutes, and the screen standby duration of the browser service setting is set to 1 Minutes, the screen standby time set for reading services such as e-books is set to 5 minutes, and the screen standby time set for circuit domain services such as SMS/voice is set to 10 seconds. The opening or closing of the non-default duration function can be manually set by the user of the mobile terminal, and the screen standby duration corresponding to different service types can also be preset by the user of the mobile terminal as needed.
首先, 移动终端查询正在移动终端前端运行的程序: 移动终端可通过 查询前端进程来获取正在移动终端前端运行的程序, 前端进程是指和用户 有交互的程序进程。 以 Android智能操作系统为例, 满足下述四个条件之一 的即为前端进程: 一是拥有一个显示在屏幕最前端并与用户作交互的 Activity的进程(即 Activity对象的 onResume()方法被调用); 二是有一个正 在与用户交互的 Activity的 Service; 三是有一个 Servcie对象, 其正在执行生 命周期的方法 ( Oncreat()、 Onstart()或 Ondestroy() ); 四是有一个 BroadcastReceiver对象, 其正在执行 onReceive()方法。 然后, 当移动终端查 询到移动终端前端运行的程序后, 获取模块 10获取该程序的屏幕待机时长。 各程序与对应的屏幕待机时长可以是存储在移动终端的一映射表, 获取模 块 10通过查询该映射表, 移动终端可获取各程序对应的屏幕待机时长。 最 后, 将获取的屏幕待机时长发送给对屏幕待机进行计时的计时器。 First, the mobile terminal queries a program that is running on the front end of the mobile terminal: the mobile terminal can obtain a program that is running on the front end of the mobile terminal by querying the front-end process, and the front-end process refers to the user. There are interactive program processes. Taking the Android smart operating system as an example, one of the following four conditions is the front-end process: First, there is a process that displays an Activity that is displayed at the forefront of the screen and interacts with the user (ie, the onResume() method of the Activity object is Call)) Second, there is a Service that is interacting with the user; Third, there is a Servcie object, which is executing the lifecycle method (Oncreat(), Onstart(), or Ondestroy()); Fourth, there is a BroadcastReceiver object. , which is executing the onReceive() method. Then, after the mobile terminal queries the program running on the front end of the mobile terminal, the obtaining module 10 acquires the screen standby duration of the program. Each program and the corresponding screen standby duration may be a mapping table stored in the mobile terminal, and the obtaining module 10 may query the mapping table, and the mobile terminal may acquire the screen standby duration corresponding to each program. Finally, the acquired screen standby duration is sent to a timer that counts the screen standby.
本实施例所称的移动终端具体指手机、 PDA、 上网盒等具有屏幕或通 过其它产品作为显示设备的移动通信设备。  The mobile terminal referred to in this embodiment specifically refers to a mobile communication device having a screen or a display device through other products such as a mobile phone, a PDA, or an internet box.
移动终端检测用户是否已经停止操作移动终端, 如键盘操作、 滑屏操 作等, 如果用户已停止操作, 启动计时模块 20则根据移动终端已获取的当 前正在运行的程序对应的屏幕待机时长, 启动计时器开始计时。  The mobile terminal detects whether the user has stopped operating the mobile terminal, such as keyboard operation, sliding operation, etc. If the user has stopped operating, the startup timing module 20 starts timing according to the screen standby duration corresponding to the currently running program that the mobile terminal has acquired. The device starts timing.
当计时器的计时时长到达当前程序的屏幕待机时长时, 待机模块 30关 闭移动终端屏幕, 移动终端进入屏幕待机状态。  When the timer duration of the timer reaches the screen standby duration of the current program, the standby module 30 closes the screen of the mobile terminal, and the mobile terminal enters the screen standby state.
本实施例中, 可灵活设置移动终端内各程序的屏幕待机时长, 根据当 前正在运行的程序智能地进入屏幕待机, 本发明充分考虑了用户体验, 在 达到终端省电的同时很大程度上提高了用户体验。  In this embodiment, the screen standby duration of each program in the mobile terminal can be flexibly set, and the screen standby is intelligently entered according to the currently running program. The present invention fully considers the user experience and greatly improves the terminal power saving. The user experience.
参照图 6, 在一实施例中, 获取模块 10可包括:  Referring to FIG. 6, in an embodiment, the obtaining module 10 may include:
判断单元 11 , 用于判断所述移动终端是否启用非默认时长功能。  The determining unit 11 is configured to determine whether the mobile terminal enables the non-default duration function.
默认时长单元 12 , 用于当所述移动终端没有启用非默认时长功能时, 将当前正在运行的程序对应的屏幕待机时长设置为移动终端的默认屏幕待 机时长。 非默认时长单元 13 , 用于当所述移动终端启用非默认时长功能时, 查 询当前正在运行的程序对应的屏幕待机时长。 The default duration unit 12 is configured to set the screen standby duration corresponding to the currently running program to the default screen standby duration of the mobile terminal when the mobile terminal does not enable the non-default duration function. The non-default duration unit 13 is configured to query the screen standby duration corresponding to the currently running program when the mobile terminal enables the non-default duration function.
如果非默认时长功能未开启, 则默认时长单元 12将所有程序的屏幕待 机时长设置为预设的默认屏幕待机时长, 移动终端的计时器通过默认屏幕 待机时长对屏幕待机进行计时。  If the non-default duration function is not enabled, the default duration unit 12 sets the screen standby duration of all programs to the preset default screen standby duration, and the mobile terminal's timer counts the screen standby through the default screen standby duration.
如果非默认时长功能开启, 则非默认时长单元 13查询当前正在运行的 程序对应的屏幕待机时长, 并发送给计时器。  If the non-default duration function is enabled, the non-default duration unit 13 queries the screen standby duration corresponding to the currently running program and sends it to the timer.
本实施例中, 可根据非默认时长功能是否启用决定适用默认屏幕待机 时长或当前程序对应的屏幕待机时长, 使屏幕待机更加灵活。  In this embodiment, the screen standby time can be made more flexible according to whether the non-default duration function is enabled or not to determine the default screen standby duration or the screen standby duration corresponding to the current program.
参照图 7, 在上述实施例中, 非默认时长单元 13包括:  Referring to FIG. 7, in the above embodiment, the non-default duration unit 13 includes:
提取子单元 131 , 用于当当前正在运行的程序有多个时, 提取所述多个 程序的屏幕待机时长。  The extracting sub-unit 131 is configured to extract a screen standby duration of the plurality of programs when there are multiple programs currently running.
比较子单元 132, 用于比较所述多个程序的屏幕待机时长。  The comparison subunit 132 is configured to compare the screen standby duration of the plurality of programs.
取值子单元 133 , 用于将所述多个程序的屏幕待机时长中最大值设为当 前正在运行的程序对应的屏幕待机时长。  The value sub-unit 133 is configured to set a maximum value of the screen standby duration of the plurality of programs to a screen standby duration corresponding to the currently running program.
当当前正在运行的程序有多个时, 移动终端获取当前正在运行的程序 列表: 移动终端可开辟一临时空间 Space— App用于存储当前正在运行的程 序, 例如 Space_App[l]存储程序 Browser, Space[2]存储程序 Mobile_QQ, 而 移动终端前端无其它程序运行时, Space— App的其它值均为 0。 提取子单元 131提取临时空间中多个程序的屏幕待机时长。  When there are multiple programs currently running, the mobile terminal obtains a list of currently running programs: The mobile terminal can open a temporary space Space - App is used to store the currently running program, such as Space_App[l] stored program Browser, Space [2] The program Mobile_QQ is stored, and when the mobile terminal has no other programs running, the other values of Space-App are 0. The extraction sub-unit 131 extracts the screen standby duration of a plurality of programs in the temporary space.
比较子单元 132比较程序列表中多个程序对应的屏幕待机时长, 以获取 其中最大值。  The comparison sub-unit 132 compares the screen standby durations corresponding to the plurality of programs in the program list to obtain the maximum value therein.
取值子单元 133将所述最大值设为当前正在运行的程序对应的屏幕待 机时长, 并发送给计时器进行屏幕待机的计时。  The value sub-unit 133 sets the maximum value to the screen standby time corresponding to the currently running program, and sends it to the timer for timing of the screen standby.
本实施例中, 对于当前正在运行的程序有多个时, 使用其中屏幕待机 时长的最大值进行屏幕待机的计时。 In this embodiment, when there are multiple programs currently running, the screen standby is used. The maximum value of the duration is the timing of the screen standby.
参照图 8, 提出本发明使移动终端进入待机的装置又一实施例, 在上述 实施例中, 还包括:  Referring to FIG. 8, another embodiment of the apparatus for causing the mobile terminal to enter the standby mode is provided. In the above embodiment, the method further includes:
检测模块 40, 用于定时检测用户是否停止移动终端操作。  The detecting module 40 is configured to periodically detect whether the user stops the mobile terminal operation.
检测模块 40定时检测用户是否停止移动终端操作, 以决定是否开启屏 幕待机的计时。 时进入屏幕待机的计时提供了准备。  The detecting module 40 periodically detects whether the user stops the operation of the mobile terminal to determine whether to turn on the timing of the screen standby. The timing when entering the screen standby provides preparation.
在上述实施例中, 所述当前正在运行的程序包括:  In the above embodiment, the currently running program includes:
当前正在前端运行, 且运行时间超过一预设时间的程序。  A program that is currently running on the front end and that has been running for more than a preset time.
由于用户使用移动终端时存在程序切换等常规操作, 因此可通过判定 一预设时间内持续在移动终端前端运行的程序, 以此作为当前正在运行的 程序, 而非某一时间点正在移动终端前端运行的程序。 例如判定持续 60min 内在移动终端前端运行的程序, 将该程序添加到已开辟的临时空间中, 作 为本时间段内的在移动终端前端运行的程序。  Since the user has a normal operation such as program switching when using the mobile terminal, it is possible to determine the program that is running on the front end of the mobile terminal for a predetermined period of time, thereby using the program as the currently running program, instead of being at the front end of the mobile terminal at a certain point in time. The program that runs. For example, it is determined that the program running on the front end of the mobile terminal continues for 60 minutes, and the program is added to the opened temporary space as a program running on the front end of the mobile terminal in this time period.
本实施例中, 对当前正在运行的程序作出定义, 更好的模拟用户的使 用场景。  In this embodiment, the currently running program is defined to better simulate the user's usage scenario.
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent flow transformation made by the specification and the drawings of the present invention may be directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
1、 一种使移动终端进入待机的方法, 其特征在于, 该方法包括: 获取移动终端当前正在运行的程序对应的预设屏幕待机时长; 当用户停止移动终端操作时, 启动计时器; A method for causing a mobile terminal to enter a standby state, the method comprising: obtaining a preset screen standby duration corresponding to a program currently running by the mobile terminal; and starting a timer when the user stops the operation of the mobile terminal;
当所述计时器的计时时长到达所述屏幕待机时长时, 使移动终端进入 屏幕待机状态。  When the timer duration of the timer reaches the screen standby duration, the mobile terminal is brought into the screen standby state.
2、 如权利要求 1所述的使移动终端进入待机的方法, 其特征在于, 所 述获取移动终端当前正在运行的程序对应的预设屏幕待机时长包括:  2. The method for causing a mobile terminal to enter a standby mode according to claim 1, wherein the preset screen standby duration corresponding to the program currently acquiring the mobile terminal is:
判断所述移动终端是否启用非默认时长功能;  Determining whether the mobile terminal enables a non-default duration function;
当所述移动终端没有启用非默认时长功能时, 将当前正在运行的程序 对应的屏幕待机时长设置为移动终端的默认屏幕待机时长;  When the mobile terminal does not enable the non-default duration function, the screen standby duration corresponding to the currently running program is set as the default screen standby duration of the mobile terminal;
当所述移动终端启用非默认时长功能时, 查询当前正在运行的程序对 应的屏幕待机时长。  When the mobile terminal enables the non-default duration function, it queries the screen standby duration corresponding to the currently running program.
3、 如权利要求 2所述的使移动终端进入待机的方法, 其特征在于, 所 述当移动终端启用非默认时长功能时, 查询当前正在运行的程序对应的屏 幕待机时长包括:  3. The method for causing a mobile terminal to enter standby according to claim 2, wherein when the mobile terminal enables the non-default duration function, the duration of the screen standby corresponding to the currently running program includes:
当当前正在运行的程序有多个时, 提取所述多个程序的屏幕待机时长; 比较所述多个程序的屏幕待机时长;  When there are more than one program currently running, extracting a screen standby duration of the plurality of programs; comparing a screen standby duration of the plurality of programs;
将所述多个程序的屏幕待机时长中最大值设为当前正在运行的程序对 应的屏幕待机时长。  The maximum value of the screen standby duration of the plurality of programs is set to the screen standby duration corresponding to the currently running program.
4、 如权利要求 1至 3任一项所述的使移动终端进入待机的方法, 其特征 在于, 在启动计时器之前, 该方法还包括:  The method for causing a mobile terminal to enter standby according to any one of claims 1 to 3, characterized in that, before starting the timer, the method further comprises:
定时检测用户是否停止移动终端操作。  It is periodically detected whether the user stops the mobile terminal operation.
5、 如权利要求 1至 3任一项所述的使移动终端进入待机的方法, 其特征 在于, 所述当前正在运行的程序包括: 5. A method of causing a mobile terminal to enter standby as claimed in any one of claims 1 to 3, characterized in that The program currently running includes:
当前正在前端运行, 且运行时间超过预设时间的程序。  A program that is currently running on the front end and that runs longer than the preset time.
6、 一种使移动终端进入待机的装置, 其特征在于, 该装置包括: 获取模块, 用于获取移动终端当前正在运行的程序对应的预设屏幕待 机时长;  A device for causing a mobile terminal to enter a standby state, the device comprising: an acquiring module, configured to acquire a preset screen waiting time corresponding to a program currently running by the mobile terminal;
启动计时模块, 用于当用户停止移动终端操作时, 启动计时器; 待机模块, 用于当所述计时器的计时时长到达所述屏幕待机时长时, 使移动终端进入屏幕待机状态。  The timing module is configured to start a timer when the user stops the operation of the mobile terminal, and the standby module is configured to enable the mobile terminal to enter a screen standby state when the timer duration of the timer reaches the screen standby duration.
7、 如权利要求 6所述的使移动终端进入待机的装置, 其特征在于, 所 述获取模块包括:  7. The device for causing a mobile terminal to enter standby according to claim 6, wherein the obtaining module comprises:
判断单元, 用于判断所述移动终端是否启用非默认时长功能; 默认时长单元, 用于当所述移动终端没有启用非默认时长功能时, 将 当前正在运行的程序对应的屏幕待机时长设置为移动终端的默认屏幕待机 时长;  a determining unit, configured to determine whether the mobile terminal enables a non-default duration function; a default duration unit, configured to set a screen standby duration corresponding to the currently running program to be mobile when the mobile terminal does not enable the non-default duration function The default screen standby time of the terminal;
非默认时长单元, 用于当所述移动终端启用非默认时长功能时, 查询 当前正在运行的程序对应的屏幕待机时长。  The non-default duration unit is used to query the screen standby duration corresponding to the currently running program when the mobile terminal enables the non-default duration function.
8、 如权利要求 7所述的使移动终端进入待机的装置, 其特征在于, 所 述非默认时长单元包括:  8. The device for causing a mobile terminal to enter standby according to claim 7, wherein the non-default duration unit comprises:
提取子单元, 用于当当前正在运行的程序有多个时, 提取所述多个程 序的屏幕待机时长;  Extracting a subunit, configured to extract a screen standby duration of the plurality of programs when there are multiple programs currently running;
比较子单元, 用于比较所述多个程序的屏幕待机时长;  a comparison subunit, configured to compare a screen standby duration of the plurality of programs;
取值子单元, 用于将所述多个程序的屏幕待机时长中最大值设为当前 正在运行的程序对应的屏幕待机时长。  The value subunit is configured to set a maximum value of the screen standby duration of the plurality of programs to a screen standby duration corresponding to the currently running program.
9、 如权利要求 6至 8任一项所述的使移动终端进入待机的装置, 其特征 在于, 该装置还包括: 检测模块, 用于定时检测用户是否停止移动终端操作。 The device for causing the mobile terminal to enter the standby state according to any one of claims 6 to 8, wherein the device further comprises: The detecting module is configured to periodically detect whether the user stops the mobile terminal operation.
10、 如权利要求 6至 8任一项所述的使移动终端进入待机的装置, 其特 征在于, 所述当前正在运行的程序包括:  10. The apparatus for causing a mobile terminal to enter standby according to any one of claims 6 to 8, wherein the currently running program comprises:
当前正在前端运行, 且运行时间超过预设时间的程序。  A program that is currently running on the front end and that runs longer than the preset time.
11、 一种移动终端, 其特征在于, 包括权利要求 6至 10任一项所述的 使移动终端进入待机的装置。  A mobile terminal, comprising the apparatus for causing a mobile terminal to enter standby as claimed in any one of claims 6 to 10.
PCT/CN2011/078410 2011-05-03 2011-08-15 Method and device for making mobile terminal enter standby WO2012149707A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110112444.0 2011-05-03
CN201110112444.0A CN102769897B (en) 2011-05-03 2011-05-03 Method and device for enabling mobile terminal to be in standby mode

Publications (1)

Publication Number Publication Date
WO2012149707A1 true WO2012149707A1 (en) 2012-11-08

Family

ID=47097117

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/078410 WO2012149707A1 (en) 2011-05-03 2011-08-15 Method and device for making mobile terminal enter standby

Country Status (2)

Country Link
CN (1) CN102769897B (en)
WO (1) WO2012149707A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN110742580A (en) * 2019-09-18 2020-02-04 华为技术有限公司 Sleep state identification method and device

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049179A (en) * 2012-12-03 2013-04-17 东莞宇龙通信科技有限公司 Control method of mobile terminal and mobile terminal screen state
CN104010082B (en) * 2014-05-28 2016-08-24 广州视源电子科技股份有限公司 A kind of method of adjustment mobile terminal sleeping time
CN105095045A (en) * 2015-06-12 2015-11-25 深圳市美贝壳科技有限公司 Method and system for monitoring background service of Android system
CN105549857B (en) * 2015-10-31 2018-12-25 东莞酷派软件技术有限公司 A kind of control method and electric terminal of electric terminal
CN106814837A (en) * 2015-11-30 2017-06-09 北京壹人壹本信息科技有限公司 A kind of mobile terminal device and its dormancy method to set up
CN107305421A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 Standby controlling method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1675949A (en) * 2002-06-26 2005-09-28 高通股份有限公司 Timer-based sleep for terminals in wireless communication systems
EP1748663A1 (en) * 2005-07-29 2007-01-31 Research In Motion Limited System and method of determining standby time for a mobile station
CN101547248A (en) * 2008-03-25 2009-09-30 乐金电子(中国)研究开发中心有限公司 Mobile terminal with sleep mode and implementation method of sleep mode
CN101600264A (en) * 2009-06-15 2009-12-09 中兴通讯股份有限公司 A kind of dynamic demonstration mobile terminal standby time method and device thereof
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1675949A (en) * 2002-06-26 2005-09-28 高通股份有限公司 Timer-based sleep for terminals in wireless communication systems
EP1748663A1 (en) * 2005-07-29 2007-01-31 Research In Motion Limited System and method of determining standby time for a mobile station
CN101547248A (en) * 2008-03-25 2009-09-30 乐金电子(中国)研究开发中心有限公司 Mobile terminal with sleep mode and implementation method of sleep mode
CN101600264A (en) * 2009-06-15 2009-12-09 中兴通讯股份有限公司 A kind of dynamic demonstration mobile terminal standby time method and device thereof
CN101917516A (en) * 2010-08-16 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Power-saving processing method and system for mobile terminal, and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313427A (en) * 2013-05-08 2013-09-18 广东欧珀移动通信有限公司 Method and device for starting data network of mobile terminal and mobile terminal
CN110742580A (en) * 2019-09-18 2020-02-04 华为技术有限公司 Sleep state identification method and device

Also Published As

Publication number Publication date
CN102769897B (en) 2015-04-01
CN102769897A (en) 2012-11-07

Similar Documents

Publication Publication Date Title
WO2012149707A1 (en) Method and device for making mobile terminal enter standby
EP2830044B1 (en) Instruction processing method, apparatus, and system
CN102298532B (en) Startup-item-based management method and device
EP2871825B1 (en) Method for enabling shutdown alarm clock and mobile terminal
CN103543946A (en) Gesture recognition based mobile terminal awakening and unlocking method and gesture recognition based mobile terminal awakening and unlocking system
WO2013123863A1 (en) Sleep method, wakeup method and mobile terminal device
TW201635132A (en) Method of performing voice control using script to configure personal awakening title
WO2012109781A1 (en) App icon processing method and communication terminal
CN105676987A (en) Method for shutting down background application of mobile terminal, device and mobile terminal
CN103019521A (en) Method and device for screen off of mobile terminal
CN102497469A (en) Method and device for operating music player in screen lock state
CN107809793A (en) The wake-up control method and device of intelligent terminal
WO2010139169A1 (en) Electricity-saving method and device for terminal
TW200623685A (en) Method for automatically restoring the communication settings for mobile device
CN105843681B (en) Mobile terminal and operating system switching method thereof
CN105141762B (en) A kind of low electric closedown method and system of mobile terminal
WO2013026311A1 (en) Method and device for application program operation, mobile terminal
CN103024190A (en) Method and device for freeing internal memory of smart phone
CN104038632A (en) Method and device for managing intelligent terminal
CN103870356A (en) Information processing method and electronic equipment
WO2013167022A2 (en) Method and device for achieving mobile terminal power saving and mobile terminal
CN106383684B (en) Display method, device and terminal
EP3229130B1 (en) Smart terminal information display method and smart terminal
CN102169452A (en) Method for solving touch screen deadlock problem of mobile terminal
WO2015168997A1 (en) A method and device for terminal automatically displaying

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11864685

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11864685

Country of ref document: EP

Kind code of ref document: A1