Domanda

I create an app.But the issue is it registers itself as a browser. When on the phone I click any link the options show browser and my app. Why it is like that?

È stato utile?

Soluzione

Your application has registered intent filters for handling intents of the http scheme.

There's an example of building a custom browser on Lars Vogel's blog, which boils down to:

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".BrowserActivitiy"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:scheme="http"/>
        </intent-filter>
    </activity>
</application>

If you wish to disable this behavior, remove the <intent-filter> tag from your activity.

Altri suggerimenti

You should check in your Android Manifest the intents filters part, you may have defined an intent filter for browsing

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top