开发者

Blackberry browser field implementation

I need to display any 开发者_如何学Pythonweb page as a browser field,not browser session.I am building the app in 4.7 OS.Can anyone help me with sample code?


On 4.7 you are stuck with the old browser field. Also known as Browser Field 1. It renders HTML pretty close to how it was on 4.5 devices. There is no way to take advantage of the newer browser that you invoke via browser session. So, you can forget about CSS2 or or JavaScript on the pages you want to render as a browser field. But for the fairly basic stuff it is good enough.

For the sample code - you really should check out and understand all the examples there are in the development package before starting writing the code. It will really save more time than take for learning. Look at components\samples\com\rim\samples\device\blackberry\browser\BrowserFieldDemo.java


I doubt that the problem lies with the browser field per se. Rather with communications.

The people in the post that you refer to were probably suggesting ";deviceside=true" as this gets around the "BES effect" in a simulator.

You may wish to experiment with running the MDS emulator alongside the simulator session as well. There are a number of posts that discuss the impact of deviceside and simulation. You can test in code to see if you are running a simulator so that you can programmatically influence the "BES effect".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜