Using Java RDP for Android

I can use proper JavaRDP without getting any issues.
However, when moving it to modify the Java to Android, I get an error with receiving the byte arrays.
It started changing in size.
What could be the solution for this?
Any help would be appreciated.
Thanks.
