Android清单(AndroidManifest.xml)无法按预期工作

时间:2013-08-21 23:08:36

标签: android android-manifest

此文件中有什么问题?

每当我尝试使其工作时,它会给我错误

我需要启动画面才能正常工作

然后我希望StationList之后的工作正如我尝试做的那样,当启动工作正常时,工作列表没有工作,当工作清单工作时,启动屏幕不会

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.webcraftbd.radio"
    android:versionCode="7"
    android:versionName="@string/version" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="10" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="androiåd.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".Splash"            
            android:label="@string/app_name"
            android:launchMode="singleInstance"
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.Black.NoTitleBar" >            
          <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".StationList"
            android:configChanges="orientation|keyboardHidden"
            android:launchMode="singleInstance"
            android:theme="@android:style/Theme.Black.NoTitleBar"
            android:label="@string/app_name" >

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

        </activity>

        <service
            android:name=".RadioService"
            android:enabled="true" />
        <activity
            android:name=".MainActivity" 
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.Black.NoTitleBar" ></activity>
        <activity
            android:name=".FacebookActivity" 
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.Black" ></activity>

        <activity
            android:name=".TwitterActivity" 
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.Black" ></activity>

        <activity
            android:name=".AboutActivity" 
            android:configChanges="orientation|keyboardHidden"
            android:theme="@android:style/Theme.Black.NoTitleBar" ></activity>

        <activity android:name="com.google.ads.AdActivity"
              android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> 

    </application>

</manifest>

1 个答案:

答案 0 :(得分:0)

将此内容替换为:android:name=".StationList"

<activity
        android:name=".StationList"
        android:configChanges="orientation|keyboardHidden"
        android:launchMode="singleInstance"
        android:theme="@android:style/Theme.Black.NoTitleBar"
        android:label="@string/app_name" >

使用您的splashscreen活动的名称,并将.StationList添加为单独的活动,如:

<activity
        android:name=".StationList" 
        android:configChanges="orientation|keyboardHidden"
        android:theme="@android:style/Theme.Black.NoTitleBar" ></activity>