Blankj / Blankj/AndroidUtilCode

startService无法正常使用

Open
#1,632 0 comments 0 reactions 1 assignee Claimed by @Blankj View on GitHub
bug
Dominant language
Java
Stars
33.6k
Forks
10.6k
PR merge metrics
No merged PRs in 30d

Description

## 描述 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.