tags:

views:

30

answers:

1

Hi,

I wanted to know how to display a webpage of a predefined url in blackberry. I would also like to get help in displaying map of a predefined location on button click. Can anyone plz help me out in determining how to do it...

A: 

displaying a web page is straightforward:

public static void navigateToSite(final String url) {  
    BrowserSession session = Browser.getDefaultSession();  
    session.displayPage(url);  
}  

and for the location, check http://docs.blackberry.com/en/developers/deliverables/11944/CS_invoking_BB_Maps_using_a_Landmark_887800_11.jsp

bryanallott
can u plz provide a working example of how to display a webpage...
Rahul Varma
not sure what more you looking for..? the code above is a working "sample" and the BB documentation as well works (ie. i have recently used it and it works)
bryanallott