package com.sabirjan.android;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;

public class Logo_Activity extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.log);
		 	
		ImageView img=(ImageView)this.findViewById(R.id.log_bg);
		
		AlphaAnimation alpash=new AlphaAnimation(0.1f,1.0f);
		alpash.setDuration(3000);
		img.startAnimation(alpash);
		alpash.setAnimationListener(new AnimationListener(){

			@Override
			public void onAnimationEnd(Animation animation) {
				// TODO Auto-generated method stub
				Intent in=new Intent();
				in.setClass(Logo_Activity.this,BilKan.class);
				startActivity(in);
			//	overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right); 
				finish();
			}

			@Override
			public void onAnimationRepeat(Animation animation) {
				// TODO Auto-generated method stub
				
			}

			@Override
			public void onAnimationStart(Animation animation) {
				// TODO Auto-generated method stub
				
			}
			
			
		});
	}
	

}
