来电时的 PhoneScreen 问题
我想在收到屏幕时向电话屏幕添加一个字段。我使用以下代码成功完成了此操作:
public void callIncoming(int callId) {
PhoneScreen ps = new PhoneScreen(Call, UiApplication.getApplication());
PhoneScreenHorizontalManager manager = new PhoneScreenHorizontalManager();
LabelField label = new LabelField("Call Received");
manager.add(label);
ps.add(manager);
ps.setScreenBackground(Color.RED);
ps.sendDataToScreen();
}
我在以下设备上尝试了此代码: BB Mini Curve、Bold 4、Bold 2 和 Curve,这就像一个魅力,具有我想要的所有功能。红色背景出现在我可以绘制字段的区域中
我在这些手机上尝试过,但标签字段没有出现:Torch、Bold3
在这些手机上,当我向屏幕添加数据时,我猜这些字段正在出现在铃声关闭通知下方。对于这些设备,不会出现背景......所以这是一个主要问题。
如何解决这个问题并使这些字段也出现在这些手机上?
提前致谢
I want to add a field to the Phone Screen when a screen is received. I successfully made this using the following code:
public void callIncoming(int callId) {
PhoneScreen ps = new PhoneScreen(Call, UiApplication.getApplication());
PhoneScreenHorizontalManager manager = new PhoneScreenHorizontalManager();
LabelField label = new LabelField("Call Received");
manager.add(label);
ps.add(manager);
ps.setScreenBackground(Color.RED);
ps.sendDataToScreen();
}
I tried this code on the following devices:
BB Mini Curve, Bold 4, Bold 2 and Curve and this works like a charm with all the functionality I want. A background colored red is appearing in the area where I can draw fields
I tried it on these phones and the label field did not appear: Torch, Bold3
On these phones, When I add data to the screen, I guess that these fields are appearing below the ringer off notification. With these devices, no Background is appearing... So this is a main issue.
How to solve this and make the fields appear on these phones too?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没有答案,但在这里启动了一个线程:
http://supportforums.blackberry.com/t5/Java-Development/PhoneScreenDemo-not-displaying-information-on-os6/mp/1450769#M184811
我已开立 RIM 票证并会在我得到信息后分享。
据我所知,PhoneScreen 存在很大问题,并且跨设备的支持不一致。
使用 isSupported() 只会确定设备屏幕类型是否支持 API(根据 RIM Jira 票证需要 SVG),而不是确定它是否实际工作。
I don't have the answer, but have started a thread here:
http://supportforums.blackberry.com/t5/Java-Development/PhoneScreenDemo-not-displaying-information-on-os6/m-p/1450769#M184811
I've opened a RIM ticket and will share info as I get it.
As far as I can see PhoneScreen has big issues and is not consistently supported across devices.
Using isSupported() will only determine if the device screen type supports the API, (SVG is required according to RIM Jira ticket), not if it will actually work.