Started redesign and testing on the Galaxy Nexus phone. onDestroy() crash fixed.

This commit is contained in:
2013-11-25 14:42:31 -04:30
parent 99a17242cf
commit 48fff01369
2 changed files with 5 additions and 15 deletions

View File

@@ -37,7 +37,6 @@ import android.widget.Toast;
* datagram carrying the string "NxtAR server here!" is received.
*
* @author miky
*
*/
public class MainActivity extends Activity implements WifiOnDialogListener, ConnectRobotDialogListener{
// Cosntant fields.
@@ -107,6 +106,7 @@ public class MainActivity extends Activity implements WifiOnDialogListener, Conn
@Override
public void onDestroy(){
super.onDestroy();
if(btManager.isConnected()){
try{
btManager.stopConnection();