package vn.edu.voer.activity;

import java.io.IOException;

import vn.edu.voer.R;
import vn.edu.voer.common.GlobalValue;
import vn.edu.voer.service.AuthenticationService;
import vn.edu.voer.utility.Constant;
import vn.edu.voer.utility.FileHelper;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;

public class SplashActivity extends Activity {
	private static final String TAG = SplashActivity.class.getSimpleName();

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.activity_splash);

		// Copy database from assets to device storage
		try {
			FileHelper.copyAssetFileToInternalStorage(this, getString(R.string.db_name));
		} catch (IOException e) {
			Log.i(TAG, e.toString());
		}

		GlobalValue.constructor(this);

		// new Handler().postDelayed(new Runnable() {
		// @Override
		// public void run() {
		// startActivity(new Intent(getBaseContext(), MainActivity.class));
		// overridePendingTransition(R.anim.slide_in_right,
		// R.anim.slide_out_left);
		// finish();
		// }
		// }, 2000);

		new AuthenticationService().execute(Constant.URL_AUTHEN);
	}
	
}

@@ -143,75 +143,56 @@
 oer.
-service.AuthenticationService;%0D%0Aimport vn.edu.voer.util
+utility.FileHelper;%0D%0Aimport android.app.Activ
 ity
-.Constant
 ;%0D%0Ai
@@ -201,38 +201,30 @@
 ort 
-vn.edu.voer.utility.FileHelper
+android.content.Intent
 ;%0D%0Ai
@@ -233,36 +233,33 @@
 ort android.
-app.Activity
+os.Bundle
 ;%0D%0Aimport an
@@ -259,38 +259,39 @@
 port android.os.
-Bu
+Ha
 ndle
+r
 ;%0D%0Aimport androi
@@ -799,19 +799,16 @@
 );%0D%0A%0D%0A%09%09
-// 
 new Hand
@@ -845,19 +845,17 @@
 () %7B%0D%0A%09%09
-// 
+%09
 @Overrid
@@ -859,19 +859,17 @@
 ride%0D%0A%09%09
-// 
+%09
 public v
@@ -883,19 +883,18 @@
 () %7B%0D%0A%09%09
-// 
+%09%09
 startAct
@@ -953,19 +953,18 @@
 s));%0D%0A%09%09
-// 
+%09%09
 override
@@ -1003,22 +1003,16 @@
 n_right,
-%0D%0A%09%09//
  R.anim.
@@ -1031,19 +1031,18 @@
 ft);%0D%0A%09%09
-// 
+%09%09
 finish()
@@ -1050,19 +1050,14 @@
 %0D%0A%09%09
-// 
+%09
 %7D%0D%0A%09%09
-// 
 %7D, 2
@@ -1061,24 +1061,26 @@
 , 2000);%0D%0A%0D%0A
+//
 %09%09new Authen

Reset to default splashact