i'm facing a unknown problem, and i cant even search from internet or any resources.
i try to send a string to my mobile device by such a declaration,
String str="abc;cde;................" a 256 bytes string
i able to send to mobile phone and split it to multiple line base on ";"
[Server]
out.write(str.getBytes());
[Client]
buf = new byte[1024];
baos=new ByteArrayOutputStream(1024);
int data=0;
while((data=in.read(buf))!= -1)
baos.write(buf,0,stringlength);
------------------------------------------------------------------------
but i cant recieved a string by such declaration
String str=getValue();
(getValue will collect others string from multiple computer database using socket connection)
[Server] and [Client] method exactly same v i declare above.
and mobile phone comes out such a error (run time error while start perform
while((data=in.read(buf))!= -1)
baos.write(buf,0,stringlength);
-----
App.Closed
jes-d4-java-comms@142106
jes-ea-java-comms@142122
jes-100-java-comms@142120
jes-d9-java-comms@142161
jes-ef-java-comms@142161
jes-105-java-comms@142161
jes-125-java-comms@142161
jes-13c-java-comms@142161
jes-152-java-comms@14215d
jes-170-java-comms@142163
jes-1a5-java-comms@14217a
jes-1d2-java-comms@142163
jes-26b-java-comms@142163
jes-2a0-java-comms@142161
jes-1a8-java-comms@142161
jes-1ea-java-comms@142161
jes-202-java-comms@14217f
jes-237-java-comms@142161
jes-2b6-java-comms@142161
above error is base on same testing, same value, but everytime will comes out different error.
jes-xxx-java-comms@1421xx
it will close all my program... in mobile device
i already stuck here for few weeks.
i just wondering, "String str" that i declare differently will comes out such a strange prob.
String str=" xxxxxxxxx";
and
String str= getValue();
i print out the value, is exatcly the same........ and the bytes size also same....
really urgent for me..