【问题标题】:Blackberry : detect profile mode黑莓:检测配置文件模式
【发布时间】:2012-06-07 03:05:34
【问题描述】:

我在我的应用程序中播放通知消息的铃声

 InputStream stream = (InputStream)this.getClass()
 .getResourceAsStream("/storm.mp3");
  p = Manager.createPlayer(stream, "audio/x-wav");
  p.realize();
  p.prefetch();
  p.start();

但是,即使设备处于静音模式或振动模式,它也会继续播放。如何检测设备配置文件模式?那是正常、静音还是振动模式?

【问题讨论】:

  • 我认为this answer 有你所需要的。发帖前不要忘记搜索。

标签: blackberry


【解决方案1】:

Profiles 类允许您查询配置文件的某些方面。它是 OS 7.1 中的新功能,因此对于大多数 BlackBerry 用户来说这对您没有帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多