hi im curious about htis problem.
basicly im just reading from socket a byte value 0xc0. i verify it on
the TCP packet and the value was C0.
i read the socket using ByteArray.
when i got into the debug mode and ceck the variable, the value was
-64 but the Hexadecimal value is (0xC0)
but this statement execute false
the_var = buffer.get() // buffer is ByteArray and get return 1 byte
from the buffer.
if ( var == 0xC0)
{ //it never came in to this }
but when i change it to
if (var == -64)
{ //it execute correctly }
why can this happen ?
is there any documentation i can read about this ?
thanx b4
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---