【发布时间】:2011-04-18 19:32:26
【问题描述】:
我正在开发一款安卓游戏https://code.google.com/p/something-soft/,我的日志猫说它正在尝试触发游戏的意图,但随后主线程似乎死了(带有 ActivityNotFoundException 异常),然后似乎冻结了。
在代码库中,我已经提交了除 /bin 之外的所有文件...包括最近的 logcat 输出(/trunk/KingLand/log.txt)和调试器输出(/trunk/KingLnad/debug.txt)
我正在运行的模拟器是具有 2024MiB 内存的 Android 平台 2.1-update1,如果这真的会导致任何问题(我不确定)
我们将不胜感激。
编辑:AndroidManifest.xml
$<?xml version="1.0" encoding="utf-8"?>
$ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
$ package="android.app"
$ android:versionCode="1"
$ android:versionName="1.0">
$ <application android:icon="@drawable/icon" android:label="@string/app_name">
$ <activity android:name="com.Something.Soft.KingsLand"
$ 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=".Tutorial"
$ android:label="@string/tutorial"
$ android:theme="@android:style/Theme.Dialog"/>
$ <activity android:name=".Prefs"
$ android:label="@string/settingsTitle"/>
$ <activity android:name=".Game" // this is the where the intent should fire to
$ android:label="@string/gameTitle"/>
$ </application>
$</manifest>
【问题讨论】:
-
清单文件中是否定义了Intent?
-
Activity是否定义在AndroidManifest.xml中?
-
是的,包含在清单中。问题现在包含清单
-
MisterSquonk:没有这个变化仍然会导致主线程到达相同的异常
标签: android activitynotfoundexception