?
Solved

Create icon to display locally saved web page on Blackberry

Posted on 2006-07-14
3
Medium Priority
?
387 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
1 Comment
 
LVL 3

Accepted Solution

by:
bhinshawnc1 earned 2000 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

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

When a user’s mailbox is first created and his Blackberry account enabled how do we provision the device and what happens in the background? Stage 1 – Activation The user of the BlackBerry device types the email address and activation password i…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

862 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