Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从启动时启动的服务的 onStartCommand() 中保存记录,但 AsyncTask() 不能调用那个时间进行数据库编码。如果我没有在启动时启动服务,而只是从应用程序启动服务,它工作正常。