|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected void onPause() { |
|
|
protected void onPause() { |
|
|
super.onPause(); |
|
|
super.onPause(); |
|
|
communication.stopCommunication(); |
|
|
|
|
|
|
|
|
//communication.stopCommunication(); |
|
|
} |
|
|
} |
|
|
private String getLocalIpAddress() throws UnknownHostException { |
|
|
private String getLocalIpAddress() throws UnknownHostException { |
|
|
WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); |
|
|
WifiManager wifiManager = (WifiManager) getApplicationContext().getSystemService(WIFI_SERVICE); |