android(ActityNotFoundException除外)

| 我正在开发一个Android游戏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> 
已邀请:
package属性应该是活动所在的包。 在您的AndroidManifest.XML中,清单标记应在属性包中声明活动所在的包。 这将是:
<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"
    package=\"com.Something.Soft\"
    android:versionCode=\"1\"
    android:versionName=\"1.0\">
 //The others attributes.
您定义了:\“ package = \” android.app \“ \” 而且您的活动在com.Something.Soft上 您还应该遵循代码约定,程序包名称全为小写。
活动之间的套餐有所不同。假设\“ com.Something.Soft。\”包是您的游戏活动所在,请将
package=\"android.app\"
更改为
package=\"com.Something.Soft\"
。 您也可以显式地拼写出定义活动的全名,即“ 4”

要回复问题请先登录注册