1. 程式人生 > >jobservice與jobchedule詳解,以及如何應用

jobservice與jobchedule詳解,以及如何應用

This will happen if the requirementsspecified at schedule time are no longer met. For example you may haverequested WiFi with setRequiredNetworkType(int), yet while your job wasexecuting the user toggled WiFi. Another example is if you had specifiedsetRequiresDeviceIdle(boolean), and the phone left its idle maintenance window.You are solely responsible for the behaviour of your application upon receiptof this message; your app will likely start to misbehave if you ignore it. Oneimmediate repercussion is that the system will cease holding a wakelock foryou.