little change

1. change the way socketmanager notice the mainActivityHandler.
2. fix some bugs in NokeyboardActivity