Back to project page scala1_android.
The source code is released under:
Copyright (c) 2012, Magnetic Bear Studios Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
If you think the Android project scala1_android 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 com.magneticbear.scala1; //from ww w .j a va2s .com import java.util.Timer; import java.util.TimerTask; import android.os.AsyncTask; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.view.Menu; public class Splash extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); new AsyncTask<Void, Void, Void>() { @Override protected Void doInBackground(Void... params) { ServerData.pull(); UserData.load_or_create(getBaseContext()); return null; } @Override protected void onPostExecute(Void result) { Intent intent = new Intent(getBaseContext(), Home.class); startActivity(intent); finish(); super.onPostExecute(result); } }.execute((Void)null); } // Dont show the options menu @Override public boolean onPrepareOptionsMenu(Menu menu) { return false; } }