Created
June 6, 2013 15:06
-
-
Save mrmike/5722221 to your computer and use it in GitHub Desktop.
Gradle test
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
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
requestWindowFeature(Window.FEATURE_ACTION_MODE_OVERLAY); | |
super.onCreate(savedInstanceState); | |
mAppPreferences = new AppPreferences(this); | |
mUserPreferences = new UserPreferences(this); | |
DownloadHelper.startAsyncDownload(getApplicationContext(), | |
AppConsts.ACTION_SYNC, AppContract.Category.CONTENT_URI, null, | |
false); | |
if (!mUserPreferences.isLoggedIn()) { | |
startActivity(new Intent(AppConsts.ACTION_LOGIN)); | |
finish(); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment