Android Open Source - ChargeMap Splash Activity






From Project

Back to project page ChargeMap.

License

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.

Java Source Code

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);
    }
}




Java Source Code List

android.UnusedStub.java
com.example.chargemap.DBConnect.java
com.example.chargemap.MapActivity.java
com.example.chargemap.MenuActivity.java
com.example.chargemap.MySQLiteHelper.java
com.example.chargemap.SQLMenu.java
com.example.chargemap.SplashActivity.java