Android 如何制作网络浏览器';s类型作为web浏览器

Android 如何制作网络浏览器';s类型作为web浏览器,android,eclipse,browser,defaults,Android,Eclipse,Browser,Defaults,目前,我已经在eclipse中使用android SDK制作了自己的web浏览器,但当我使用我的应用程序时,在“设置”中,它不允许我将此浏览器设置为默认浏览器,或者如果我单击谷歌应用程序上的链接,它会给我一条消息“打开”,而我的应用程序不在那里。我是否需要在我的代码中添加任何东西来告诉android我的应用程序是一个web浏览器?这是我的清单文件 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android

目前,我已经在eclipse中使用android SDK制作了自己的web浏览器,但当我使用我的应用程序时,在“设置”中,它不允许我将此浏览器设置为默认浏览器,或者如果我单击谷歌应用程序上的链接,它会给我一条消息“打开”,而我的应用程序不在那里。我是否需要在我的代码中添加任何东西来告诉android我的应用程序是一个web浏览器?这是我的清单文件

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.rarster.QuantumBrowser"
    android:versionCode="5"
    android:versionName="1.4" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="21" />
    <uses-permission android:maxSdkVersion="21" android:name="android.permission.INTERNET"/>

    <application
        android:hardwareAccelerated="true"
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".Start"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Settings"
            android:label="@string/app_name" />
         <activity
            android:name=".Home"
            android:label="@string/app_name" />
          <activity
            android:name=".SocialNetwork"
            android:label="@string/app_name" />
             <activity
            android:name=".Home2"
            android:label="@string/app_name" />
                <activity
            android:name=".Note"
            android:label="@string/app_name" />
                  <activity
            android:name=".News"
            android:label="@string/app_name" />
                  <activity
            android:name=".MainActivity"
            android:label="@string/app_name" />
                   <activity
            android:name=".Intro"
            android:label="@string/app_name" />
    </application>

</manifest>

我是否需要在我的代码中添加任何东西来告诉android我的应用程序是一个web浏览器


您需要一个(或多个)支持Web浏览的
。查看中的
BrowserActivity
条目,了解他们如何处理它,并确定哪些功能与您的应用程序提供的功能相匹配。

对于您设计为浏览器的活动,您在清单文件中提到您的活动可以作为浏览器,您在清单文件中给出了哪些内容。下面是android浏览器的清单属性。希望这有帮助。我的问题是,我如何告诉android它能够成为浏览器,我的应用程序具有浏览器的功能,但我不知道在清单中放什么来告诉android它是浏览器。