package com.example.mgmt;

import android.app.Activity;  
import android.os.Bundle;  
import android.content.Intent;  
import android.graphics.PixelFormat;  
import android.os.Handler;
import android.util.Log;
import android.view.Window;
import android.view.WindowManager;  

public class LoadActivity extends Activity {
    
    private static final int LOAD_DISPLAY_TIME = 100;  
    
    /** Called when the activity is first created. */  

    @Override public void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);  
        requestWindowFeature(Window.FEATURE_NO_TITLE); 
        getWindow().setFormat(PixelFormat.RGBA_8888);  
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);  
        setContentView(R.layout.load);  
          
        new Handler().postDelayed(new Runnable() {  
            public void run() {  
                //Go to main activity, and finish load activity  
                Intent mainIntent = new Intent(LoadActivity.this, login.class);  
                LoadActivity.this.startActivity(mainIntent);  
                LoadActivity.this.finish();  
            }  
        }, LOAD_DISPLAY_TIME);   
    }  

    @Override
    protected void onDestroy() {
    super.onDestroy();
    Log.d("MOBOX_DEBUG", "LoadActivity Destroyed");
    }
}
 

04-03 09:56