• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 389
  • Last Modified:

Create icon to display locally saved web page on Blackberry

Is there a way to make an icon that when clicked will open up a locally saved web page? For example, if you save a web page, that page can be accessed in the Messages application with your email. If I have a frequently used, locally saved web page, it would be handy to have an icon that I could click that would open that locally saved web page, instead of going into Messages, finding the saved web page and opening it there.

I have seen examples of how to make an icon open a regular web page but anyway to open a saved page?

Any ideas?
1 Solution
Here's a link to RIM dev journal on how to push web content. Check out the browser content cache push section. This would allow you to create an icon and put the content into cache.



Another option would be invoking the default browser through a basic app:

v3.7 systems

boolean retval = true;

int handle = CodeModuleManager.getModuleHandle("net_rim_bb_browser_daemon");

if (handle <=0 ) {
     retval = false;
} else {
     ApplicationDescriptor[] browserDescriptors = CodeModuleManager.getApplicationDescriptors(handle);

     if (browserDescriptors == null ) {
          retval = false;
          if ( browserDescriptors.length <=0 ) {
               retval = false;
          } else {
               String[] args = {"url", "http://URL2LAUNCH.COM"};

               ApplicationDescriptor descriptor = new ApplicationDescriptor
                    "url invocation", args,
                    null, -1, null, -1,

               catch(ApplicationManagerException e)
                    retval = false;

v4.0 systems

//Get the default session
BrowserSession browserSession = Browser.getDefaultSession();

//now launch the URL

Depending on your needs it might be easier to go to the browser,bookmark the page  into a folder and save for offline content. Then when you want to access it go browser, k and then you're right at the bookmark screen
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now