Update client/MainActivity.java

update the method onTouch
make the method more efficient and short.
Merge pull request #15 from nirle/master

update mainActivity