【问题标题】:Where is my app on android emulator? I am using Eclipse/ADT我在安卓模拟器上的应用在哪里?我正在使用 Eclipse/ADT
【发布时间】:2012-06-12 17:03:42
【问题描述】:

我有点卡在一些 android 开发上。我正在使用 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" />

【问题讨论】:

  • 您滑动到一边并查看列表的其余部分了吗?
  • 实际上我无法滑动模拟器屏幕。应该怎么做?尝试右键单击(笔记本电脑)鼠标但没有成功
  • 左键拖动,就像用手指触摸然后移动手指一样
  • 天啊,你真的是鼠标右键吗?尝试触摸(点击并保持在那里)并滑动,仅此而已
  • 项目名称是测试所以我猜应用名称应该是一样的。

标签: android android-emulator adt


【解决方案1】:

因为你的应用名称是Test,所以它肯定在screen2中。

只需从左向右滑动(拖动)屏幕,您就应该得到它。

希望对你有帮助!!!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-06-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多