Skip to content

You Can Use this Class To Connect Server Socket so easy

License

Notifications You must be signed in to change notification settings

evsurpass/SocketUtil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

You Can Use this Class To Connect Server Socket so easy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages