안녕하세요
이제 시작한 초보개발자입니다.

TabHost, TabWedet, FrameLayout를 이용한 예제를 하고있습니다.nullpointer.JPG
근데 Main.xml 화면UI부분에
null pointer exception : null 이라고만나옵니다.

예제파일을 받아서 임포트해서 띄어봐도..제대로 나오는데..
제가 따라할때는 안됩니다.

main.xml에서 레이아웃 화면에서 TabHost, TabWedet, FrameLayout 을 직접 마우스로
끌어다가도 해보고
xml로 직접 코딩도 해보았습니다. 근데 결과는 마찬가지입니다.

제가 몬가 사용을 잘못하고 있는건지요..
어제부터 계속 매달렸는데..

고수님들이 손길을 기다려봅니다..ㅜㅜ
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical">
  
  <TabHost android:id="@+id/tabhost"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <TabWidget android:id="@android:id/tabs"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
  />
  <FrameLayout android:id="@android:id/tabcontent"
   android:layout_width="fill_parent"
   android:layout_height="fill_parent"
   android:paddingTop="62px">
   <AnalogClock android:id="@+id/tab1"
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"
    android:layout_centerHorizontal="true"
   />
   <Button android:id="@+id/tab2"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:text="단순한 버튼"
   />
  </FrameLayout>
 </TabHost>
  
 </LinearLayout> 

그리고..제가 xml을 편집할때 Console  창에 나오는 것들입니다.
java.lang.NullPointerException
 at android.widget.TabWidget.initTabWidget(TabWidget.java:104)
 at android.widget.TabWidget.<init>(TabWidget.java:69)
 at android.widget.TabWidget.<init>(TabWidget.java:64)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
 at java.lang.reflect.Constructor.newInstance(Unknown Source)
 at android.view.LayoutInflater.createView(LayoutInflater.java:500)
 at android.view.BridgeInflater.onCreateView(BridgeInflater.java:77)
 at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
 at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:122)
 at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
 at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
 at android.view.LayoutInflater.inflate(LayoutInflater.java:296)
 at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:396)
 at com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEditor.computeLayout(Unknown Source)
 at com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEditor.recomputeLayout(Unknown Source)
 at com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEditor.activated(Unknown Source)
 at com.android.ide.eclipse.adt.internal.editors.layout.LayoutEditor.pageChange(Unknown Source)
 at org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPart.java:291)
 at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
 at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)
 at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3256)
 at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2045)
 at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:323)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1311)