我在Android模拟器上的应用程序在哪里?我正在使用Eclipse / ADT

时间:2012-06-12 05:42:27

标签: android android-emulator adt

我对某些Android开发有点困惑。我正在使用Eclipse / ADT并创建了一个2活动项目测试 enter image description here

所有内容构建和模拟器已启动,但我看不到我的应用程序。

enter image description here

我对此很新,可能会遗漏一些明显的东西。知道我可以在模拟器上看到我的应用程序吗?


修改

滑动工作,我管理到达测试应用程序(项目名称测试,所以我猜相同的应用程序名称),但我得到了屏幕上的跟随。 enter image description here

我预计,我的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" />

1 个答案:

答案 0 :(得分:2)

由于您的应用名称为Test,因此肯定在屏幕2中。

只需从左向右滑动(拖动)屏幕即可获得它。

希望它有所帮助!!!