From 81a225e157fc452c5557924e174be8dac54994c0 Mon Sep 17 00:00:00 2001 From: konigsoft Date: Tue, 15 Jul 2014 13:20:24 +0000 Subject: [PATCH] Part 2 of handling session --- .../com/sromku/simple/fb/SessionManager.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Simple Facebook/src/com/sromku/simple/fb/SessionManager.java b/Simple Facebook/src/com/sromku/simple/fb/SessionManager.java index f45b505..2085ba3 100644 --- a/Simple Facebook/src/com/sromku/simple/fb/SessionManager.java +++ b/Simple Facebook/src/com/sromku/simple/fb/SessionManager.java @@ -350,6 +350,30 @@ public boolean onActivityResult(Activity activity, int requestCode, int resultCo uiLifecycleHelper.onActivityResult(requestCode, resultCode, data, mFacebookDialogCallback); return true; } + /* + * code to handle session login state + */ + public boolean onResume() { + uiHelper.onResume(); + return true + } + + public boolean onPause() { + uiHelper.onPause(); + return true + } + + public boolean onDestroy() { + uiHelper.onDestroy(); + return true; + } + public boolean onSaveInstanceState(Bundle outState) { + uiHelper.onSaveInstanceState(outState); + return true + } + /* + *end of session management + */ /** * Check if we already have Active session. If such exists, then return it,