烤面包停在4.4.2工作 [英] Toasts stopped working in 4.4.2

查看:156
本文介绍了烤面包停在4.4.2工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序敬酒,直到我的手机RazrM已升级到4.4.2已经工作得很好。然后他们停了下来。我曾尝试专门runInUiThread和移动调用在()中的code包括的onCreate不同的地方开始。问题[20373751](吐司没有出现在Android 4.4奇巧),提出了重新启动或在UI线程上运行专。无论是有差别。

In my app Toasts have worked fine until my RazrM phone was upgraded to 4.4.2. then they stopped. I have tried specifically runInUiThread and moving the call to initiate from different places in the code including in onCreate(). The issue [20373751] (Toast not appearing on Android 4.4 KitKat) proposes rebooting or specifically running on the UI thread. Neither makes a difference.

这问题也问题如果没有在Nexus设备或奇巧的错误。我有祝酒词对三星Galaxy Tab运行良好的4.0.4。所以我想这个问题是在4.4。有没有人找到一个解决方法吗? (顺便说一句,我要编译版本9的目标,所以它不是一个问题与编译level.But我使用的是臭名昭著的23.0.2 SDK)。任何人都可以证明4.4.2根据该敬酒的工作,而使用SDK 23.0。 2?

That issue also questions if there is a bug in Nexus or KitKat. I have the Toasts running fine in 4.0.4 on a Samsung Galaxy Tab. So I am thinking the problem is in 4.4. Has anyone found a workaround? (BTW I am compiling to a target of Version 9, so it is not an issue with the compile level.But I am using the infamous 23.0.2 SDK.) Can anyone prove that Toasts work under 4.4.2 while using SDK 23.0.2?

推荐答案

在[21098062] @marcin_j说:结果

In [21098062] @marcin_j said:

在果冻豆4.1或更高版本,可以从设备设置中禁用应用程序的通知。只需打开通知栏,在任何通知,然后点击应用程序信息,你应该看到显示通知长水龙头。取消选中此选项应该在您的应用程序禁用祝酒词。

On Jelly Bean 4.1 or higher,you can disable apps notifications from device settings. Just open notification bar, long tap on any of notifications and click App Info, you should see "Show notifications". Unchecking this option should disable toasts in your app.

如果您的应用程序不显示任何通知,那么你应该能够从应用经理达到应用信息屏幕。

If your app does not show any notifications, then you should be able to reach App Info screen from applications manager.

这也许是你缺少敬酒的原因

Maybe this is the cause of you missing toasts

这是完全正确的。我4.0.4设备没有受到影响,但我的4.4.2的设备已经有显示通知选中。


This was absolutely correct. My 4.0.4 device was not affected but my 4.4.2 device had had Show notifications unchecked.

这篇关于烤面包停在4.4.2工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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