0

I have defined a custom url for my Android application:

<intent-filter>
  <data android:scheme="myfoo" /> 
  <action android:name="android.intent.action.VIEW" /> 
  <category android:name="android.intent.category.BROWSABLE" /> 
  <category android:name="android.intent.category.DEFAULT" /> 
</intent-filter>

When I create a web page that has

<a href="myfoo://">My Foo</a>

and click on the link from the local browser, my application is launched just fine. However, if I type "myfoo://" directly in the browser, it simply takes me to Google's search listing.

Wondering if there is a setting on the default browser that I need to disable to make my custom url work. Regards.

1
  • By default browser, are you refering to the "stock" App called "Browser" that comes with your Android OS? What phone brand do you use? Commented Feb 16, 2016 at 20:48

1 Answer 1

1

Wondering if there is a setting on the default browser that I need to disable to make my custom url work.

Probably not. For starters, there is no single "default browser" in Android. Beyond that, browser developers are welcome to do whatever they want with URLs, including having varying behavior based upon where the URL comes from (address bar vs. link vs. JavaScript vs. ...).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.