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: 6
Registered: ‎09-20-2011
My Device: BB 9930
My Carrier: -

Playbook Network I/O

Hi, I was considering developing under the Native SDK rather than the Adobe Air SDK but I am concerned about the functionality of the NDK in terms of support for network I/O (more specifically HTTP Request/Responses) even in terms of manipulating basic sockets.

 

Before I start development, I would like to know from those developing using the NDK, what functionality is provided in terms of network I/O either natively or through open source libraries. It seems as though RIM provides methods for checking whether a network connection exists so there should be some sort of support for network I/O. I noticed that a considerable amount of open source libraries are being ported over for the playbook such as Boost and QT which might support network I/O but they dont seem to be fully supported (the Boost source is non-exsistent and the ported QT source is only the core frameworks). Another possibility may be that some other library can be cross compiled to the QNX platform that supports some sort of network I/O.

 

Thank you for your help.

BlackBerry Development Advisor
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Playbook Network I/O

Libcurl can handle HTTP

http://curl.haxx.se/libcurl/
Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

Incase others fine it useful, here are my notes and some sample code for receiving an HTTP request:

 

http://www.danielbigham.ca/curl.htm

New Developer
Posts: 13
Registered: ‎04-15-2012
My Device: non-blackberry
My Carrier: non-blackberry

Re: Playbook Network I/O

I am able to use QNetworkAccessManager to do HTTP IO

Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

Highlighted
New Developer
Posts: 13
Registered: ‎04-15-2012
My Device: non-blackberry
My Carrier: non-blackberry

Re: Playbook Network I/O

What IDE are u using?
Developer
Posts: 587
Registered: ‎04-01-2009
My Device: Z10, PlayBook
My Carrier: NA

Re: Playbook Network I/O

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

Re: Playbook Network I/O

Please search for BlackBerry NDK samples on github.  

We have many samples up there including one called httpProxy which shows how to use bps to query bps for proxy information and pass that on to libcurl.