Back to project page ChargeMap.
The source code is released under:
Apache License
If you think the Android project ChargeMap 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.example.chargemap; //from w w w .j av a 2 s . c om import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.widget.ImageView; //Stammer fra Jacob Nordfalk public class SplashActivity extends Activity implements Runnable { Handler handler = new Handler(); static SplashActivity presentActivity = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d("Splash_akt", "aktiviteten blev startet!"); ImageView iv = new ImageView(this); iv.setImageResource(R.drawable.logo); setContentView(iv); if (savedInstanceState == null) { handler.postDelayed(this, 100); } presentActivity = this; } public void run() { startActivity(new Intent(this, MenuActivity.class)); presentActivity.finish(); presentActivity = null; } @Override public void finish() { super.finish(); handler.removeCallbacks(this); } }