02-08-2009 10:07 AM
I use socket to open an url and download the data, the url is
m_url = socket://xx.xx.xx:2009/vdata.v
it works greate on jde 4.5 8820 emulator, but when i run it on real bb 8820 device(OS version:v126.96.36.199)
it throws an exception when call Connector.open(m_url)
it seems when Connector.open parse the host&port,
it just use ':' to simply split the m_url, and doesn't check the '\' stuff~
so can any one give me any advices?
02-08-2009 11:37 AM
An example of a socket connection with the full APN info provided:
I don't understand what the "/vdata.v" is supposed to represent in your code snippet. Whatever it is, I don't think it belongs there.
You should review these documents from the knowledgebase:
02-08-2009 01:23 PM
LOL- I'm glad it didn't throw an assertion failure suggesting OCD attitudes here too.
Number conversion in java is annoying since atoi in C seems to ignore trailing junk and I hate
to keep using trim(). In any case, you make a socket connection to an IP address or perhaps
an interface, not a url.