Application wake-up method and apparatus
A wake-up device and wake-up time technology, applied in the computer field, can solve problems such as lack of functions, system crashes, and entry of malicious programs.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0076] This embodiment is applied to systems above Android 5.0. This embodiment allows to control the execution of the wake-up behavior by setting many different options. In summary, it can be divided into two categories: periodic wake-up (correspondingly setting the JobScheduler as a periodic JobScheduler), conditional wake-up (correspondingly setting the JobScheduler as a one-time JobScheduler).
[0077] Periodic wake-up: need to set the time difference between every two wake-ups;
[0078] Conditional wake-up: that is, the wake-up will not be set until the condition is met. Under this category, it can be subdivided into various condition settings such as network (whether it is connected to the Internet, whether the network is charged), charging (whether the device is charging), idle (whether the device is idle), etc.
[0079] When the JobScheduler is used in the application, first implement the JobService through customization. Among them, register the language of the cus...
Embodiment 2
[0084] In order to clarify the wake-up strategy provided by the embodiment of the present invention, the embodiment of the present invention provides four wake-up strategies. For the specific execution language, please refer to Figure 4 :
[0085] 1. Wake up once every 10 minutes
[0086] 2. First push back for 10 minutes, then wake up once under charging conditions, and arrange the next task of this type at the same time as each wake-up.
[0087] 3. Postpone for 10 minutes, then wake up once when the device is idle, and schedule the next task of this type at the same time as each wake-up.
[0088] 3. Postpone for 10 minutes, and then wake up once when the device is connected to the non-billing network, and schedule the next task of this type at the same time as each wake-up.
[0089] It should be noted that 10 minutes is only an indicative value, and the specific value depends on the actual situation. Moreover, during the execution process, due to the power-saving charact...
Embodiment 3
[0095] Since JobService is a new API in Android 5.0, if it is actively called by a third party (malicious program with system permissions) on a machine that does not support JobService, such as 4.4 and below 4.4, the application will crash directly.
[0096] In view of the above threats, two situations have to be considered:
[0097] 1. On devices running Android 4.4 and below, avoid calling JobService;
[0098] 2. On devices that run Android 5.0 and above but are removed or changed by the Rom provider, avoid program crashes when the JobService is called.
[0099] Embodiments of the present invention provide the following solutions
[0100] For the problem mentioned in 1, you can use the property setting of Service - android:enable.
[0101] If this item is set to "true", the Service will be activated, but the system will not start the Service. To start the service, the startService() method must be explicitly called. Otherwise, if this item is set to "false", the Service i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap