package com.huo;import android.app.Service;
import android.content.Intent;
import android.os.IBinder;public class FirstService extends Service { @Override
public IBinder onBind(Intent intent) {
// TODO Auto-generated method stub
return null;
} @Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
System.out.println("Service is created");
}


public int onStartCommand(Intent intent, int flags, int startId) {
return START_STICKY;
} @Override
public void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
System.out.println("Service is destroyed");
} }
小弟刚学习android,写了个关于Service的demo,标记为红色的代码处总是报错:“START_STICKY cannot be resolved”,希望高手指教!