TabHost에서 다른 패키지에 있는 Activity를 Intent를 이용해서 호출해서 특정 Tab에 보여줄려고 하는데

다른 package에 있는 것을 호출이 안되네요...

 

        ... 전 략 ...

        mTab = getTabHost();
       
        Intent it = new Intent(Intent.ACTION_MAIN);
        ComponentName comp = new ComponentName("com.stopwatch", "com.stopwatch.StopWatchActivity");
        it.setComponent(comp);
        mTab.addTab(mTab.newTabSpec("StopWatch").setIndicator("스탑워치").setContent(it));  //실행에러.... ????

밑줄 친 부분에서 Runtime 에러가 발생하네요... -_-;;;

Please help me.

감사합니다.

 

 

 

 

 

profile

가끔은 뒤도 돌아보자... 이 만큼 왔구나...!