.apk安装在Android上,但无法在任何地方找到! [英] .apk installed on Android but cannot be found anywhere!

查看:167
本文介绍了.apk安装在Android上,但无法在任何地方找到!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了两个使用Eclipse的Android应用程序。然后,我们通过右键单击项目和运行为android应用程序在电话上运行他们,并且它们已经成功测试。但是,当我尝试安装他们的.apk文件,其中一个出现在列表中,而另一个不显示。我检查了应用程序管理器,并显示应用程序已保存。
我试图通过手机中的搜索找到它,它可以找到所有保存的.apk除了这一个。



你有什么想法我在哪里出错,特别是它似乎保存,只有这个应用程序不会出现在手机,虽然应用程序管理器说它已经安装。

解决方案

发现为什么会发生这种情况。您需要在AndroidManifest中作为主要活动的一部分。

 < intent-filter> 
< action android:name =android.intent.action.MAIN/>
< category android:name =android.intent.category.LAUNCHER/>
< / intent-filter>

我的错误是我使用< action android:name =android .intent.category.LAUNCHER/> 而不是< category android:name =android.intent.category.LAUNCHER/> 。没有 category.LAUNCHER ,您不会告诉它在应用程序启动器中列出软件,因此它不可见。


I have developed two small applications for Android using Eclipse. Then i ran them both on the phone by right-clicking on the project and "run as android application", and they were successfully tested. However, when i try to install their .apk files, one of them appears in the list, while the other does not appear. I checked the application manager and it shows that the application is saved. I tried to find it using the "search" in the phone, it can find all saved .apk except this one.

Pls do you have any idea where did i go wrong especially that it seems saved, and only this application does not appear in the phone although the application manager says it is installed.

解决方案

Found out why this was happening. You need this in your AndroidManifest as a part of your main activity.

<intent-filter>
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>

My mistake was that I used <action android:name="android.intent.category.LAUNCHER"/> instead of <category android:name="android.intent.category.LAUNCHER"/>. Without the category.LAUNCHER, you're not telling it to list the software in the application launcher, so it becomes invisible.

这篇关于.apk安装在Android上,但无法在任何地方找到!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆