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.
09-20-2009 09:11 PM
I've created my own http thread that I subclass whenever I need to make some API calls, download images, what have you.. As it's been evolving I've thrown in code to retry connections, deal with dropped connections, etc., but it's all been on the fly and isn't bulletproof. I am about to sit down and design an http connection pool system from scratch since sadly there is nothing resembling that in the SDK. Before I begin on this endevour I wonder if anyone has a class/classes they use for HTTP that they are proud of and would like to share. It would make me and future community members eternally grateful
09-21-2009 01:19 PM
Lol, did it sound like I was being sarcastic?
Seriously though, it would be such a boon to developers if RIM could include a robust http/sockets class. Otherwise you're asking every developer to reinvent the wheel. Some key features would be:
- A thread pool for connections that is optimized in size for the blackberry.
- Connection timeout retries. Would be nice to have it configurable per request how many times connection should be attempted.
- A timeout mechanism on input/outputstreams, again configurable per request.
- Configurable retries on connectionClosedExceptions.
09-21-2009 01:36 PM
09-22-2009 05:14 AM
Don't get me wrong, I sincerely wish you good luck with this endeavor. It will be pretty complicated to build one library that satisfies the diverse needs of various projects while still working fine considering the various limited resources on a BlackBerry (e.g., thread and conneciton limit come to mind) and the open-ended nature of various I/O errors where you cannot reliably decide whether it's a transient or a permanent issue. However, it would definitely be useful to have a library like that. Some of the stuff has already been implemented by RIM in JDE v5.0.0 (see net.rim.device.api.io.transport and net.rim.device.api.io.transport.options packages).
09-22-2009 05:30 AM - edited 09-22-2009 05:33 AM