私は XML でアプリを作成しましたが、Java コードでクラスを作成していません。しかし、エミュレーターはアプリをその名前で表示でき、その後「残念ながら、アプリは停止しました」と表示されます。この問題のために私は何をしなければなりませんか??!
これは私のコードです:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Textview
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/TextView2"/>
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/Button"
/>
</LinearLayout>