2012-06-18 67 views
0
<activity 
       android:name=".RegisterationCompletion" 
       android:configChanges="orientation" 
       android:label="@string/app_name" > 
       <intent-filter > 
        <action android:name="android.intent.action.VIEW" /> 
        <category android:name="android.intent.category.DEFAULT" /> 
        <category android:name="android.intent.category.BROWSABLE" /> 
        <data 
         android:scheme="test" /> 
       </intent-filter> 
     </activity> 

我需要从浏览器URI启动Android应用程序,但此代码不适用于姜面包和其他更高版本。任何想法?从浏览器URI启动Android应用程序

+0

它工作在较低的版本? – Venky

+0

是的,在它的工作。 –

+0

是我的代码是否正确 –

回答

0
<intent-filter> 
       <action android:name="android.intent.action.VIEW" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
       <category android:name="android.intent.category.BROWSABLE" /> 
       <category android:name="android.intent.category.LAUNCHER" /> 
       <data android:scheme="Testapp" /> 
    </intent-filter> 

重要的一点:我们要访问使用链接的href

慎用大写字母,在AndroidManifest.xml小写字母。

无论你看到'Testapp'而不是'TestApp'.Android不能处理大写字母,除了第一个。

此代码适合我...

相关问题