특정 탭을 누르면 다른 tabhost를 가진 intent가 불러지게 만들고 싶습니다.

불러올 intent가 main2라고 한다면

main2의 layout에 tabhost(@android:id/tabhost...), tabs, tabcontent등을 만들어 놓고 소스 상에서 getTabHost()로 불러오면 같은 이름이 존재해서 그런지 해당 view의 id를 찾을 수 없다고 나옵니다..(1)

몇번 삽질해보다가 안될거 같아서 그냥 activity로 구현하고 findViewById를 이용해 불러오는 방식이 될까 하고 만들어봤는데 잘 안되네요..
(tabhost, tabs, tabcontent는 각각 @+id/tabhost2 이런식으로 작성해서 findViewById에서 불러올수 있게끔 만들었습니다)(2)

아래는 에러 코드입니다.

<(1)의 경우>

03-19 15:13:06.460: ERROR/AndroidRuntime(1592): Uncaught handler: thread main exiting due to uncaught exception
03-19 15:13:06.479: ERROR/AndroidRuntime(1592): java.lang.RuntimeException: Unable to start activity ComponentInfo{my.Frank/my.Frank.Main2}: java.lang.RuntimeException: Could not create tab content because could not find view with id 2131099730
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.os.Looper.loop(Looper.java:123)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread.main(ActivityThread.java:4363)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at java.lang.reflect.Method.invokeNative(Native Method)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at java.lang.reflect.Method.invoke(Method.java:521)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at dalvik.system.NativeStart.main(Native Method)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592): Caused by: java.lang.RuntimeException: Could not create tab content because could not find view with id 2131099730
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.widget.TabHost$ViewIdContentStrategy.<init>(TabHost.java:587)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.widget.TabHost$ViewIdContentStrategy.<init>(TabHost.java:578)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.widget.TabHost$TabSpec.setContent(TabHost.java:435)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at my.Frank.Main2.onCreate(Main2.java:22)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
03-19 15:13:06.479: ERROR/AndroidRuntime(1592):     ... 11 more


<(2)의 경우>

03-19 15:15:30.869: ERROR/AndroidRuntime(1676): Uncaught handler: thread main exiting due to uncaught exception
03-19 15:15:30.889: ERROR/AndroidRuntime(1676): java.lang.RuntimeException: Unable to start activity ComponentInfo{my.Frank/my.Frank.Main2}: java.lang.NullPointerException
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.os.Handler.dispatchMessage(Handler.java:99)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.os.Looper.loop(Looper.java:123)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread.main(ActivityThread.java:4363)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at java.lang.reflect.Method.invokeNative(Native Method)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at java.lang.reflect.Method.invoke(Method.java:521)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at dalvik.system.NativeStart.main(Native Method)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676): Caused by: java.lang.NullPointerException
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.widget.TabHost$ViewIdContentStrategy.<init>(TabHost.java:583)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.widget.TabHost$ViewIdContentStrategy.<init>(TabHost.java:578)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.widget.TabHost$TabSpec.setContent(TabHost.java:435)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at my.Frank.Main2.onCreate(Main2.java:16)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
03-19 15:15:30.889: ERROR/AndroidRuntime(1676):     ... 11 more