Launch the contactlist activity on successfull connection
authorDa Risk <darisk972@gmail.com>
Sat, 21 Nov 2009 02:08:35 +0100
changeset 542 23e8095cace5
parent 541 a4bbfbfb586c
child 543 28d200758114
Launch the contactlist activity on successfull connection
src/com/beem/project/beem/ui/LoginAnim.java
--- a/src/com/beem/project/beem/ui/LoginAnim.java	Sat Nov 21 01:18:23 2009 +0100
+++ b/src/com/beem/project/beem/ui/LoginAnim.java	Sat Nov 21 02:08:35 2009 +0100
@@ -106,6 +106,17 @@
 	    Log.d(TAG, "Connection result? " + result);
 	    return result;
 	}
+
+	@Override
+	protected void onPostExecute(Boolean result) {
+	    if (result == null || !result) { // Task cancelled on exception
+		Log.d(TAG, "Exception or cancelation of the connection");
+	    } else {
+		LoginAnim.this.startActivity(new Intent(LoginAnim.this, ContactList.class));
+		LoginAnim.this.finish();
+	    }
+	}
+
     }
 
     private class LoginServiceConnection implements ServiceConnection {