开发者

Setting a custom browser as default browser in blackberry

I have made my own browser - now what I am trying to do is set my own browser as the 开发者_如何学运维default browser so that when a user clicks on the blackberry default browser, my brower will open.

Is it possible to do this?

Thanks in advance


Unfortunately, you can't replace the system browser with your own browser.

And polling in the background like the other answer says is bad idea for several reasons, including needless use of your battery charge.


Interesting question :)

I cannot think of a way to do it exactly as you've asked... but you could try something like poll from the background at a fairly quick interval using ApplicationManager.getApplicationManager().getVisibleApplications();

And if the web browser comes to the foreground your process launches your dialog. E.g. "Would you like to use my super-duper browser instead? [yes] [no]"

Cheers

Ray

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜