AndroidUtilCode icon indicating copy to clipboard operation
AndroidUtilCode copied to clipboard

startService无法正常使用

Open hanxiaomeme opened this issue 3 years ago • 0 comments

描述 Bug

闪退

  • AndroidUtilCode 的版本:1.30.6
  • 出现 Bug 的设备型号:Samsun SM-A205F
  • 设备的 Android 版本:30

相关代码

Intent intent = new Intent(ActivityUtils.getTopActivity(), *.class); intent.putExtra(type, type); ServiceUtils.startService(intent);

异常堆栈

Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord

hanxiaomeme avatar Apr 13 '22 08:04 hanxiaomeme