Solved

Create icon to display locally saved web page on Blackberry

Posted on 2006-07-14
3
375 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now