I’m writing a app for the blackberry and would like to call up the built in browser, can you do this?
If you are building a Midlet, use the platformRequest method to do this.
If you are building a blackberry app, you can use:
BrowserSession browser = Browser.getDefaultSession();
browser.displayPage(url);
Related
I want to display a webpage in my app using dart. How would I do this, so that the user isn't directed out of the app but views it in a way similar to webview for android?
You can use webview plugin:
https://pub.dartlang.org/packages/flutter_webview_plugin
Or
URL luncher:
https://pub.dartlang.org/packages/url_launcher
I'm developing two versions of app(android, and ios)
In android when i open url from email the system gives me several options of opening it: browser, my app.
I can open the url(http://www.someurl/path?param1=2¶m2=1) with my application and get the params. Is there a way to do it in ios? thanks in advance
I am working on an app for blackberry(jre 6.o & os 7.x) using browse field and app is working fine. One thing I want that, when click on a link in app and link url(domain) is different from the url which is invoked in app using browse field, open link in native blackberry browser. Please help me how to do this. Thanks.
You can extend ProtocolController class and override its handleNavigationRequest() method to do a custom implementation.
usage-
oBrowserField.getConfig().setProperty(BrowserFieldConfig.CONTROLLER,
new CustomProtocolController(oBrowserField));
Where oBrowserField is BrowserField instance
And CustomProtocolController is custom class extending ProtocolController
This might be a easy question but i couldn't find solution. I want to open AppWorld by clicking a button in my BB application. For example when user clicks this button Appworld will show "Facebook Application" page. Can i do this?
In Android platform this line launches GooglePlay for Facebook App. Does BlackBerry supports this kind of method?
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.facebook.katana")));
Here is a simple way to do this:
Browser.getDefaultSession().displayPage("http://appworld.blackberry.com/webstore/content/2360/?lang=en");
Above code will invoke the browser in the application and open the BlackBerry App World, I tested it in device and it's perfectly working. For now I put a Whats App messenger link, but you can customize the link according to your requirement.
You can open App World from your BB application directly using the following code. This code avoids opening the browser first.
Registry registry = Registry.getRegistry(this.getClass().getName());
Invocation invocation = new Invocation(null, null,
"net.rim.bb.appworld.Content",
false, ContentHandler.ACTION_OPEN);
invocation.setArgs(new String[] { /* app id in appworld */ });
registry.invoke(invocation);
i am working on a application where i have image onwhich when u click it gets navigated to browser with a link but it dont display web page. now i need a code for just displaying a simple web page in blackberry.. is it something to do with simulator and device as i am working with simulator.So kindly help me with it....I am newbie to blackberry.. thank you in advance for help..
The following code will open up the native browser to the URL you specify:
Browser.getDefaultSession().displayPage(url);
String url = "http://www.google.ca";
BrowserSession browserSession = Browser.getDefaultSession();
browserSession.displayPage(url);
browserSession.showBrowser();
There is a known issue where the browser won't automatically display in various firmware versions. To get around this, simply call browserSession.showBrowser()