Android Manifest - "Has No Default Constructor" With Activity/Runnable Class
Android Activity
classes must have a default constructor that takes no parameters. Your ChatConnect
class has this constructor:
public ChatConnect(Socket s){ socket = s;}
But the system is looking for one like this:
public ChatConnect(){}
and not finding one, which is why it's crashing.
public ChatConnect(Socket s){ socket = s;}
Remove this constructor.Your activity has constructor. do not define constructor for activity.