楼主是这个意思?public int onStartCommand(Intent intent, int flags, int startId) {
if(true){ //加个这个,能编过
while (1>0) {
try {
Thread.sleep(4000);
Log.i("log", "onstart");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
return super.onStartCommand(intent, flags, startId);
}
if(true){ //加个这个,能编过
while (1>0) {
try {
Thread.sleep(4000);
Log.i("log", "onstart");
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
return super.onStartCommand(intent, flags, startId);
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货