android : 循环定时器(不停的发送数据)
为了完成串口定时发送数据,回调接口需要的定时装置。
ublic class LongRunningService extends Service {
、、、、、当然不要忘了再需要的点
Intent intent = new Intent(context,LongRunningService.class);
context.startService(intent);
为了完成串口定时发送数据,回调接口需要的定时装置。
ublic class LongRunningService extends Service {
、、、、、当然不要忘了再需要的点
Intent intent = new Intent(context,LongRunningService.class);
context.startService(intent);