简体   繁体   English

在eclipse上的Android上安装应用,但未显示在应用抽屉中

[英]Installing app on Android made in eclipse, not showing up in app drawer

I install it through dropbox, rather than running through my phone or the emulator, it debugs fine, it installs fine (it took me a bit to get it installing, but it installs, but gives me no option to open) 我安装它通过Dropbox的,而不是通过自己的手机或模拟器中运行,其调试精细,它安装罚款(我花了一点得到它安装,但安装,但没有给我选择打开)

I signed it and everything to get it to install. 我签署了所有内容以进行安装。 I'm running it on a Samsung Galaxy Mega with Android 4.2.2. 我在三星Galaxy兆丰了Android 4.2.2运行它。

This is what I have so far. 到目前为止,这就是我所拥有的。 It's very basic. 这是非常基本的。 I just want to get it running on my phone so I can go further in testing as I go on. 我只是想获得它在我的手机上运行,​​所以我可以走得更远测试,我去。 Any suggestions welcome, and I am very new with Android stuff, so please don't laugh too hard! 任何建议表示欢迎,我非常新的Android的东西,所以请不要笑得太辛苦了!

Android Manifest Android清单

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
    </application>

    </manifest>

activity main 活动主体

    <RadioButton
        android:id="@+id/vdep"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="121dp"
        android:text="Very Depressed" />

    <RadioButton
        android:id="@+id/moddep"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/vdep"
        android:layout_below="@+id/vdep"
        android:text="Moderately Depressed" />

    <RadioButton
        android:id="@+id/milddep"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/moddep"
        android:layout_below="@+id/moddep"
        android:text="Mildly Depressed" />

    <RadioButton
        android:id="@+id/stable"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/milddep"
        android:layout_below="@+id/milddep"
        android:text="Stable" />

    <RadioButton
        android:id="@+id/radioButton5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/stable"
        android:layout_below="@+id/stable"
        android:text="Mildly Manic" />

    <RadioButton
        android:id="@+id/radioButton6"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/radioButton5"
        android:layout_below="@+id/radioButton5"
        android:text="Moderately Manic" />

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/radioButton7"
        android:layout_alignRight="@+id/vdep"
        android:layout_below="@+id/radioButton7"
        android:layout_marginTop="32dp"
        android:text="View Charts" />

    <RadioButton
        android:id="@+id/radioButton7"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/radioButton6"
        android:layout_below="@+id/radioButton6"
        android:text="Very Manic" />

</RelativeLayout>

Any and all suggestions are welcome. 任何和所有建议都欢迎。 I'm running this on Windows 8, but I also have it installed on Linux, Ubuntu, if that would make life easier for me, let me know. 我正在Windows 8上运行它,但我也将它安装在Linux,Ubuntu上,如果这样可以使我的生活更轻松,请告诉我。 Thanks a LOT guys. 谢谢很多人。 I always get answers here, and they're always good ones. 我总是在这里得到答案,而它们总是很好的答案。 (That's why I come!) Ask me any questions if needed and I'll try to answer quickly. (这就是为什么我来了!)问我任何问题,如果需要,我会尽力迅速回答。

For the tl,dr, I have the code above, I can install on my phone, but it won't open, and the icon doesn't show in the Apps section of my phone, but it shows in Applications manager. 对于TL,博士,我上面的代码,我可以安装在手机上,但它不会打开,并且图标不会在我的手机的应用部分显示,但它显示了在应用程序管理器。 My phone is in Debug mode. 我的手机处于调试模式。

You also don't have any activity in your manifest. 您的清单中也没有任何活动。 Did you copied the layout.XML from somewhere? 您是否从某个地方复制了layout.XML? Try to add itbmanually to your project and then copy the content. 尝试将它手动添加到您的项目中,然后复制内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM