Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use intent-filter to register Android app to handle https://news.ycombinator.com/item URLs #13

Open
gbrayut opened this issue Mar 28, 2017 · 0 comments

Comments

@gbrayut
Copy link

gbrayut commented Mar 28, 2017

I often open HN links via Twitter, so while the Android app is great for browsing it doesn't automatically open when I click on a https://news.ycombinator.com/item link. Right now I use a bookmarklet in Chrome to switch between HN and HackerWeb on the desktop, and the same bookmarklet will work on mobile chrome if I type the name of the bookmark (I use hw as the name) into the address bar. This can be a bit slow though, and there are better options for Android.

Namely using an intent-filter in the application manifest, which will let Android know that your application can handle links for a given URL pattern. I use multiple reddit applications that all include this information in the manifest, so when I click on a link it will prompt me to choose which app to use to open the link.

Keep up the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants