Back to project page BsuirSchedule.
The source code is released under:
Copyright 2012 Andrei Senchuk Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softwar...
If you think the Android project BsuirSchedule listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.taviscaron.bsuirschedule.activity; //from ww w. j a v a 2s.c o m import net.taviscaron.bsuirschedule.core.Constants; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); String currentGroup = sp.getString(Constants.CURRENT_GROUP_PREF_KEY, null); Intent intent = null; if (currentGroup != null) { intent = new Intent(this, LessonsListActivity.class); intent.putExtra(LessonsListActivity.GROUP_NAME_EXTRA, currentGroup); } else { intent = new Intent(this, ManageSchedulesActivity.class); } intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); startActivity(intent); } }