equal
deleted
inserted
replaced
42 private ProgressDialog progressDialog = null; |
42 private ProgressDialog progressDialog = null; |
43 |
43 |
44 private boolean mIsConnected = false; |
44 private boolean mIsConnected = false; |
45 private final ServiceConnection mServConn = new BeemServiceConnection(); |
45 private final ServiceConnection mServConn = new BeemServiceConnection(); |
46 private IXmppFacade xmppFacade = null; |
46 private IXmppFacade xmppFacade = null; |
47 |
47 |
48 private SharedPreferences settings = null; |
48 private SharedPreferences settings = null; |
49 private boolean isConfigured = false; |
49 private boolean isConfigured = false; |
50 |
50 |
51 private Button mButtonLogin = null; |
51 private Button mButtonLogin = null; |
52 |
52 |
53 /** |
53 /** |
54 * Create an about "BEEM" dialog |
54 * Create an about "BEEM" dialog |
55 */ |
55 */ |
109 @Override |
109 @Override |
110 public void onStart() { |
110 public void onStart() { |
111 super.onStart(); |
111 super.onStart(); |
112 Log.e("LOGIN", "BINDSERVICE"); |
112 Log.e("LOGIN", "BINDSERVICE"); |
113 isConfigured = settings.getBoolean(getString(R.string.PreferenceIsConfigured), false); |
113 isConfigured = settings.getBoolean(getString(R.string.PreferenceIsConfigured), false); |
|
114 |
114 if (isConfigured) |
115 if (isConfigured) |
115 bindService(Login.SERVICE_INTENT, mServConn, BIND_AUTO_CREATE); |
116 bindService(Login.SERVICE_INTENT, mServConn, BIND_AUTO_CREATE); |
116 else |
117 else |
117 mButtonLogin.setEnabled(false); |
118 mButtonLogin.setEnabled(false); |
|
119 |
118 } |
120 } |
119 |
121 |
120 private class BeemConnectionListener extends IBeemConnectionListener.Stub { |
122 private class BeemConnectionListener extends IBeemConnectionListener.Stub { |
121 |
123 |
122 private class ErrorRunnable implements Runnable { |
124 private class ErrorRunnable implements Runnable { |