public Connector (MainActivity mainAct) { //Add a reference to MainActivity (so the GUI can be updated from within this thread). mainActivity = mainAct; }
// Constructor public Receiver(MainActivity ma, Socket soc) { mainActivity = ma; socket = soc; }
public Connector(MainActivity mainAct) { //Add a reference to MainActivity (so the GUI can be updated from within this thread). mainActivity = mainAct; }