在用户的请求下,让Android应用程序将可能很大的文件上传到服务器的最佳方式是什么?我目前使用的是IntentService,我调用startForeground并定期更新通知进度,但大约一分钟后,系统会随机终止该服务。.
startForeground(0, .setTicker("Starting transfer
Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{73bc351 u0com.xxx.xxxx/.player.PlayFileService}
但是,我在代码中的任何地方都不调用Context.startForegroundService()。