Reputation: 606
Can anyone tell me how can we make our browser as default in Android? I want to do so that when you open up the internet browser, it gives you two options: regular browser and Mybrowser (third party browser which is made by me). If you select the regular browser, it says that the phone cannot access the internet unless it is on the Mybrowser. Can we implement this feature, and how?
Upvotes: 0
Views: 348
Reputation: 28705
set this in your AndroidManifest.xml for your activity:
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:scheme="http" />
</intent-filter>
Upvotes: 1