08-25-2011 10:28 AM
Is there a way of detecting a change in the type of data signal the blackberry is getting.
i'm controlling a socket, which has a tendency to hang my app when the phone moved between 2g and 3g signals, I get my app terminated by the OS for being unresponsive.
is there a way of detecting this change in data signa in a sensible way so i can disconnect and then reconnect my socket to avoid the hang, or a way of stopping my application hanging on the thread and getting terminated?
08-25-2011 10:45 AM
08-25-2011 10:51 AM
Interestingly i have been playing with new threads for IO, but this seemed to lose all reference to my application and cause other issues.
My Network object is what controls all network IO, and I store my Network object as a singlton in the runtime store., but on occasion i was having multiple network objects created instead of just my one.
I also had issues in that the network seems completely disconnected from my main app in terms of what it was doing.
Not sure how to structure it, is there any material i can read about how to structure this?
08-25-2011 11:13 AM