5 ms·
Also possible on Android is for apps to register themselves as link targets for certain domains. For example http://www.github.com http://www.github.com address
by themanr 15y ago
Also possible on Android is for apps to register themselves as link targets for certain domains. For example http://www.github.com http://www.github.com addresses can optionally open in the github app.
- babebridou 15y agoYou can specify your app as a receiver for as many authorities as you'd like, by the way, or even register your own schema. You can also declare your app as a content provider, which means that your app/service becomes a data source, just as the contact list, or the photo repository, and make that data available to others, defining your own private permissions, etc. My app FairyPreview for instance (https://market.android.com/details?id=com.fairyteller.linkpreview https://market.android.com/details?id=com.fairyteller.linkpr...), is registered as an authority for the myriad link minimizers out there, so whenever you click on a minimized link in the Twitter app or anywhere apart from a browser, it will suggest my app for a faster preview instead of taking hours to load a webpage designed for a desktop browser hiding behind an unknown bit.ly link, itself disguised as a t.co, for example. It's not perfect and it's very old, the code is from 2009, my very first attempt at playing with the cross-app link system, but it works pretty well still. I'm strongly thinking about opening the source code, since I don't make any money out of it (free, no ad, maybe 50 downloads :P), and there's plenty of improvements I'd love to do but don't have the time these days.
- themanr 15y agoLooks like a useful app. I'll give it a whirl. How many nested url shorteners does it follow to get to the real content?
- babebridou 15y agoI never tested this in particular, but since it uses HttpURLConnection, the following of redirections is done under the hood - I guess it would be the same limit as the default browser?
- fpgeek 15y agoWow! FairyPreview is cool and almost exactly what I want when previewing links from Twitter. I'm just sad there isn't a Share option (so I can send the link to ReadItLater, Gmail, ...). If you do open the source, I'd love to help with it.
- babebridou 15y agoI'm definitely glad you like it, it means I'm not the only one ;) I'll see what I can do about the share button & opening the source. There's definitely tons of improvements to be made.