80,350
社区成员
发帖
与我相关
我的任务
分享
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
handleCommand(intent);//这个intent就保存了你的数据,然后恢复楼主所需的状态哈
// We want this service to continue running until it is explicitly
// stopped, so return sticky.
return START_REDELIVER_INTENT;
}