equal
deleted
inserted
replaced
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} |