KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have this interface in my activity. public interface LogoutUser { void logout(); } My fragment implements this interface, so in my fragment, I have this: @Override public void logout() { // logout } In my activity I call mLogoutUser.logout(); Where mLogoutUser is of the type LogoutUser interface. My issue is the mLogoutUser object that is null. How can initialize it? Thank you!
Tags (comma-separated)
Save Edits
Cancel