0

私はいくつかのアンドロイド開発に少しこだわっています。私は Eclipse/ADT を使用しており、2 つのアクティビティ プロジェクト テストを作成しました。
ここに画像の説明を入力

すべてのビルドとエミュレーターが開始されましたが、アプリケーションが表示されません。

ここに画像の説明を入力

私はこれに非常に慣れていないため、明らかな何かが欠けている可能性があります。エミュレーターで自分のアプリをどこで見ることができますか?


編集

スライドが機能し、テストアプリにたどり着きました(プロジェクト名テストなので同じアプリ名だと思います)が、画面に表示されます。 ここに画像の説明を入力

私のmain.xmlとしてのボタンとその他のものは次のとおりです。

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="I&apos;m screen 1 (main.xml)"
    android:textAppearance="?android:attr/textAppearanceLarge" />

<Button
    android:id="@+id/button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Click me to another screen" />

間違いなく私の側の間違いで、何がわからないのですか?

私のマニフェスト。

<uses-sdk android:minSdkVersion="10" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:label="@string/app_name"
        android:name=".AppActivity" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:label="@string/app_name"
        android:name=".App2Activity" >
    </activity>
</application>

私のmain.xmlファイルは以下の通りです。

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="I&apos;m screen 1 (main.xml)"
    android:textAppearance="?android:attr/textAppearanceLarge" />

<Button
    android:id="@+id/button1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Click me to another screen" />

4

1 に答える 1

2

アプリ名がTestであるため、間違いなく screen2 にあります。

画面を左から右にスワイプ(ドラッグ)するだけで取得できます。

それが役に立てば幸い !!!

于 2012-06-12T06:01:38.600 に答える