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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Contributor
kmudov
Posts: 5
Registered: ‎04-27-2011
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

Please use plain text.
Developer
BGmot
Posts: 966
Registered: ‎11-24-2011
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.

Please use plain text.
Developer
taylortbb
Posts: 137
Registered: ‎10-26-2010
My Carrier: Rogers

Re: Browser control and HTTP connection

Please use plain text.
New Contributor
kmudov
Posts: 5
Registered: ‎04-27-2011
My Carrier: Vodafone

Re: Browser control and HTTP connection

Thanks for the suggestions!

Please use plain text.
BlackBerry Development Advisor
anhu
Posts: 53
Registered: ‎10-26-2011
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. 

 

 

 

 

 

 

Please use plain text.
Developer
dineshaggarwal
Posts: 110
Registered: ‎04-28-2010
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

Please use plain text.
Developer
HorizonXP
Posts: 131
Registered: ‎03-28-2011
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!
Please use plain text.