运行时修改TimerTask的执行周期 java.util.TimerTask类的执行周期period变量的声明如下: /*** Period in milliseconds for repeating tasks. A positive value indicates* fixed-rate execution. A negative value indicates fixed-d
注意:service要enable,不然intent不了。 在service中使用timer: public class MyService extends Service {public MyService() {}@Override public IBinder onBind(Intent intent) {// TODO: Return the communication c