2013-08-21 79 views
0

此文件中的問題是什麼?Android清單(AndroidManifest.xml)未按預期工作

它給我的錯誤每次我嘗試,使其工作

我需要的啓動畫面正常

工作的話,我想它後StationList工作,因爲我嘗試做時飛濺的工作好該stationlist不和時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> 
+2

無法理解你的意思 – Pavlos

+0

無法獲取您的問題 – Tushar

回答

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" > 

與濺射屏幕活動的名稱,並添加.StationList作爲一個單獨的活動,如:

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