@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// Let it continue running until it is stopped.
Toast.makeText(this, "Service Started", Toast.LENGTH_LONG).show();
return START_STICKY;
}

این رو به جای متد onStartCommand خودت بزار و تغییرش نده و اجرا کن اگه نشد مشکا در اکتیویتیته سایر متدها رو در سرویست حذف کن