안드로이드 일정시간 후 Activity 변경

첫 화면에 로고를 보여준 후 가입 화면으로 넘어가기


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ;
 
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
 
public class LogoActivity extends Activity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.logo);
        
        
        Handler hand = new Handler();
        
        hand.postDelayed(new Runnable() {
            
            @Override
            public void run() {
                // TODO Auto-generated method stub
                 Intent i = new Intent(LogoActivity.this, JoinActivity.class);
                 startActivity(i);
                 finish();
 
            }
        }, 2000);
        
 
    }
}
 
cs


+ Recent posts