Reputation: 31
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
Upvotes: 3
Views: 313
Reputation: 3505
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.
Upvotes: 3
Reputation: 3065
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
Upvotes: 2