LogoActivity.java:java
package com.example.fragment;android
import com.example.fragment.R;app
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;ide
public class LogoActivity extends Activity implements Runnable{
Long startTime;
@Override
protected void onCreate(Bundle savedInstanceState) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
super.onCreate(savedInstanceState);
startTime=System.currentTimeMillis();
setContentView(R.layout.logo);
new Thread(this).start();
}this
@Override
public void run() {
while(System.currentTimeMillis()-startTime<2000){//┐пок¤н╩Й2├в
Thread.yield();
}
Intent intent=new Intent(LogoActivity.this,MainActivity.class);
startActivity(intent);
finish();
}it
}
class