首页 > 代码库 > android.content.ActivityNotFoundException: Unable to find explicit activity class {...}; have you declared this activity in your AndroidManifest.xml?

android.content.ActivityNotFoundException: Unable to find explicit activity class {...}; have you declared this activity in your AndroidManifest.xml?

解决方法:

在文件 AndroidManifest.xml里添加

<activity android:name="com.example.contentprovider_e.ReCallLog" >
</activity>

结果为:

PS:我起初添加的Activity是CallLog.java而不是ReCallLog.java,所以我在AndroidManifest.xml里添加添加了<Activity></Activity>也同样报错,是因为和系统的Activity重名了,运行时不知道运行哪个、、、、、、、重命名之后就好了。