当前位置:网站首页>「“xxxx“正在运行,可能导致系统卡顿,降低待机时间,点按关闭」处理
「“xxxx“正在运行,可能导致系统卡顿,降低待机时间,点按关闭」处理
2022-07-26 06:48:00 【最爱吃葡萄】
处理方案
在Notification中添加setSmallIcon(xxxx)
源码
val notification = notificationBuilder
.setContentTitle("111")
.setContentText("222")
.setSmallIcon(R.mipmap.ic_launcher) // 如果没有此处设置icon,就会显示文章标题中的文字
.setContentIntent(pendingIntent)
.setTicker("333")
.build()
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
startForeground(CHANNEL_ID, notification, ServiceInfo.FOREGROUND_SERVICE_TYPE_PHONE_CALL)
}else {
startForeground(CHANNEL_ID, notification)
}
边栏推荐
- mysql优化之索引及索引失效
- Quick sort
- 『牛客|每日一题』点击消除
- Advanced C language - archived address book (file)
- Torth file read vulnerability (cnvd-2020-27769)
- Address resolution ARP Protocol
- How does the national standard gb28181 protocol easygbs platform realize device video recording and set streaming IP?
- 『牛客|每日一题』逆波兰表达式
- Liberg avenue to Jane series
- 『期末复习』16/32位微处理器(8086)基本寄存器
猜你喜欢
随机推荐
Realize the full link grayscale based on Apache APIs IX through MSE
Summary of common usage of dev treelist
服装行业如何实现数字化生产模式
字符串和内存函数
UIToolkit工具模板工程
Shell programming
Go channel
Deep learning - CV, CNN, RNN
Rust语言- Slice(切片)类型(&[u8])
CS5801_HDMI转EDP优势替代LT6711A方案
Delete ^m from VIM
buuReserve(4)
Conda 虚拟环境envs目录为空
[untitled]
[image hiding] digital image watermarking method technology based on hybrid dwt-hd-svd with matlab code
vulnhub Lampião: 1
Find the original root
Heap sort
Click "Niuke | daily question" to eliminate it
Rust language - slice type (&[u8])









