我有一个扩展的类,BroadcastReceiver在onReceive这个类的方法中我有这个代码:
Intent autoBoostIntent = new Intent();
autoBoostIntent.setAction(Values.ACTION_AUTO_BOOST);
context.sendBroadcast(autoBoostIntent);
其目的是使用特定的action. 问题是,我想延迟上述过程,例如每 10 秒发送一次广播。这可能吗?
编辑:我希望广播无限期循环,无论设备是否唤醒(键盘解锁)。