Skip to content

Instantly share code, notes, and snippets.

@ndurell
Last active January 4, 2016 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ndurell/8588607 to your computer and use it in GitHub Desktop.
Save ndurell/8588607 to your computer and use it in GitHub Desktop.
This sample activity shows how to extend the SessionM BaseActivity conveinence class.
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