gpt4 book ai didi

带有 setOnClickPendingIntent 的 Android 自定义通知不适用于低于 3.0 的版本。有没有办法让它发挥作用?

转载 作者:行者123 更新时间:2023-11-29 00:31:58 24 4
gpt4 key购买 nike

我正在玩通知,但我无法创建具有在 Froyo(或其他低于 3.0 的 Android 版本)上工作的自定义布局的通知,就像它在 ICS 上工作一样。

问题是我想将待定 Intent 与任何单个 View 相关联。

在我看来,有一个变通办法,因为应用程序 Notification Toggles 可以做到这一点,但我不知道如何做到这一点。

请帮帮我。

问候

最佳答案

I'm playing with notification but I was not able to create a notification with a custom layout that works on Froyo (or other android version lower than 3.0) like it works on ICS.

您可以在以前的版本上创建自定义布局,但您无法可靠地响应它们的点击事件。

The problem is that I want to associate a pending intent to any single views.

在Android 4.1 加入富通知之前不支持。由于制造商的修改,它可能适用于某些设备,但并非适用于所有设备。

In my opinion there is a work around because the app Notification Toggles do this but I don't know how

“通知切换”是设备固件(操作系统或制造商修改)的一部分,而不是 SDK 应用程序的一部分。

关于带有 setOnClickPendingIntent 的 Android 自定义通知不适用于低于 3.0 的版本。有没有办法让它发挥作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14964892/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com