WO2014048258A1 - 一种数据处理设备中的提醒装置及其提醒方法、存储介质 - Google Patents

一种数据处理设备中的提醒装置及其提醒方法、存储介质 Download PDF

Info

Publication number
WO2014048258A1
WO2014048258A1 PCT/CN2013/083474 CN2013083474W WO2014048258A1 WO 2014048258 A1 WO2014048258 A1 WO 2014048258A1 CN 2013083474 W CN2013083474 W CN 2013083474W WO 2014048258 A1 WO2014048258 A1 WO 2014048258A1
Authority
WO
WIPO (PCT)
Prior art keywords
reminder
operating system
reminder device
data processing
local notification
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.)
Ceased
Application number
PCT/CN2013/083474
Other languages
English (en)
French (fr)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2014048258A1 publication Critical patent/WO2014048258A1/zh
Anticipated expiration legal-status Critical
Priority to US14/673,105 priority Critical patent/US9703663B2/en
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/0277Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof according to available power supply, e.g. switching off when a low battery condition is detected
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/81Threshold
    • 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/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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 application relates to the technical field of data processing devices, and in particular, to a reminding device in a data processing device, a reminding method thereof, and a storage medium.
  • the foreground operation of the APP means that on the operating system, the APP runs on the current interface, and the user can directly operate the APP on the current interface.
  • many operating systems, such as the iOS operating system only one APP is allowed to run in the foreground at the same time.
  • the background running of the APP refers to: On the operating system, when the APP is in the foreground running state, if the operating system detects an instruction returning to the main interface of the device (such as the "home" key of the operating system of the handheld device) or detects the switching After the instructions to other interfaces, the operating system keeps the running state of the APP after switching to the target interface, but the user does not see the interface of the APP.
  • the operating system if the operating system detects an instruction to return to the main interface of the device or detects an instruction to switch to another interface when the APP is in the foreground running state, the operating system suspends the APP, that is, stops. run.
  • a reminder event (such as playing music, displaying reminder text, etc.) is triggered after the reminder time is reached.
  • the APP is marked as a music-type application, that is, "disguised” into a music-like APP, and the operating system determines that the type of the APP is a music class according to the description file, and the APP needs to loop through a silent audio file when running in the background. , so the operating system will allow the app to run in the background. If the silent audio file is stopped, the app will be suspended by the operating system. Since it can be run in the background, the "Background Alarm" APP can detect whether the preset reminding time comes, and the reminding time will trigger a corresponding alarm event, such as playing an alarm or music, thereby realizing the reminding function.
  • this technical solution has the following disadvantages:
  • App reminders like this "background alarm” must perform the corresponding actions when the background is running to allow the operating system to allow its background running status, for example, to continuously play silent audio files, or to continuously perform positioning processing, or Keep a call connected.
  • these actions are often very power hungry, and it is very likely that the reminder time has not yet arrived, the power of the device is exhausted, and the purpose of the reminder cannot be achieved.
  • the alarm time set by the user is 7:00 in the morning. If the power of the device is small, it is likely that the battery has been exhausted before 7:00 in the morning, and the operating system automatically shuts down, which does not function as an alarm for the alarm. Summary of the invention
  • the embodiment of the present application provides a reminding device in a data processing device, a reminding method thereof, and a storage medium, so as to implement a reminding function in the background, and implement power protection for the device.
  • a reminding device in a data processing device comprising:
  • a reminding module configured to determine a reminding time of the reminding device and a corresponding reminding event, and trigger a corresponding reminding event after the reminding time arrives;
  • a background running module configured to notify the operating system of the data processing device to trigger the reminding device to enter a background running state after detecting the switching instruction
  • a power detecting module configured to detect the power of the data processing device when the reminding device runs in the background
  • a power protection module configured to: after the power of the data processing device is lower than a specified value, write a local notification automatically triggered by the operating system in the operating system, and set a trigger time of the local notification as a reminder The reminder time of the device triggers the reminder device to enter the suspended state.
  • a reminding method for a reminding device in a data processing device comprising: determining a reminding time of the reminding device and a corresponding reminding event, and triggering a corresponding reminding event after the reminding time arrives;
  • a local notification automatically triggered by the operating system is written in the operating system, and the trigger time of the local notification is set as the reminding time of the reminding device, and the triggering is triggered.
  • the reminder device enters a suspended state.
  • a storage medium comprising computer readable program code for performing the steps of the above method.
  • the power of the device is detected when the reminding device runs in the background, and when the power is lower than the specified value, a local notification automatically triggered by the operating system is written in the operating system, and the local notification is The trigger time is set to the reminder time of the reminder device, and then the reminder device is triggered to enter the suspended state.
  • the reminder device delivers the reminder operation to the local notification of the operating system, and the reminder function can be executed by the operating system after the reminder time arrives. Therefore, the alarm function can be triggered in the background and the power protection function of the device can be realized, thereby avoiding the problem that the power is quickly consumed by the light and cannot be reminded.
  • FIG. 1 is a schematic diagram of a composition of a reminder device in a data processing device according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of still another composition of a reminding device in a data processing device according to an embodiment of the present application
  • 3 is a flowchart of a reminding method of a reminding device in a data processing device according to an embodiment of the present application
  • FIG. 4 is still another flowchart of a reminding method of a reminding device in a data processing device according to an embodiment of the present application
  • FIG. 5 is a schematic diagram of adding related parameters in an application configuration file of an iOS system according to an embodiment of the present application. Mode for carrying out the invention
  • FIG. 1 is a schematic diagram of a composition of a reminding device in a data processing device according to an embodiment of the present application; the reminding device is substantially installed in the data. Processing the APP in the device, referring to FIG. 1, the reminding device 100 includes:
  • the reminding module 101 is configured to determine a reminding time of the reminding device and a corresponding reminding event, and trigger a corresponding reminding event after the reminding time arrives;
  • the background running module 102 is configured to notify the operating system of the data processing device to trigger the reminding device to enter a background running state after detecting the switching instruction;
  • the power detecting module 103 is configured to detect the power of the data processing device when the reminding device runs in the background;
  • the power protection module 104 is configured to: after the power of the data processing device is lower than a specified value, write a local notification automatically triggered by the operating system in the operating system, and set a trigger time of the local notification to The reminder time of the reminder device triggers the reminder device to enter the suspended state.
  • the background running module 102 is configured to: in the application configuration file of the operating system, set the reminding device to an application type that is allowed to run in the background by the operating system; and detect a switching instruction in the operating system. After triggering the reminder device to execute the application Set the application operation corresponding to the application type set in the file.
  • the power detection module 103 is configured to invoke a circuit monitoring interface of the operating system to detect the amount of power of the data processing device.
  • FIG. 2 is a schematic diagram of still another composition of the reminding device in the data processing device according to the embodiment of the present disclosure; referring to FIG. 2, the reminding device 100 may further include:
  • the charging detection module 105 is configured to detect whether the data processing device is in a charging state after the power of the data processing device is lower than a specified value.
  • the power protection module 104 is specifically configured to: if the data processing device is in a charging state, continue to maintain the background running state of the reminding device; if the data processing device is in a non-charging state, write in the operating system
  • the local notification automatically triggered by the operating system is set, and the trigger time of the local notification is set as the reminding time of the reminding device, and the reminding device is triggered to enter the suspended state.
  • the local notification is a notification that the operating system itself performs.
  • the operating system provides a write interface to write the local notification, and the reminder device can invoke the write interface to write a local notification to the operating system.
  • the local notification generally includes a field such as a trigger time field, a reminder content field, an execution file field, and the like.
  • the power protection module 104 may write the reminder time of the reminder device to the trigger time field when the local notification is written to the operating system, and the operating system automatically triggers the local time at the trigger time. The notification, so that even if the reminder device is suspended, the function of reminding the user can be reached.
  • the power protection module 104 can also write a customized reminder content in the reminder content field of the local notification, for example: “alarm time is up!”, so that the reminder content displayed when the local notification is triggered is set as the reminder
  • the device customizes the reminder content, and the operating system displays the reminder content "alarm time is up!” while triggering the local notification.
  • the power protection module 104 may also write an identifier of an internal file of the reminder device in an execution file field of the local notification, for example, the reminder device may encapsulate a plurality of internal files.
  • the audio file may be written into the execution file field by one of the audio file names, so that the execution file of the local notification at the time of triggering is set as an internal file of the reminder device.
  • the reminding device writes the local notification to the operating system
  • the operating system automatically stores the correspondence between the local notification and the reminding device, that is, binding the local notification with the reminding device.
  • the file in the execution file field is automatically searched from the APP that is bound by the local notification, that is, the reminder device, and the file is automatically executed after the search. Thereby, the audio file encapsulated inside the reminder device is played while the local notification is triggered.
  • the power protection module 104 can also write an identifier of a designated interface (such as an alarm interface, or a main interface, etc.) of the present reminder device in the local notification. After the local notification is triggered and clicked by the user, the operating system automatically runs the reminding device bound to the local notification, and displays the designated interface of the reminding device according to the identifier of the specified interface in the local notification. Therefore, in an embodiment, the power protection module 104 can set the local notification trigger and the clicked execution action to run the present reminder device and display the designated interface of the reminder device.
  • a designated interface such as an alarm interface, or a main interface, etc.
  • the reminding module 101 may be further configured to: after running the reminding device, trigger a reminding event corresponding to the reminding time of the reminding device.
  • a reminding event For example, for an alarm device, the reminder event is often playing music in the data processing device. The music is not packaged in the reminder device, and the user can select some personalized music to serve as the alarm ringtone.
  • the reminding device after the user clicks the local notification, the reminding device can play the personalized music ringtones to meet the personalized needs of the user.
  • FIG. 3 is a flowchart of a reminding method of a reminding device in a data processing device according to an embodiment of the present application.
  • the method described in the embodiment of the present application mainly includes the following steps:
  • the reminder time and its corresponding reminder event may be set by the user, or the reminder device may calculate the reminder time and its corresponding reminder event according to its own logic. For example, set the alarm reminder time and its corresponding music file.
  • the operating system of the notification data processing device triggers the reminder device to enter a background running state after detecting the switching instruction.
  • the reminder device is set to an application type that the operating system allows to run in the background, for example, an APP in the iOS system that can be set as a music class, or an LBS class. Apps for APP, or mobile phone calls.
  • the operation of setting the application profile may be performed in advance before step 301.
  • the reminding device is triggered to enter the background running state, but the application operation corresponding to the application type set in the application configuration file is still executed, for example, the music APP needs to continuously play music, and the LBS application needs to be Running the positioning process, the call type APP needs to maintain a call connection and the like.
  • the operating system may further be notified to allow two or more application operations of the same type as the application operation to be performed at the same time, so that even if there are other The APP also performs the same type of application operation, and the operating system does not suspend the reminder.
  • the reminding device detects the power of the data processing device when running in the background.
  • step 304 Determine whether the power of the data processing device is lower than a specified value; if yes, execute step 305; otherwise, continue to maintain the background running state, and perform step 303.
  • FIG. 4 is still another flowchart of a reminding method of a reminding device in a data processing device according to an embodiment of the present application.
  • the method shown in FIG. 4 is different from the method shown in FIG. 3 above.
  • the method further includes: 304'. Detect whether the data processing device is in a charging state.
  • step 303 If the data processing device is in the charging state, continue to maintain the background running state of the reminding device, and perform step 303; if the data processing device is in the non-charging state, perform subsequent steps 305 and 306, that is, in the A local notification that can be automatically triggered by the operating system is written in the operating system, and the trigger time of the local notification is set as the reminding time of the reminding device, and the reminding device is triggered to enter the suspended state.
  • the method further includes:
  • the execution file of the local notification at the time of triggering is set as an internal file of the reminder device.
  • the operating system can simultaneously execute the internal file of the reminder device after triggering the local notification.
  • the method further includes: setting the reminder content displayed when the local notification is triggered to the reminder content customized by the reminder device. In this way, the operating system can display the customized reminder content after triggering the local notification.
  • the method further comprises: setting the local notification to trigger and the executed action after the click is set to run the present reminding device, and display the designated interface of the present reminding device.
  • the method may further include: triggering a reminder event corresponding to the reminding time of the reminding device.
  • the data processing device is assumed to be a mobile phone, and the operating system is assumed to be an iOS system, and the reminding device is assumed to be an alarm clock APP for performing an alarm reminder function.
  • the alarm clock APP can set the reminder time and the corresponding reminder time, that is, the played alarm and music, can enter the background running mode, and play the alarm or music at the specified time to reach Alarm clock function.
  • each APP has an application configuration file named XXX-Info.plist.
  • this application configuration file add related configuration items to notify the operating system that the APP is an APP type that can run in the background.
  • FIG. 5 is a schematic diagram of adding related parameters in an application configuration file of an iOS system according to an embodiment of the present application.
  • the XXX-Info.plist of the alarm clock APP add the " Required background modes" configuration item, and add an "APP plays audio" element to notify the operating system that the alarm clock APP belongs to the music type application.
  • you press the "Home" button to exit the music the alarm clock will not be suspended by the system, but will enter the background running mode.
  • an APP type identifier that identifies the APP as an LBS type or other iOS system to allow background running may be added to the application configuration file to notify the iOS system to allow the APP to run in the background.
  • the reminder time of the alarm clock and its corresponding reminder event are set.
  • the reminder event set by the user is to play a personalized music file aaa.mp3 in the mobile phone.
  • the "home button” is pressed to switch the alarm APP from the foreground running mode to the background running mode.
  • the alarm APP continues to play a piece of audio to maintain the background. run.
  • playing audio all the time will consume more power. 4 ⁇ may cause the power to run out of the system, but the user is completely unaware. Therefore, in this embodiment, when the alarm clock APP is running in the background, the power protection measure is required, but at the same time, the alarm reminder function is implemented.
  • the mobile phone power is detected at intervals (if 15 minutes). If the battery is lower than the specified value (for example, less than 15%) and is not charging, the alarm APP Issue a system notification, for example, "Your phone is low and the alarm will exit the background alarm mode.”
  • Each APP has a system-generated UIAPPlication object, and the batteryMonitoringEnabled attribute of the UIAPPlication object of the alarm APP can be set to YES, so that the iOS system can be started. Power monitoring of the device.
  • the iOS system also generates a UIDevice object representing the current mobile device. Its batteryState attribute and batteryLevel attribute respectively identify the current state of charge and power information of the mobile phone.
  • the alarm clock APP can create a timer (NSTimer) to read the batteryState attribute and the batteryLevel attribute of the UIDevice object every 15 minutes to determine whether the current mobile phone is in a charging state and the power of the mobile phone. If the phone is not charging and the phone is below 15%, the alarm APP calls the presentLocalNotificationNow of the UIAPPlication object to generate a system notification, such as "Show your phone is low and the alarm will exit the background alarm mode".
  • NTimer timer to read the batteryState attribute and the batteryLevel attribute of the UIDevice object every 15 minutes to determine whether the current mobile phone is in a charging state and the power of the mobile phone. If the phone is not charging and the phone is below 15%, the alarm APP calls the presentLocalNotificationNow of the UIAPPlication object to generate a system notification, such as "Show your phone is low and the alarm will exit the background alarm mode".
  • the alarm APP will pass the UIApplication's scheduleLocalNotification:
  • the interface writes a local notification to the operating system, writes the reminder time of the alarm APP to the reminder time field of the local notification, and writes the name of an audio file encapsulated in the alarm APP, such as bbb.caf, into the local notification.
  • Execute the file field and write custom content such as "alarm time is up" to the reminder content field of the local notification, thereby handing the alarm reminder task to the local notification of the operating system to complete.
  • the alarm APP calls the stop play function of the AVAudioPlayer class to stop playing the quiet.caf audio file, and the operating system automatically terminates the background running state of the alarm APP, thereby saving the power of the mobile phone.
  • the operating system automatically triggers a local notification written by the alarm clock APP, and when the local notification is triggered, the reminder content "alarm time is up" is displayed, and the bbb.caf audio can be played.
  • the alarm reminder function is realized, but the personalized alarm clock set music set by the user aaa.mp3 is replaced by the built-in ringtone of the alarm clock APP bbb.caf.
  • the operating system When the user clicks the local notification, the operating system automatically runs the alarm APP bound to the local notification, and switches the interface to the specified alarm APP interface, and the alarm APP can also automatically play the personalized alarm set by the user. Remind the music aaa.mp3. Therefore, the user can directly perform subsequent operations on the alarm clock APP.
  • the embodiment of the present application further provides a data processing device, where the data processing device includes at least a storage medium and a processor in communication with the storage medium, where the storage medium is used to store computer readable program code for implementing any of the above embodiments. And the processor is capable of reading and executing the program code stored in the storage medium.
  • the program code read from the storage medium can implement any of the above embodiments, and thus the program code and the storage medium storing the program code are part of the technical solution.
  • the storage medium includes a reminder instruction executable by the processor, running in the background Instructions, power detection commands, and power protection commands.
  • the reminding instruction is used to determine the reminding time of the reminding device and the corresponding reminding event, and trigger the corresponding reminding event after the reminding time arrives;
  • a background running instruction configured to notify the operating system of the data processing device to trigger the reminding device to enter a background running state after detecting the switching instruction
  • a power detection command configured to detect the power of the data processing device when the reminder device is running in the background
  • a power protection instruction configured to: after the power of the data processing device is lower than a specified value, write a local notification automatically triggered by the operating system in the operating system, and set a trigger time of the local notification as a reminder The reminder time of the device triggers the reminder device to enter the suspended state.
  • the storage medium further includes a charging detection instruction, configured to detect whether the data processing device is in a charging state after the power of the data processing device is lower than a specified value;
  • the power protection instruction is specifically configured to: if the data processing device is in a non-charging state, write a local notification automatically triggered by the operating system in the operating system, and set a trigger time of the local notification as The reminder time of the reminder device triggers the reminder device to enter the suspended state.
  • the power protection instruction is further configured to: when writing a local notification automatically triggered by the operating system in the operating system, setting an execution file of the local notification at the time of triggering as an internal file of the reminding device, and/ Or setting the reminder content displayed when the local notification is triggered as the reminder content customized by the reminder device, and/or setting the execution action triggered by the local notification and being clicked to run the reminder device, and displaying the reminder device The specified interface.
  • the power protection command is further configured to: when a local notification automatically triggered by the operating system is written in the operating system, the local notification is triggered and the executed action after the click is set to run the reminding device, and the display is performed.
  • the reminding instruction is further used to: after running the reminding device, triggering a reminding event corresponding to the reminding time of the reminding device.
  • the background running instruction is configured to: in the application configuration file of the operating system, set the reminding device to an application type that is allowed to run in the background by the operating system; and trigger the reminding device to execute after the operating system detects the switching instruction.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mathematical Physics (AREA)
  • Telephone Function (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Calculators And Similar Devices (AREA)

Description

一种数据处理设备中的提醒装置及其提醒方法、 存储介质 本申请要求于 2012 年 09 月 29 日提交中国专利局、 申请号为 201210370673.3、发明名称为"一种数据处理设备中的提醒装置及其提醒 处理方法"的中国专利申请的优先权,其全部内容通过引用结合在本申请 中。 技术领域
本申请涉及数据处理设备的技术领域, 尤其涉及一种数据处理设备 中的提醒装置及其提醒方法、 存储介质。 发明背景
目前, 数据处理设备, 如计算机、 智能手机、 掌上电脑、 平板电脑 等, 的使用越来越普及, 数据处理设备的操作系统也各具特点。 例如, 有些操作系统对其中运行的应用装置即应用程序 ( Application, APP ) 的 前后台运行能力有着特殊的限制。
所述 APP的前台运行是指:在操作系统上, APP在当前界面上运行, 用户可以直接在当前界面上操作该 APP。 在许多操作系统中, 例如 iOS 操作系统中, 同一时间只允许一个 APP处在前台运行状态。
所述 APP的后台运行是指: 在操作系统上, APP处在前台运行状态 时, 如果操作系统检测到返回设备主界面的指令(如手持设备的操作系 统的 "home"键)或检测到切换到其它界面的指令, 则操作系统在切换 到目标界面后, 依然保持该 APP的运行状态, 只是用户看不到该 APP 的界面而已。
但是, 某些操作系统如 iOS操作系统中, 只允许某些种类的 APP进 行后台运行。 例如, 通常是只允许音乐播放类 APP、 基于位置的服务 ( LBS, Location Based Service )类 APP、 以及手机操作系统的通话类 APP等进行后台运行,并且在后台运行时必须要执行该类 APP的相应动 作, 例如音乐播放类 APP需要持续播放音乐, LBS类 APP需要运行定 位处理, 通话类 APP 需要保持某一通话连接等等。 而对于其他类型的 APP, 如果在该 APP处在前台运行状态时, 操作系统检测到返回设备主 界面的指令或检测到切换到其它界面的指令,则操作系统会将该 APP挂 起, 即停止运行。
目前,用户希望一些不被操作系统允许后台运行的 APP能够在操作 系统中进行后台运行以便执行定时提醒动作。 即, 可以由用户设定提醒 时间或 APP根据自身逻辑计算提醒时间, 在 APP后台运行的过程中, 到达提醒时间后触发提醒事件(如播放音乐、 显示提醒文字等)。
例如, 目前有一种 "后台闹钟" 的 APP, 用户希望该 APP能够进入 后台运行模式, 并在指定时间播放闹铃或音乐以达到闹钟功能。 由于在 某些操作系统(如 iOS操作系统)中对 APP的后台运行进行了限制, 因 此针对这些操作系统, 提出了一种技术方案, 用于实现类似所述 "后台 闹钟" APP的用于执行提醒操作的 APP的后台运行。 该方案包括: 在该 APP的描述文件中将该 APP标记为操作系统允许后台运行的 APP类型, 并在后台运行时执行与该 APP类型对应的动作。 例如将该 APP标记为 音乐型应用, 即 "伪装" 成音乐类 APP, 操作系统根据该描述文件就会 判定该 APP的类型为音乐类, 并且该 APP在后台运行时需循环播放一 个无声音频文件, 这样操作系统才会允许该 APP进行后台运行,如果停 止播放无声音频文件, 则该 APP就会被操作系统挂起。 由于可以后台运 行, 该 "后台闹钟" APP就可以检测预设的提醒时间是否到来, 提醒时 间一到则会触发对应的闹钟事件, 例如播放闹铃或音乐, 从而实现提醒 功能。 但是, 这种技术方案有如下缺点:
类似这种 "后台闹钟" 的提醒类的 APP在后台运行时必须要执行相 应的动作来使操作系统允许其后台运行状态, 例如需要不断地播放无声 音频文件, 或者不断地进行定位处理, 或者需要保持某一通话连接。 然 而, 这些动作往往非常耗电, 很有可能所述提醒时间还没有到, 设备的 电量就被消耗完了, 无法实现提醒的目的。 例如用户设定的闹钟提醒时 间为早上 7点, 如果设备的电量较少, 很可能在早上 7点之前电量已耗 完, 操作系统自动关机, 完全不能起到闹钟提醒的功能。 发明内容
本申请实施例提供了一种数据处理设备中的提醒装置及其提醒方 法、 存储介质, 以实现在后台触发提醒功能的, 并实现对设备的电量保 护。
本申请实施例的技术方案是这样实现的:
一种数据处理设备中的提醒装置, 包括:
提醒模块, 用于确定本提醒装置的提醒时间及对应的提醒事件, 在 该提醒时间到达后触发对应的提醒事件;
后台运行模块, 用于通知数据处理设备的操作系统在检测到切换指 令后触发本提醒装置进入后台运行状态;
电量检测模块, 用于在本提醒装置后台运行时检测所述数据处理设 备的电量;
电量保护模块, 用于在所述数据处理设备的电量低于指定值后, 在 所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本地 通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装置进入挂 起状态。 一种数据处理设备中的提醒装置的提醒方法, 包括: 确定本提醒装置的提醒时间及对应的提醒事件, 在该提醒时间到达 后触发对应的提醒事件;
通知数据处理设备的操作系统在检测到切换指令后触发本提醒装置 进入后台运行状态;
在本提醒装置后台运行时检测所述数据处理设备的电量;
在所述数据处理设备的电量低于指定值后, 在所述操作系统中写入 一可由该操作系统自动触发的本地通知, 将该本地通知的触发时间设置 为本提醒装置的提醒时间, 触发本提醒装置进入挂起状态。
一种存储介质, 包括计算机可读程序代码, 用于执行上述方法的步 骤。
在本申请实施例中,在提醒装置后台运行时对设备的电量进行检测, 当电量低于指定值后就会在操作系统中写入一可由操作系统自动触发 的本地通知, 将该本地通知的触发时间设置为本提醒装置的所述提醒时 间, 之后触发本提醒装置进入挂起状态。 这样, 当设备电量较低时就可 以挂起提醒装置达到节省电量的目的, 同时该提醒装置将提醒操作交给 操作系统的本地通知来完成, 在提醒时间到达后可以由操作系统来执行 提醒功能, 因此可以实现在后台触发提醒功能并实现对设备的电量保护 功能, 从而避免电量很快被消耗光所导致的无法提醒的问题。 附图简要说明
图 1为本申请实施例所述数据处理设备中的提醒装置的一种组成示 意图;
图 2为本申请实施例所述数据处理设备中的提醒装置的又一种组成 示意图; 图 3为本申请实施例所述数据处理设备中的提醒装置的提醒方法的 一种流程图;
图 4为本申请实施例所述数据处理设备中的提醒装置的提醒方法的 又一种流程图;
图 5为本申请实施例在 iOS系统的应用配置文件中加入相关参数的 一种示意图。 实施本发明的方式
下面结合附图及具体实施例对本申请技术方案作进一步详细的说明 图 1为本申请实施例所述数据处理设备中的提醒装置的一种组成示 意图; 该提醒装置实质上是安装在所述数据处理设备中的 APP, 参见图 1 , 该提醒装置 100包括:
提醒模块 101 , 用于确定本提醒装置的提醒时间及对应的提醒事件, 在该提醒时间到达后触发对应的提醒事件;
后台运行模块 102, 用于通知数据处理设备的操作系统在检测到切 换指令后触发本提醒装置进入后台运行状态;
电量检测模块 103, 用于在本提醒装置后台运行时检测所述数据处 理设备的电量;
电量保护模块 104, 用于在所述数据处理设备的电量低于指定值后, 在所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本 地通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装置进入 挂起状态。
在一实施例中, 该后台运行模块 102用于: 在所述操作系统的应用 配置文件中, 将本提醒装置设置为该操作系统所允许进行后台运行的应 用类型; 在操作系统检测到切换指令后触发本提醒装置执行所述应用配 置文件中所设置的应用类型对应的应用操作。
在一实施例中, 该电量检测模块 103用于, 调用操作系统的电路监 控接口来检测数据处理设备的电量。
图 2为本申请实施例所述数据处理设备中的提醒装置的又一种组成 示意图; 参见图 2, 该提醒装置 100还可以进一步包括:
充电检测模块 105 , 用于在所述数据处理设备的电量低于指定值后 检测所述数据处理设备是否处于充电状态。
所述电量保护模块 104具体用于: 如果所述数据处理设备处于充电 状态, 则继续保持本提醒装置的后台运行状态; 如果所述数据处理设备 处于非充电状态, 则在所述操作系统中写入一可由该操作系统自动触发 的本地通知, 将该本地通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装置进入挂起状态。
所述本地通知是操作系统自身执行的一种通知。 操作系统提供写入 该本地通知的写入接口, 提醒装置可以调用该写入接口向操作系统中写 入本地通知。 该本地通知一般包括触发时间字段、 提醒内容字段、 执行 文件字段等字段。 所述电量保护模块 104在向所述操作系统写入本地通 知时, 可以将本提醒装置的所述提醒时间写入所述触发时间字段, 所述 操作系统在该触发时间就会自动触发该本地通知, 从而即使所述提醒装 置被挂起, 也可以达到提醒用户的功能。
所述电量保护模块 104还可以在所述本地通知的提醒内容字段写入 自定义的提醒内容, 例如: "闹钟时间到了!", 从而将该本地通知触发时 所显示的提醒内容设置为本提醒装置自定义的提醒内容, 则所述操作系 统在触发该本地通知的同时显示所述提醒内容"闹钟时间到了! "。
所述电量保护模块 104还可以在所述本地通知的执行文件字段写入 本提醒装置的一内部文件的标识, 例如该提醒装置内部可以封装若干个 音频文件, 可以将其中一个音频文件名写入该执行文件字段, 从而将该 本地通知在触发时的执行文件设置为本提醒装置的一内部文件。 而且, 所述提醒装置在向所述操作系统写入所述本地通知时, 操作系统会自动 存储该本地通知和该提醒装置的对应关系, 即将该本地通知和该提醒装 置绑定。 在操作系统触发该本地通知的同时, 会自动从该本地通知所绑 定的 APP即该提醒装置中搜索所述执行文件字段中的文件名,在搜到后 会自动执行该文件。 从而实现在触发本地通知的同时, 播放提醒装置内 部封装的音频文件。
所述电量保护模块 104还可以在所述本地通知内写入本提醒装置的 一个指定界面 (如闹铃界面、 或主界面等等) 的标识。 所述操作系统在 所述本地通知被触发且被用户点击后, 自动运行该本地通知所绑定的提 醒装置, 并按照所述本地通知内的指定界面的标识显示该提醒装置的指 定界面。 因此, 在一实施例中, 所述电量保护模块 104可以将该本地通 知触发且被点击后的执行动作设置为运行本提醒装置、 且显示本提醒装 置的指定界面。
另外, 所述提醒模块 101还可以进一步用于: 在运行本提醒装置之 后, 触发本提醒装置的提醒时间对应的提醒事件。 例如对于闹钟类的提 醒装置, 所述提醒事件往往是播放本数据处理设备中的音乐, 这些音乐 没有被封装在该提醒装置内, 用户可以选择一些个性化的音乐来充当闹 钟铃声。 在本申请实施例中, 当用户点击所述本地通知后, 提醒装置可 以播放这些个性化的音乐铃声, 满足用户的个性化需求。
图 3为本申请实施例所述数据处理设备中的提醒装置的提醒方法的 一种流程图。 本申请实施例所述的方法主要包括如下步骤:
301、确定本提醒装置的提醒时间及对应的提醒事件,在该提醒时间 到达后触发对应的提醒事件。 在本步骤中, 可以由用户设定提醒时间及其对应的提醒事件, 或由 该提醒装置根据自身逻辑计算提醒时间及其对应的提醒事件。 例如设定 闹钟提醒时间及其对应播放的音乐文件。
302、通知数据处理设备的操作系统在检测到切换指令后触发本提醒 装置进入后台运行状态。
在本步骤中, 在所述操作系统的应用配置文件中, 将本提醒装置设 置为该操作系统所允许进行后台运行的应用类型, 例如 iOS系统中可以 设置为音乐类的 APP、 或 LBS类的 APP、 或手机通话类的 APP。 当然 该设置应用配置文件的操作可以在步骤 301之前预先进行。 在操作系统 检测到切换指令后触发本提醒装置进入后台运行状态, 但仍继续执行所 述应用配置文件中所设置的应用类型对应的应用操作, 例如音乐类 APP 需要持续播放音乐, LBS类 APP需要运行定位处理, 通话类 APP需要 保持某一通话连接等等。 在本提醒装置执行所述应用配置文件中所设置 的应用类型对应的应用操作时, 还可以进一步通知操作系统允许同时执 行与该应用操作的类型相同的两个以上的应用操作, 这样即使有其它 APP也执行了相同类型的应用操作,操作系统也不会将该提醒装置挂起。
303、 本提醒装置在后台运行时检测所述数据处理设备的电量。
304、 判断所述数据处理设备的电量是否低于指定值; 如果是, 则执 行步骤 305; 否则, 继续保持后台运行状态, 并执行步骤 303。
305、 在所述操作系统中写入一可由该操作系统自动触发的本地通 知, 将该本地通知的触发时间设置为本提醒装置的提醒时间。
306、 触发本提醒装置进入挂起状态。
图 4为本申请实施例所述数据处理设备中的提醒装置的提醒方法的 又一种流程图。 图 4所示的方法与上述图 3所示方法的区别是, 在步骤 304判定所述数据处理设备的电量低于所述指定值后, 进一步包括: 304'、 检测所述数据处理设备是否处于充电状态。 如果所述数据处 理设备处于充电状态, 则继续保持本提醒装置的后台运行状态, 并执行 步骤 303; 如果所述数据处理设备处于非充电状态, 则再执行后续的步 骤 305和 306, 即在所述操作系统中写入一可由该操作系统自动触发的 本地通知, 将该本地通知的触发时间设置为本提醒装置的所述提醒时 间, 触发本提醒装置进入挂起状态。
其中, 在所述操作系统中写入一可由该操作系统自动触发的本地通 知时, 该方法进一步包括:
将该本地通知在触发时的执行文件设置为本提醒装置的一内部文 件。 这样, 操作系统在触发所述本地通知后就可以同时执行该提醒装置 的该内部文件。
和 /或, 该方法进一步包括: 将该本地通知触发时所显示的提醒内容 设置为本提醒装置自定义的提醒内容。 这样, 操作系统在触发所述本地 通知后就可以显示所述自定义的提醒内容。
和 /或, 该方法进一步包括: 将该本地通知触发且被点击后的执行动 作设置为运行本提醒装置、 且显示本提醒装置的指定界面。 这样, 当操 作系统触发所述本地通知后, 如果用户点击了该本地通知, 则可以直接 运行该提醒装置并显示所述指定的界面。 进一步的, 在所述本地通知触 发且被点击后, 该方法还可以进一步包括: 触发本提醒装置的所述提醒 时间对应的提醒事件。
下面以一个具体的实施例进一步说明本申请所述的技术方案。
在该实施例中, 所述数据处理设备假设为手机, 所述操作系统假设 为 iOS 系统, 所述提醒装置假设为一个用于执行闹钟提醒功能的闹钟 APP。 该闹钟 APP可以设置提醒时间和对应的提醒时间, 即播放的闹铃 和音乐, 能够进入后台运行模式, 并在指定时间播放闹铃或音乐以达到 闹钟功能。
在该实施例中, 首先需要保证该闹钟 APP有后台运行的能力。
在 iOS系统中, 每个 APP都有一个名为 XXX-Info.plist的应用配置 文件, 在这个应用配置文件中, 加入相关的配置项以通知操作系统本 APP为可以进行后台运行的 APP类型。例如,图 5为本申请实施例在 iOS 系统的应用配置文件中加入相关参数的一种示意图。 参见图 5 , 在本闹 钟 APP的 XXX-Info.plist的应用配置文件中, 加入" Required background modes"配置项, 并添加一个" APP plays audio"元素, 以通知操作系统本 闹钟 APP属于音乐类型应用, 在播放音乐时按" Home键"退出, 本闹钟 APP不会被系统挂起, 而是进入后台运行模式。 当然也可以在所述应用 配置文件中加入标识本 APP为 LBS类型或其它 iOS系统允许后台运行 的 APP类型的标识, 以通知 iOS系统允许本 APP进行后台运行。
为了一直保持所述闹钟 APP能够在后台运行,还需要在后台执行该 闹钟 APP的相应操作。 例如, 此处是需要循环播放一个音频文件, 比如 可以使用 AVFoundation库中的 AVAudioPlayer类来循环播放一个名为 "quiet.caf的音频文件, 这个音频文件在播放时是完全静音的, 其目的是 既可以保持闹钟 APP的后台运行, 又不会干扰用户的正常操作。
如果不作特别设置, 当有其他应用播放音频文件时, 系统会停止当 前播放的" quiet.caf,音频文件, 从而导致闹钟 APP的后台运行被终止。 所以在循环播放该" quiet.caf,音频文件时,需要设置 AudioSession播放类 另 ll 为 AVAudioSessionCategoryPlayback , 并 设 置 其 kAudioSessionProperty_OverrideCategoryMixWithOthers属性为 YES。 将 这个属性设置通知 iOS系统后,该" quiet.caf,音频文件就可与其他应用的 音频文件同时播放, 从而 iOS系统在其他应用播放音频文件时不会将该 闹钟 APP挂起。 在该实施例中, 还需要电量保护措施。
用户在使用该闹钟 APP时,会设置好闹钟的提醒时间及其对应的提 醒事件, 例如用户设置的提醒事件为播放本手机内的一个个性化的音乐 文件 aaa.mp3。 当用户需要切换到其它界面时, 例如切换回主界面时, 会按下 "home键"使得该闹钟 APP从前台运行模式切换到后台运行模式, 此时, 该闹钟 APP持续播放一段音频以维持后台运行。但这样一直播放 音频会比较耗电, 4艮有可能导致电量用完系统关机,而用户却全然不知。 因此在本实施例中, 所述闹钟 APP在后台运行时, 需要电量保护措施, 但同时又要实现闹钟提醒的功能。
在本实施例中, 所述闹钟 APP在后台运行时, 每隔一段时间(假如 15分钟 )会检测手机电量, 如果电量低于指定值(例如低于 15% )且没 有在充电, 则闹钟 APP发出系统通知, 例如显示"您的手机电量较低, 闹钟将退出后台闹钟模式"。
所述检测手机电量以及检测手机是否处于充电状态的具体方法为: 每个 APP都有一个系统生成的 UIAPPlication对象, 可以将该闹钟 APP 的 UIAPPlication对象的 batteryMonitoringEnabled属性设置为 YES , 这 样就可以开启 iOS 系统对设备的电量监控。 iOS 系统还会生成一个 UIDevice对象,代表当前手机设备,它的 batteryState属性和 batteryLevel 属性分别标识当前手机的充电状态和电量信息。闹钟 APP可以创建一个 定时器( NSTimer ),每 15分钟读取该 UIDevice对象的 batteryState属性 和 batteryLevel属性, 从而判断当前手机是否处于充电状态以及手机电 量。如果手机处于未充电状态且手机电量低于 15%,那么闹钟 APP调用 UIAPPlication对象的 presentLocalNotificationNow以生成一个系统通知 , 例如显示"您的手机电量较低, 闹钟将退出后台闹钟模式"。
然后,该闹钟 APP会通过 UIApplication的 scheduleLocalNotification: 接口向操作系统中写入一个本地通知,将该闹钟 APP的提醒时间写入该 本地通知的提醒时间字段,且将本闹钟 APP内封装的一个音频文件的名 称如 bbb.caf 写入本地通知的执行文件字段, 并向该本地通知的提醒内 容字段写入自定义的内容如"闹钟时间到了 ", 从而将闹钟提醒任务交给 操作系统的本地通知来完成。
之后, 闹钟 APP调用 AVAudioPlayer类的停止播放功能, 停止播放 所述 quiet.caf音频文件,操作系统会自动终止该闹钟 APP的后台运行状 态, 从而达到节省手机电量的目的。
当所述提醒时间到达后,操作系统会自动触发所述闹钟 APP所写入 的本地通知, 该本地通知触发时会显示提醒内容 "闹钟时间到了", 并且 可以播放 bbb.caf 音频。 这样, 在实现了电量保护的同时, 又实现了闹 钟提醒的功能, 只不过用户设置的个性化闹钟提醒音乐 aaa.mp3换成了 闹钟 APP内置的铃声 bbb.caf。
当用户点击所述本地通知, 操作系统会自动运行该本地通知所绑定 的闹钟 APP, 并将界面切换到指定的闹钟 APP界面, 此时闹钟 APP还 可以自动播放所述用户设置的个性化闹钟提醒音乐 aaa.mp3。 从而可以 方便用户直接对该闹钟 APP进行后续的操作。
本申请实施例还提供了一种数据处理设备, 该数据处理设备至少包 括存储介质以及与存储介质通信的处理器, 其中该存储介质用于存储计 算机可读程序代码, 用于实现上述任意实施例的功能, 并且处理器能够 读取并且执行存储在存储介质中的程序代码。
在这种情况下, 从存储介质中读取的程序代码可以实现上述任一实 施例, 因此该程序代码和存储该程序代码的存储介质是技术方案的一部 分。
具体地, 该存储介质包括可由处理器执行的提醒指令、 后台运行 指令、 电量检测指令和电量保护指令。
其中,提醒指令,用于确定提醒装置的提醒时间及对应的提醒事件, 在该提醒时间到达后触发对应的提醒事件;
后台运行指令, 用于通知数据处理设备的操作系统在检测到切换指 令后触发本提醒装置进入后台运行状态;
电量检测指令, 用于在本提醒装置后台运行时检测所述数据处理设 备的电量;
电量保护指令, 用于在所述数据处理设备的电量低于指定值后, 在 所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本地 通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装置进入挂 起状态。
该存储介质进一步包括充电检测指令, 用于在所述数据处理设备的 电量低于指定值后, 检测所述数据处理设备是否处于充电状态;
所述电量保护指令具体用于: 如果所述数据处理设备处于非充电状 态, 则在所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本地通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装 置进入挂起状态。
所述电量保护指令进一步用于: 在所述操作系统中写入一可由操作 系统自动触发的本地通知时, 将该本地通知在触发时的执行文件设置为 本提醒装置的一内部文件,和 /或将该本地通知触发时所显示的提醒内容 设置为本提醒装置自定义的提醒内容,和 /或将该本地通知触发且被点击 后的执行动作设置为运行本提醒装置、 且显示本提醒装置的指定界面。
所述电量保护指令进一步用于: 在所述操作系统中写入一可由该操 作系统自动触发的本地通知时, 将该本地通知触发且被点击后的执行动 作设置为运行本提醒装置、 且显示本提醒装置的指定界面; 且所述提醒指令进一步用于: 在运行本提醒装置之后, 触发本提醒 装置的提醒时间对应的提醒事件。
所述后台运行指令用于, 在所述操作系统的应用配置文件中, 将本 提醒装置设置为该操作系统所允许进行后台运行的应用类型; 在操作系 统检测到切换指令后触发本提醒装置执行所述应用配置文件中所设置 的应用类型对应的应用操作。
以上所述仅为本申请的较佳实施例而已, 并不用以限制本申请, 凡 在本申请的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均 应包含在本申请保护的范围之内。

Claims

权利要求书
1、 一种数据处理设备中的提醒装置, 其特征在于, 包括: 提醒模块, 用于确定本提醒装置的提醒时间及对应的提醒事件, 在 该提醒时间到达后触发对应的提醒事件;
后台运行模块, 用于通知数据处理设备的操作系统在检测到切换指 令后触发本提醒装置进入后台运行状态;
电量检测模块, 用于在本提醒装置后台运行时检测所述数据处理设 备的电量;
电量保护模块, 用于在所述数据处理设备的电量低于指定值后, 在 所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本地 通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装置进入挂 起状态。
2、根据权利要求 1所述的提醒装置, 其特征在于, 该提醒装置进一 步包括充电检测模块, 用于在所述数据处理设备的电量低于指定值后, 检测所述数据处理设备是否处于充电状态;
所述电量保护模块具体用于: 如果所述数据处理设备处于非充电状 态, 则在所述操作系统中写入一可由该操作系统自动触发的本地通知, 将该本地通知的触发时间设置为本提醒装置的提醒时间, 触发本提醒装 置进入挂起状态。
3、根据权利要求 1或 2所述的提醒装置, 其特征在于, 所述电量保 护模块进一步用于: 在所述操作系统中写入一可由操作系统自动触发的 本地通知时, 将该本地通知在触发时的执行文件设置为本提醒装置的一 内部文件,和 /或将该本地通知触发时所显示的提醒内容设置为本提醒装 置自定义的提醒内容,和 /或将该本地通知触发且被点击后的执行动作设 置为运行本提醒装置、 且显示本提醒装置的指定界面。
4、根据权利要求 1或 2所述的提醒装置, 其特征在于, 所述电量保 护模块进一步用于: 在所述操作系统中写入一可由该操作系统自动触发 的本地通知时, 将该本地通知触发且被点击后的执行动作设置为运行本 提醒装置、 且显示本提醒装置的指定界面;
且所述提醒模块进一步用于: 在运行本提醒装置之后, 触发本提醒 装置的提醒时间对应的提醒事件。
5、根据权利要求 1所述的提醒装置, 其特征在于, 所述后台运行模 块用于, 在所述操作系统的应用配置文件中, 将本提醒装置设置为该操 作系统所允许进行后台运行的应用类型; 在操作系统检测到切换指令后 触发本提醒装置执行所述应用配置文件中所设置的应用类型对应的应 用操作。
6、一种数据处理设备中的提醒装置的提醒方法,其特征在于,包括: 确定本提醒装置的提醒时间及对应的提醒事件, 在该提醒时间到达 后触发对应的提醒事件;
通知数据处理设备的操作系统在检测到切换指令后触发本提醒装置 进入后台运行状态;
在本提醒装置后台运行时检测所述数据处理设备的电量;
在所述数据处理设备的电量低于指定值后, 在所述操作系统中写入 一可由该操作系统自动触发的本地通知, 将该本地通知的触发时间设置 为本提醒装置的提醒时间, 触发本提醒装置进入挂起状态。
7、根据权利要求 6所述的方法, 其特征在于, 在所述数据处理设备 电量低于指定值后, 进一步包括: 检测所述数据处理设备是否处于充电 状态;
所述在所述操作系统中写入一可由该操作系统自动触发的本地通 知, 将该本地通知的触发时间设置为本提醒装置的提醒时间, 触发本提 醒装置进入挂起状态, 包括:
如果所述数据处理设备处于非充电状态, 则在所述操作系统中写入 一可由该操作系统自动触发的本地通知, 将该本地通知的触发时间设置 为本提醒装置的所述提醒时间, 触发本提醒装置进入挂起状态。
8、根据权利要求 6或 7所述的方法, 其特征在于, 在所述操作系统 中写入一可由该操作系统自动触发的本地通知时, 进一步包括:
将该本地通知在触发时的执行文件设置为本提醒装置的一内部文 件;
和 /或,将该本地通知触发时所显示的提醒内容设置为本提醒装置自 定义的提醒内容;
和 /或,将该本地通知触发且被点击后的执行动作设置为运行本提醒 装置、 且显示本提醒装置的指定界面。
9、根据权利要求 6或 7所述的方法, 其特征在于, 在所述操作系统 中写入一可由该操作系统自动触发的本地通知时, 进一步包括: 将该本 地通知触发且被点击后的执行动作设置为运行本提醒装置、 且显示本提 醒装置的指定界面;
在运行本提醒装置之后, 触发本提醒装置的提醒时间对应的提醒事 件。
10、 根据权利要求 6所述的方法, 其特征在于, 所述通知数据处理 设备的操作系统在检测到切换指令后触发本提醒装置进入后台运行状 态, 具体包括:
在所述操作系统的应用配置文件中, 将本提醒装置设置为该操作系 统所允许进行后台运行的应用类型;
在操作系统检测到切换指令后触发本提醒装置执行所述应用配置文 件中所设置的应用类型对应的应用操作。
11、根据权利要求 10所述的方法, 其特征在于, 在本提醒装置执行 所述应用配置文件中所设置的应用类型对应的应用操作时, 进一步包 括: 通知操作系统允许同时执行与该应用操作的类型相同的两个以上的 应用操作。
12、 一种存储介质, 其特征在于, 包括计算机可读程序代码, 用于 执行权利要求 6-11任一项所述的方法的步骤。
PCT/CN2013/083474 2012-09-29 2013-09-13 一种数据处理设备中的提醒装置及其提醒方法、存储介质 Ceased WO2014048258A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/673,105 US9703663B2 (en) 2012-09-29 2015-03-30 Reminding apparatus in data processing device, reminding method and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210370673.7 2012-09-29
CN201210370673.7A CN103713886B (zh) 2012-09-29 2012-09-29 一种数据处理设备中的提醒装置及其提醒处理方法

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/673,105 Continuation US9703663B2 (en) 2012-09-29 2015-03-30 Reminding apparatus in data processing device, reminding method and storage medium

Publications (1)

Publication Number Publication Date
WO2014048258A1 true WO2014048258A1 (zh) 2014-04-03

Family

ID=50386979

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083474 Ceased WO2014048258A1 (zh) 2012-09-29 2013-09-13 一种数据处理设备中的提醒装置及其提醒方法、存储介质

Country Status (3)

Country Link
US (1) US9703663B2 (zh)
CN (1) CN103713886B (zh)
WO (1) WO2014048258A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618218A (zh) * 2014-12-29 2015-05-13 广州酷狗计算机科技有限公司 消息提醒方法及装置
US10461365B2 (en) 2015-06-23 2019-10-29 Nippon Shokubai Co., Ltd. Conductive material and manufacturing method and purification method for same, and non aqueous electrolyte solution and antistatic agent using said conductive material

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2495066B (en) 2010-07-26 2013-12-18 Seven Networks Inc Mobile application traffic optimization
WO2013116852A1 (en) 2012-02-03 2013-08-08 Seven Networks, Inc. User as an end point for profiling and optimizing the delivery of content and data in a wireless network
US9516127B2 (en) * 2013-03-25 2016-12-06 Seven Networks, Llc Intelligent alarm manipulator and resource tracker
US10216549B2 (en) 2013-06-17 2019-02-26 Seven Networks, Llc Methods and systems for providing application programming interfaces and application programming interface extensions to third party applications for optimizing and minimizing application traffic
US9973965B2 (en) 2013-07-12 2018-05-15 Seven Networks, Llc Transport protocol layer optimization for managing signaling and power consumption
CN104461846B (zh) * 2014-12-02 2017-11-03 百度在线网络技术(北京)有限公司 检测应用程序耗电量的方法和装置
KR20170039471A (ko) * 2015-10-01 2017-04-11 엘지전자 주식회사 이동 단말기 및 그 제어방법
US9859731B2 (en) 2016-01-15 2018-01-02 International Business Machines Corporation Alternate alarm notifications based on battery condition
US9734701B2 (en) * 2016-01-20 2017-08-15 International Business Machines Corporation Alternative alarm generator
CN105898076A (zh) * 2016-06-17 2016-08-24 乐视控股(北京)有限公司 闹钟提醒方法及装置
CN106651289B (zh) * 2016-09-29 2021-03-12 珠海市魅族科技有限公司 一种任务提醒的方法及装置
CN106648861B (zh) * 2016-12-05 2020-07-14 阿里巴巴(中国)有限公司 后台服务进程的保活方法及装置
CN106535314B (zh) * 2017-01-13 2019-10-08 徐州皇浦世味食品有限公司 一种智能省电的控制方法及移动终端
CN107317914A (zh) * 2017-05-23 2017-11-03 深圳天珑无线科技有限公司 终端页面显示的方法、移动终端和具有存储功能的装置
CN109445567B (zh) * 2018-09-30 2021-11-16 联想(北京)有限公司 信息处理方法和电子设备
CN111586232A (zh) * 2019-02-18 2020-08-25 奇酷互联网络科技(深圳)有限公司 闹钟应用的触发方法、移动终端及具有存储功能的装置
US11231827B2 (en) * 2019-08-03 2022-01-25 Qualcomm Incorporated Computing device and extended reality integration
CN113127214B (zh) * 2019-12-30 2024-02-06 中移(成都)信息通信科技有限公司 一种定时唤醒处理方法、装置、终端设备及存储介质
CN111523857B (zh) * 2020-04-17 2024-01-23 广州三星通信技术研究有限公司 用于提醒设置的方法和电子装置
US10863580B1 (en) * 2020-05-14 2020-12-08 Accenture Global Solutions Limited Continuous short range wireless communication detection for user devices using a background application
US11899577B2 (en) * 2020-11-24 2024-02-13 Micron Technology, Inc. Selective garbage collection
CN113747552B (zh) * 2021-06-18 2024-03-19 荣耀终端有限公司 一种功耗优化方法和电子设备
US12482145B2 (en) 2021-07-15 2025-11-25 Qualcomm Incorporated Remote landmark rendering for extended reality interfaces

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774104A (zh) * 2004-11-10 2006-05-17 乐金电子(中国)研究开发中心有限公司 移动通信终端的提醒服务控制方法
CN101202555A (zh) * 2006-12-11 2008-06-18 中兴通讯股份有限公司 一种手机电源的管理系统及方法
CN101778173A (zh) * 2010-02-10 2010-07-14 深圳市同洲电子股份有限公司 移动终端闹钟信息提醒的方法及该移动终端
CN101783824A (zh) * 2010-01-19 2010-07-21 宇龙计算机通信科技(深圳)有限公司 一种检测闹钟设置有效性的方法、系统及移动终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7458080B2 (en) * 2000-12-19 2008-11-25 Microsoft Corporation System and method for optimizing user notifications for small computer devices
CN101909112B (zh) * 2010-07-01 2013-08-14 惠州Tcl移动通信有限公司 智能手机关机闹钟的实现方法
US8886976B2 (en) * 2011-04-11 2014-11-11 Microsoft Corporation Management of background tasks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1774104A (zh) * 2004-11-10 2006-05-17 乐金电子(中国)研究开发中心有限公司 移动通信终端的提醒服务控制方法
CN101202555A (zh) * 2006-12-11 2008-06-18 中兴通讯股份有限公司 一种手机电源的管理系统及方法
CN101783824A (zh) * 2010-01-19 2010-07-21 宇龙计算机通信科技(深圳)有限公司 一种检测闹钟设置有效性的方法、系统及移动终端
CN101778173A (zh) * 2010-02-10 2010-07-14 深圳市同洲电子股份有限公司 移动终端闹钟信息提醒的方法及该移动终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618218A (zh) * 2014-12-29 2015-05-13 广州酷狗计算机科技有限公司 消息提醒方法及装置
US10461365B2 (en) 2015-06-23 2019-10-29 Nippon Shokubai Co., Ltd. Conductive material and manufacturing method and purification method for same, and non aqueous electrolyte solution and antistatic agent using said conductive material

Also Published As

Publication number Publication date
CN103713886B (zh) 2017-11-10
US9703663B2 (en) 2017-07-11
CN103713886A (zh) 2014-04-09
US20150212918A1 (en) 2015-07-30

Similar Documents

Publication Publication Date Title
WO2014048258A1 (zh) 一种数据处理设备中的提醒装置及其提醒方法、存储介质
KR101641174B1 (ko) 셧다운 상태에서의 알람의 구현방법, 이동 단말기, 프로그램 및 기록매체
TWI536793B (zh) 應用程式啟動管理系統及方法
TWI424312B (zh) 在電池供電型電子裝置中用於功能性保存的電力消耗管理
US11088567B2 (en) Brownout avoidance
JP6285664B2 (ja) 情報表示のための低電力感知装置及び方法
CN101859261A (zh) 一种释放内存的控制方法及控制设备
US20120191994A1 (en) Electronic device, storage medium and method for saving power of the electronic device
WO2015089982A1 (zh) 消息提醒方法、装置和电子设备
KR20110028374A (ko) 이동 디바이스에서 멀티태스킹을 지원하기 위한 방법
KR20150066083A (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
WO2011160333A1 (zh) 在移动终端上控制应用程序显示的方法和移动终端
WO2015096600A1 (zh) 一种文档推送提醒方法及装置
CN102946469A (zh) 移动终端的语音播报方法和装置以及移动终端
US20250052819A1 (en) Method for determining battery level status
WO2018099163A1 (zh) 终端与应用控制方法
CN104639758A (zh) 应用于智能终端的闹钟控制方法和闹钟控制装置
CN104954550A (zh) 通信方法及通信系统
CN104038632A (zh) 一种智能终端管理方法及装置
WO2019223319A1 (zh) 一种界面显示方法及设备
CN103034317A (zh) 一种待机处理方法及装置
CN107438999B (zh) 进入省电模式的方法、退出省电模式的方法、装置及移动终端
WO2015106530A1 (zh) 一种基于用户操作的信息处理方法、装置及终端
CN112764812B (zh) 电子设备及其控制方法
CN101984641B (zh) 移动终端的背光控制方法及移动终端

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: 13840595

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.08.2015)

122 Ep: pct application non-entry in european phase

Ref document number: 13840595

Country of ref document: EP

Kind code of ref document: A1