当前位置:网站首页>"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)
}
边栏推荐
- Valid bracket sequence of "Niuke | daily question"
- 28. Implement strstr() implement strstr()
- 『HarmonyOS』工程的创建与虚拟机的使用
- Fastdfs supports dual IP and IPv6
- How to open an account online for Guohai Securities? Is it safe to open an account
- 『HarmonyOS』DevEco的下载安装与开发环境搭建
- Press in and pop-up sequence of "Niuke | daily question" stack
- Development stage of source code encryption technology
- Command line artifact for operating database: mycli
- 抖音web端 s_v_web_id 参数生成分析与实现
猜你喜欢

Binary tree knowledge summary

20000 words will take you from 0 to 1 to build an enterprise level microservice security framework

Deep learning - CV, CNN, RNN

字符串和内存函数
![[image hiding] digital image watermarking method technology based on hybrid dwt-hd-svd with matlab code](/img/2a/b5214e9fa206f1872293c9b9d7bdb6.png)
[image hiding] digital image watermarking method technology based on hybrid dwt-hd-svd with matlab code

How to solve the crash when the easygbs platform edits the device management group?

『牛客|每日一题』有效括号序列

『牛客|每日一题』 栈的压入、弹出序列

"Niuke | daily question" template stack

MySQL基础篇(二)-- MySQL 基础
随机推荐
【毕业季_进击的技术er】送别过去两年迷茫的自己。重整旗鼓,大三我来啦
UIToolkit中显示汉字
"Harmonyos" explore harmonyos applications
Valid bracket sequence of "Niuke | daily question"
少儿编程 电子学会图形化编程等级考试Scratch一级真题解析(选择题)2022年6月
The "darkest hour" has not come yet. Cherish every bullet 2020-03-22
Can C use reflection to assign values to read-only attributes?
[image denoising] image denoising based on bicube interpolation and sparse representation matlab source code
归并排序(merge_sort)
Shell programming
Sorting problem: bubble sort, select sort, insert sort
Open includeexceptiondetailinfaults on the server (from servicebehaviorattribute or from & lt; servicedebug & gt; to configure behavior) to send exception information back
软考可以查成绩了,2022年上半年软考成绩查询入口已开通
『牛客|每日一题』点击消除
【Web3 系列开发教程——创建你的第一个 NFT(4)】NFTs 可以给你带来什么
『HarmonyOS』工程的创建与虚拟机的使用
CS5801_HDMI转EDP优势替代LT6711A方案
28. Implement strstr() implement strstr()
『牛客|每日一题』 栈的压入、弹出序列
Children's programming electronic society graphical programming level examination scratch level 1 real problem analysis (multiple choice) June 2022