Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 5
Registered: ‎04-27-2011
My Device: 9800
My Carrier: Vodafone

Browser control and HTTP connection

Hi,

 

I tried to find RenderingSession and HttpConnection classes alternatives in the Native SDK but without success. I just need some kind of web browser control and simple http connection to download files over the Internet. Any suggestions?

 

Thanks,

Kal

Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Browser control and HTTP connection

I don't think we have anything ready in Native SDK for handling http (though you can write it from scratch in C). Use AIR.

Developer
Posts: 137
Registered: ‎10-26-2010
My Device: Bold 9900 + PlayBook
My Carrier: Rogers

Re: Browser control and HTTP connection

New Contributor
Posts: 5
Registered: ‎04-27-2011
My Device: 9800
My Carrier: Vodafone

Re: Browser control and HTTP connection

Thanks for the suggestions!

Retired
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook
My Carrier: Rogers

Re: Browser control and HTTP connection

Hi, 

 

Please see navigator_invoke method in include/bps/navigator.h. 

in the ndk, to call up the browser, youi can pass in a URI to that method. 

 

If you're just looking to grab data via HTTP, we have libcurl present. 

Please see include/curl/curl.h. 

 

 

 

 

 

 

Developer
Posts: 112
Registered: ‎04-28-2010
My Device: 8520
My Carrier: AirTel

Re: Browser control and HTTP connection

hey anhu,

thanks for the information, what can i use in BB OS 10 for http connection?

 

Thanks & Regards,

Dinesh

Developer
Posts: 133
Registered: ‎03-28-2011
My Device: BlackBerry 9900 & PlayBook
My Carrier: Bell

Re: Browser control and HTTP connection

Anhu has told you what to use.

 

If you want to open a web page, use the navigator_invoke method to tell the native browser to open a URL that you specifiy.

 

If you need to send/receive data over HTTP in your application, you can use libcurl. 


Founder of Pulsecode Inc. and taab
Authomator - Two-factor authentication codes on BlackBerry 10 - http://www.xitijpatel.com/ - Follow @xitijpatel
Is there a helpful or useful post in this thread? Click the thumbs up on it so that other people can find it more easily!