java - MIUI 10.2 Redmi 设备的锁屏上未设置壁纸
问题描述
我正在尝试在 miui 10.2 Redmi 设备的锁定屏幕上设置壁纸。
我可以使用以下代码设置主屏幕壁纸:
wallpaperManager.setBitmap(crackedBitmap);
但是,当我尝试使用此代码设置锁屏壁纸时,它不起作用:
WallpaperManager wallpaperManager;
wallpaperManager = WallpaperManager.getInstance(getApplicationContext());
wallpaperManager.setBitmap(bitmap,null,true,WallpaperManager.FLAG_LOCK);
Toast 正在打印已设置壁纸但未在锁定屏幕中显示
解决方案
推荐阅读
- jquery - 使用 jQuery 在悬停时交换图像源
- javascript - 从 API 响应在 html 中创建动态组件
- powershell - 使用 whenCreated powershell 命令过滤 Get-ADUser 时遇到一些问题
- vba - Powershell不会运行宏,但宏手动运行正常
- linux - 有没有办法可以使用“if”分支来检查 U 盘是否已连接?
- django - DJANGO - 显示当前登录的用户数
- json - Discord Bot 不会登录到服务器
- python-3.x - Telethon utils.resolve_invite_link(link) 返回错误的聊天/频道 ID
- excel - 试图删除PPT中的表格,然后从excel中粘贴新表格
- sql - case 语句有问题,我收到语法错误