문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top