1
我似乎在檢查我的Eclipse上的模擬器上的Android應用程序有點問題。當應用程序準備運行時,我收到一條消息:不幸的是,應用程序名稱已停止。不幸的是,應用程序已停止在Android模擬器中 - Eclipse
下面是代碼:
<TabHost
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</TabWidget>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:id="@+id/tab1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Textview
android:id="@+id/textview1"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:text="Welcome to Ambius" >
</Textview>
</LinearLayout>
<LinearLayout
android:id="@+id/tab2"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
<LinearLayout
android:id="@+id/tab3"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
謝謝您的幫助..
凱文
Plz發佈LogCat –
這不是代碼,在這裏發佈你的onCreate()方法以及logcat stacktrace。 – Shark