Skip to content

Instantly share code, notes, and snippets.

@mrmike
Created June 6, 2013 15:06
Show Gist options
  • Save mrmike/5722221 to your computer and use it in GitHub Desktop.
Save mrmike/5722221 to your computer and use it in GitHub Desktop.
Gradle test
@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