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

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!

BlackBerry Development Advisor
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!