安卓 Service 后台服务循环执行方法
Service 后台服务 循环执行
因为我要写一个 智能厨房app,当关闭app后需要还 能收到数据,所以 我需要添加一个 后台服务方法 使用了Service.
1,首先 第一步 新建 Service类;
public class MyService extends Service {
private Runnable runnable;
private Handler handler;
@Override
public IBinder onBind(Intent in
原创
2021-06-01 10:06:08 ·
1233 阅读 ·
0 评论