9
我有一个非常简单的游戏,只包含一项活动,并且我想添加一个标题屏幕。具有多个活动的Android应用程序
如果标题屏幕是另一个活动,我需要对我的清单文件进行哪些更改才能使标题屏幕首先打开?
的游戏活动被称为Leeder先生和标题画面的活动就叫做LeederTitleScreen
这里是我目前的清单文件。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.nifong.leeder"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="Leeder"
android:label="@string/app_name"
android:configChanges="keyboardHidden|orientation"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-sdk android:minSdkVersion="5" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
</manifest>
什么是意图过滤器?我甚至需要吗? – Nathan 2010-02-09 00:08:09
编辑我的答案是更深入一点。 – 2010-02-09 00:22:06