Solved

Create icon to display locally saved web page on Blackberry

Posted on 2006-07-14
3
378 Views
Last Modified: 2010-05-18
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?
0
Comment
Question by:9thTee
3 Comments
 
LVL 3

Accepted Solution

by:
bhinshawnc1 earned 500 total points
ID: 17189653
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.

http://www.blackberry.com/developers/journal/jan_2005/push_me.shtml

http://www.blackberry.com/developers/journal/july_2005/net_a_simple_push_application.shtml

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;
     }
     else
     {
          if ( browserDescriptors.length <=0 ) {
               retval = false;
          } else {
               String[] args = {"url", "http://URL2LAUNCH.COM"};

               ApplicationDescriptor descriptor = new ApplicationDescriptor
               (
                    browserDescriptors[0],
                    "url invocation", args,
                    null, -1, null, -1,
                    ApplicationDescriptor.FLAG_SYSTEM
               );

               try
               {
                    ApplicationManager.
                    getApplicationManager().
                    runApplication(descriptor);
               }
               catch(ApplicationManagerException e)
               {
                    retval = false;
               }
          }
     }
}


v4.0 systems

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

//now launch the URL
browserSession.displayPage("http://www.BlackBerry.com");


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
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Blackberry issue :  JVM 517 RESET 8 49
Support for Blackberry enteprise express 2 375
BES10 Not allowing me to login 3 390
Blackberry device unable to recieve emails 5 149
I felt secure communicating on the BBM... Till some time back!! It was probably the fact that the BBM messages do not travel over the internet was making me feel 'secure' about it, or was it the fact that BBM only works on a BlackBerry Devices a…
Last night I received a weird phone call, from a number I didn’t recognized.  I answered it and no one responded back so I hung up.   Didn’t look at my phone until my husband said “Your phone is doing something weird”.   I had what I’ll consider the…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question