I have looked at several Stack Overflow questions with similar titles to mine. Each is answered, and the original author seems satisfied, but when I try to replicate their r
You cannot use MAIN
-- URLs in Android are only VIEW
ed from the browser or WebView
.
Also, none of your Intent
filters include the BROWSABLE
category, so they will never work with the browser.
It is not recommended to invent your own schemes. You can use a regular HTTP scheme, for some domain that you control. This sample project demonstrates this. In particular, you can follow the pattern shown by this filter:
replacing www.this-so-does-not-exist.com
with something you own, and perhaps adding in a path
to narrow the filter's scope. You can also see this technique used by the Barcode Scanner app from ZXing.