1. 화면이동할 곳의 Layout 생성


second.xml


2. Android Manifest에서 Activity 생성



Application Nodes > add... > name?


3. Layout과 Activity 연결



setContentView(R.layout.second);  //xml file name


4. 화면 전환 코드



 // 전환시


 Intent intent = new Intent(HelloWorldActivity.this, SecondActivity.class);

 startActivity(intent);


//복귀시

finish();






Posted by tenn
,