设备重启后小部件消失 [英] Widgets disappearing after device restart

查看:52
本文介绍了设备重启后小部件消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我开发的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆