Android的蜂鸣声或灯光没有通知的对象? [英] Android Beep or Light without a Notification object?

查看:139
本文介绍了Android的蜂鸣声或灯光没有通知的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法来启动蜂鸣声(是的,蜂鸣声)或者打开设备的光没有通知的实例吗?

Is there any way to start a beep (yes, a beep sound) or turn on the light of a device without a Notification instance?

通过通知很容易如下所示:的http://开发商.android.com /引导/主题/ UI /通知者/ notifications.html

With a notification it's easy as shown here: http://developer.android.com/guide/topics/ui/notifiers/notifications.html

这是可能与iPhone API做的,我需要在Android上exaclty相同的行为。

This is possible to do with iPhone API, and I need the exaclty same behavior on android.

推荐答案

我不认为这就是可能的。你必须坚持与通知和取消的解决方法。只是作为一个例子看到TweetDeck的Andr​​oid应用程序。在栏目设置,还有上边那个说选择:通知,光,声,振动。
您可以选择灯光,声音和振动或它们的组合,但是,他们都需要被选中的通知。

I don't think thats possible. You will have to stick with the notify and cancel workaround. Just as an example see the TweetDeck android app. In the column settings, there are options on top that say : Notify, Light, Sound, Vibrate. You can select either of Light, Sound and Vibrate or a combination of these, however, they all need the notify to be selected.

这篇关于Android的蜂鸣声或灯光没有通知的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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