2013-07-24 20 views
0
意圖過濾我似乎

不能找出應用程序清單的意圖過濾器...與Android

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="com.test.test" android:versionCode="1" android:versionName="1"> 
    <uses-sdk android:targetSdkVersion="8" /> 
    <application android:icon="@drawable/icon"> 

    <activity> 
     <intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 
     <category android:name="android.intent.category.LAUNCHER" /> 
     <data android:scheme="myapp" /> 
     </intent-filter> 
    </activity> 
    <activity android:name=".AddNewActivity"> 
     <intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 
     <category android:name="android.intent.category.LAUNCHER" /> 
     <data android:scheme="myapp" /> 
     </intent-filter> 
    </activity> 
    </application> 

</manifest> 

我想有MYAPP://somesite.com/file.test內打通我的應用程序

回答

1

看起來你有兩個活動。兩者都列爲「android.intent.action.MAIN」。只有您的實際主要活動可以具有LAUNCHER和MAIN屬性。

將您的第二個活動從'MAIN'切換到'AnyName'和'LAUNCHER'​​爲默認值。