# SocketUtil **Repository Path**: chen3441251/SocketUtil ## Basic Information - **Project Name**: SocketUtil - **Description**: You Can Use this Class To Connect Server Socket so easy - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # SocketUtil You Can Use this Class To Connect Server Socket so easy step 1 setting ip and port step 2 Create Class like this public class MyApplication extends Application insert the code to Oncreate mSocketUtil = new SocketUtil(mContext); mSocketUtil.start(); step 3 you can use mSocketUtil in your Activity like This mSocketUtil = ((MyApplication) getApplication()).mSocketUtil; mSocketUtil.mHandler = socketHandler;//you must declare handler String res = mSocketUtil.Send("Login");