Android的[否内容提供者发现的许可撤销" [英] Android "No content provider found for permission revoke"

查看:125
本文介绍了Android的[否内容提供者发现的许可撤销"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的HelloWorld应用程序,Android应用在Eclipse(Mac OS X中),当我安装到仿真器/ AVD应用程序显示在设置 - > [设备]应用程序,但不是在发射器。我注意到在logcat中,我得到这些错误

I have a simple app HelloWorld Android app in Eclipse (Mac OS X), when I install to the emulator/AVD the app shows up in "Settings->[Devices] Apps" but not in the launcher. I notice in logcat that I get these errors

W/ActivityManager(  160): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld.apk
W/ActivityManager(  160): No content provider found for permission revoke: file:///data/local/tmp/HelloWorld.apk
I/PackageManager(  160): Running dexopt on: com.example.helloworld
D/dalvikvm(  870): DexOpt: load 124ms, verify+opt 459ms, 720236 bytes
I/ActivityManager(  160): Force stopping package com.example.helloworld uid=10044

我已经设置读/写/在.android目录的执行权限。

I have set read/write/execute permissions on the .android directory.

推荐答案

在我来说,我忘了定义的活动。所以,我想补充以下code内AndroidManifest.xml中的活动。

In my case I forgot to define main activity. So, I add the following code inside AndroidManifest.xml main activity.

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

这是结果的活动定义:

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity android:name="RssfeedActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>
    <activity android:name="DetailActivity"></activity>        
</application>

这篇关于Android的[否内容提供者发现的许可撤销&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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