import android.app.Service; import android.content.Intent; import android.os.IBinder; public class SomeStartedService extends Service { private int startMode; @Override public void onCreate() { super.onCreate(); // ... } @Override public int onStartCommand(Intent intent, int flags, int startId) { // ... return startMode; } @Override public IBinder onBind(Intent intent) { // ... return null; } @Override public void onDestroy() { super.onDestroy(); // ... } }