src/com/beem/project/beem/ui/ChangeStatus.java
changeset 604 61f6095183a4
parent 599 cdadf4e39f99
child 613 58b8abc8719b
equal deleted inserted replaced
603:6425dcd8ebb6 604:61f6095183a4
    67 import com.beem.project.beem.BeemService;
    67 import com.beem.project.beem.BeemService;
    68 import com.beem.project.beem.R;
    68 import com.beem.project.beem.R;
    69 import com.beem.project.beem.service.aidl.IXmppFacade;
    69 import com.beem.project.beem.service.aidl.IXmppFacade;
    70 import com.beem.project.beem.utils.BeemBroadcastReceiver;
    70 import com.beem.project.beem.utils.BeemBroadcastReceiver;
    71 import com.beem.project.beem.utils.Status;
    71 import com.beem.project.beem.utils.Status;
       
    72 import com.beem.project.beem.utils.BeemConnectivity;
    72 
    73 
    73 /**
    74 /**
    74  * This Activity is used to change the status.
    75  * This Activity is used to change the status.
    75  * @author nikita
    76  * @author nikita
    76  */
    77  */
   145      * {@inheritDoc}
   146      * {@inheritDoc}
   146      */
   147      */
   147     @Override
   148     @Override
   148     protected void onResume() {
   149     protected void onResume() {
   149 	super.onResume();
   150 	super.onResume();
       
   151 	if (!BeemConnectivity.isConnected(getApplicationContext())) {
       
   152 	    startActivity(new Intent(this, Login.class));
       
   153 	}
   150 	bindService(new Intent(this, BeemService.class), mServConn, BIND_AUTO_CREATE);
   154 	bindService(new Intent(this, BeemService.class), mServConn, BIND_AUTO_CREATE);
   151     }
   155     }
   152 
   156 
   153     /**
   157     /**
   154      * {@inheritDoc}
   158      * {@inheritDoc}