Android 服务 stopSelf() 是否仍然需要 return

Android does service stopSelf() still require return

是否需要调用return;如果我决定在服务内的 onStartCommand() 中调用 stopSelf() 命令?

是的。该方法必须有一个 return 语句,因为 onStartCommand() 的签名表明它 returns 一个值:

public int onStartCommand (Intent intent, 
            int flags, 
            int startId)