// Always call the superclass
@Override
	public void onDestroy() {
	    super.onDestroy();  // Always call the superclass
	    // probably not needed, onStop closes the socket, which should make the thread stop (?)
	    if (recvAsyncTask != null)
	    	recvAsyncTask.cancel(true);
	    recvAsyncTask = null;
	}
@Override
public void onDestroy() {
super.onDestroy(); // Always call the superclass
// probably not needed, onStop closes the socket, which should make the thread stop (?)
if (recvAsyncTask != null)
@Override
public void onDestroy() {
super.onDestroy(); // Always call the superclass
// probably not needed, onStop closes the socket, which should make the thread stop (?)
if (recvAsyncTask != null)
recvAsyncTask.cancel(true);
recvAsyncTask = null;
}
@Override
public void onDestroy() {
super.onDestroy(); // Always call the superclass
// probably not needed, onStop closes the socket, which should make the thread stop (?)
if (recvAsyncTask != null)
recvAsyncTask.cancel(true);
recvAsyncTask = null;
}