tags:

views:

33

answers:

1

hi can anyone tell me how can we make our browser as default in android. i want to implement 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 broswer it says that the phone cannot access the internet unless it is on the Mybrowser.

can we implemnt this feature???? if yes than how???

thanks nimi

+1  A: 

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>
Mathias Lin
hi sir..thanks for ur ans..as i put this in my manifest file..default browser is not working..but there is one more small problem that as i click on browser it is not prompting me as i write in my question...can u help me a little more..
nimi
do you have any other browsers than the system's browser? try to do the following: go into settings / applications / default browser / click button "clear defaults"
Mathias Lin