안드로이드 개발 질문/답변
(글 수 45,052)
....
public class MainActivity extends TabActivity {
TabHost tabHost;
Animation translateLeftAnim;
String[] ActivityName = {"First","Second","Third"} ;
Animation translateLeftAnim;
String[] ActivityName = {"First","Second","Third"} ;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.maina); /// 인트로부분 xml입니다
startActivity(new Intent(this, Start.class)); / //start가 인트로입니다
startActivity(new Intent(this, Start.class)); / //start가 인트로입니다
//Resources res = getResources(); // Resource object to get Drawables
tabHost = getTabHost(); // The activity TabHost
TabHost.TabSpec spec; // Resusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
tabHost = getTabHost(); // The activity TabHost
TabHost.TabSpec spec; // Resusable TabSpec for each tab
Intent intent; // Reusable Intent for each tab
// Create an Intent to launch an Activity for the tab (to be reused)
intent = new Intent().setClass(this, FirstTab.class);
// Initialize a TabSpec for each tab and add it to the TabHost
spec = tabHost.newTabSpec("player").setIndicator(
new MyView(this, R.drawable.home, "photo")
).setContent(intent);
tabHost.addTab(spec);
에디터로 올리지 못해서 죄송합니다.[공지를 봐도 못따라하겟어요;]
강좌를보며 어플을 만들고있습니다.
강좌를보며 어플을 만들고있습니다.
어플자체는 에러없이 뜹니다. 헌데 인트로가 가장먼저 재생이 되질않고 매인액티비티로 가버립니다..
아무리 만져봐도 오류만 더 생기네요..
메인 코드부분입니다



