【问题标题】:Android "Application is not found on your phone" from launcher ..?来自启动器的Android“在您的手机上找不到应用程序”..?
【发布时间】:2011-09-07 08:36:12
【问题描述】:

当我从 Eclipse(运行)启动我的应用程序时,它会在我的手机或模拟器上启动,正在工作......这也将应用程序放在 appdrawer 中,但是,当我按下它时,它说:“应用程序未安装在你的手机上”。这不是因为它只是我主屏幕上的一个空快捷方式,它实际上显示在抽屉中。我尝试删除并重新安装它,但这也无济于事。
附加的是我的 AndroidManifest.xml,因为我怀疑问题来自那里。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="my.application.package"
  android:versionCode="1"
  android:versionName="1.0">

<uses-permission android:name="android.permission.INTERNET" />

<application android:icon="@drawable/icon" android:label="@string/app_name" android:permission="android.permission.INTERNET">
    <activity android:name=".UserInteraction" android:permission="android.permission.INTERNET"
              android:label="@string/app_name">

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".WebViewClass"
              android:label="@string/app_name"/>

</application>
</manifest>

【问题讨论】:

  • 不确定是不是这个原因,但是删除applicationactivity节点的权限,那里不需要它们。

标签: android android-intent manifest launcher


【解决方案1】:

@MByD 是正确的,但它不仅仅是“不需要”,而是“主动给你带来问题”。摆脱android:permission 属性。您是说启动器必须持有INTERNET 权限才能启动您的应用,而启动器可能没有该权限。

【讨论】:

  • 啊,太好了。我认为每个部分(活动,应用程序)都应该声明该权限。看来不是 :) 谢谢你们!
  • @CommonsWare - 你能看看这个我有类似的问题stackoverflow.com/q/26553635/3857586
猜你喜欢
  • 2013-03-10
  • 1970-01-01
  • 2011-04-06
  • 1970-01-01
  • 2012-10-19
  • 1970-01-01
  • 1970-01-01
  • 2021-12-28
  • 1970-01-01
相关资源
最近更新 更多