Last active
January 4, 2016 07:29
-
-
Save ndurell/8588607 to your computer and use it in GitHub Desktop.
This sample activity shows how to extend the SessionM BaseActivity conveinence class.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test.com.sessionm.app; | |
import test.com.sessionm.R; | |
import com.sessionm.api.BaseActivity; | |
//Just extend the BaseActivity class. | |
//This will automatically make lifecycle calls for you. | |
public class MainActivity extends BaseActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.app_activity); | |
//continue with normal activity creation... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment