BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-30-2007, 06:34 PM   #1 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7130e
PIN: N/A
Carrier: Verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default reliable data upload

Please Login to Remove!

I am trying to find a way to reliably upload data from the Blackberry. E.g., if the device is out of range of a cell tower, I would like it to upload the data as soon as it gets back into range. I'd preferably like to upload via HTTPS POST mechanism. I was under the impression that functionality such as this existed in the standard API. If it is, if someone could point me in the right direction, that would be extremely helpful. If not, if somone could suggest an alternative, that would also be great.

Thanks!
Offline  
Old 05-01-2007, 06:05 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

i've done it like you mention in the past. when the user tries to upload if there's no signal the app would save the data to the persistent store and periodically poll the signal strength until there was a signal at which point it tries the upload witout the user having to do anything, it wasn't too smart, if an upload failed the whole transaction failed > it saved to store and tried again from the beginning.

don't think there's anything in the api that handles this for you but i've happily been wrong many times before.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 05-01-2007, 09:24 AM   #3 (permalink)
New Member
 
Join Date: Apr 2007
Model: 7130e
PIN: N/A
Carrier: Verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your reply.

Do you know how much of an impact the periodic polling can affect the battery life of the device? I understand that actually doing the transmission itself over and over trying to get the data transmitted would eat the battery, but does checking the radio status and polling for data connectivity frequently eat the battery life as well?

As an alternative, I'm starting to think that the Mail API will do essentially what I'm asking.
Offline  
Old 05-04-2007, 01:07 AM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Skipper_Joe's Avatar
 
Join Date: Jan 2007
Location: Kharkov, Ukraine
Model: 8300
Carrier: N/A
Posts: 237
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

We did something similar to what is described by jfisher. We also gradually increase polling interval if there is no network and request to server failed: 1 second, then in 5 seconds and ... up to 5 minutes. In this mode it doesn't stress battery too much.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.