设备重启后小部件消失

编程入门 行业动态 更新时间:2024-10-20 05:28:48
本文介绍了设备重启后小部件消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我从我开发的 Android 应用程序的几个用户那里收到报告,称在重新启动他们的设备后,小部件从主屏幕上消失,并且在小部件列表中找不到.卸载应用程序并重新安装后,小部件会重新出现,直到下次重新启动.问题似乎是在报告问题的设备上更新 Android 版本后发生的.有谁知道可能是什么问题?

I am getting reports from several users of an Android application I developed that after restarting their device, the widget disappears from the home screen and cannot be found in the list of widgets. After uninstalling the application and reinstalling it, widgets reappear, until the next restart. It looks like the problem happened after an update of the Android version on the devices that report the problem. Does anyone know what could the problem be?

推荐答案

问题似乎发生在运行 Android M 的设备上,这些设备还具有模拟为内部存储的 SD 卡.重新启动期间发生的情况是系统将应用程序移动到 SD 卡上,这似乎是导致问题的原因.我将尝试在清单中添加 internalOnly 标志,这应该可以解决问题.

It looks like the problem occurs on devices running Android M that also have an SD card emulated as internal storage. What happens during reboot is that the system moves applications onto the SD card and this seems to be causing the problem. I will try adding the internalOnly flag in the Manifest and this should fix the problem.

这篇关于设备重启后小部件消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-26 02:53:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128979.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重启   部件   设备

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!