任务未完成,郁闷

本周要求完成的是手机和PC之间的通信,

研究了几天还是没什么实质成果

从书上弄了个DEMO(HttpOKMIDlet)拿来做联机测试,结果出现错误(同时也发现索爱对中文的支持实在是.....),编译的时候没问题,运行过程中出现死锁.

郁闷,继续研究

 

采用某书提供的样例,HTTP连接.结果(不区分大小写)

模拟手机:

httptest want to send and receive data using the network
this will use airtime and may result in charges.

is it ok to use airtime?

控制台:

warning: to avoid potential deadlock, operations that may block,

such as networking, should be performd in a defferent thread than the commandaction handler.

 

貌似是网络拥塞造成的,需要加个线程

 

 

导师建议:还是用socket写吧......

你可能感兴趣的:(thread,socket)