I know this post is not really new, but I thought I would give it a go and post a question anyway in hope of an answer.
I've tried running your two Java-files and the server runs without any problems, but I'm having a few problems with the client....
Those 3 lines all get the message: R.id cannot be resolved
I'm run into this problem before, but that was resolved back then by deleting import android.R; from my code... But that class isn't included in your code, so I can't seem to figure out where the problem is