当前位置:网站首页>"XXXX" is running, which may cause the system to jam, reduce the standby time, and click Close "
"XXXX" is running, which may cause the system to jam, reduce the standby time, and click Close "
2022-07-26 06:50:00 【Favorite grapes】
Treatment scheme
stay Notification Add setSmallIcon(xxxx)
Source code
val notification = notificationBuilder
.setContentTitle("111")
.setContentText("222")
.setSmallIcon(R.mipmap.ic_launcher) // If not set here icon, The text in the title of the article will be displayed
.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)
}
边栏推荐
猜你喜欢

An album has been released, from introductory practical demonstration to advanced live Q & A, playing with container service so easy~

Quick sort

XSS-labs(1-10)闯关详解

UIToolkit工具模板工程

Experimental flags: --disable_ admission_ control=false --enable_ rm=false --llama_ callback_ port=28000

Delete ^m from VIM

日志轮转logrotate

Log rotation logrotate

Deep learning - CV, CNN, RNN

Go 的切片与数组
随机推荐
Gdown Access denied:Cannot retrieve the public link of the file.
UIToolkit工具模板工程
Valid bracket sequence of "Niuke | daily question"
Fastdfs supports dual IP and IPv6
LeetCode刷题1:题目分类
buuReserve(4)
在第一次使用德国小鸡要注意的地方
CONDA virtual environment envs directory is empty
Can C use reflection to assign values to read-only attributes?
vulnhub Lampião: 1
Delete ^m from VIM
微信小程序 - 从入门到入土
mysql优化之索引及索引失效
The results of the soft test can be checked, and the entry to query the results of the soft test has been opened in the first half of 2022
Log rotation logrotate
Conda 虚拟环境envs目录为空
[Web3 series development tutorial - create your first NFT (4)] what can NFTs bring to you
@Constructorproperties annotation understanding and its corresponding usage
『牛客|每日一题』点击消除
Display Chinese characters in uitoolkit