i am using Facebook sdk in my android project and in my main activity there is a button for Login clicking on that button will make user login to Facebook and the callback return to the Main Activity.
All works Fine.
Now i want when the callback is done, i need to change the Text of that Button from Login to Logout..
how can i do that?
what state will be called of my main activity on call back.. i mean onResume() or onRestart() or what ??
please help me doing this..
and make me understand how can it be possible…
i have read enough documentations and tutorial for Android lifecyle..but still i couldn’t find anyway to do this.
Thank You,
Mayur Parekh
This is what i have done in my main activity inside the button click event this will call the Facebook Dialog for log in and if after that login is success full will do the task same for login fail.
I am using default FACEBOOK SDK in my project.