如何取消 Symbian PyS60 上的传入消息声音

发布于 2024-09-26 16:22:48 字数 325 浏览 1 评论 0原文

我正在使用 PyS60 编写家长控制应用程序(在诺基亚 E72 上) 该应用程序通过短信操作。 当输入收件箱侦听器的回调时,操作该应用程序的每条短信都会被删除,并且通过使用空白音频文件,我设法取消“新消息”声音警报。 然而, 仅当焦点位于 Python Script Shell 时才有效。 含义 - 当我切换到桌面或任何其他打开的应用程序时,会播放新消息警报声音。 我的猜测是 - 我正在输掉与消息传递模块(或进程竞争条件)的竞争,

有谁知道如何在后台运行时使其工作? 或者甚至取消处理传入短信的进程并自己处理? 或者降低进程的优先级?

也欢迎任何其他建议..

提前致谢, 阿米托斯80

I am writing a parental control app using PyS60 ( on Nokia E72)
The app is operated via sms's.
Every sms that operates the app is deleted when entering the inbox listener's callback, and by using a blank audio file, I manage to cancel the "new message" sound alert.
However,
this only works when the focus in on Python Script Shell.
Meanning - when I switch to desktop, or any other app that is open, the new message alert sound is playing.
My guess is - I'm losing the race with the messaging module (or process race condition),

Does anyone know how to make this work while running in background?
Or even cancel the process that handles incoming sms's and deal with it myself?
Or lower the priority of the process ??

any other suggestions are also welcome..

thank in advance,
Amitos80

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文