News for hackers. Stuff that matters.
Re:Why apps are not the future by themanr on Tuesday December 13, 2011 @11:16AM (#3347927)
Also possible on Android is for apps to register themselves as link targets for certain domains. For example http://www.github.com addresses can optionally open in the github app.
Re:Why apps are not the future by babebridou on Tuesday December 13, 2011 @11:50AM (#3348081)
You 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.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.

Re:Why apps are not the future by themanr on Tuesday December 13, 2011 @12:27PM (#3348290)
Looks like a useful app. I'll give it a whirl. How many nested url shorteners does it follow to get to the real content?
Re:Why apps are not the future by babebridou on Tuesday December 13, 2011 @01:33PM (#3348594)
I 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?
Re:Why apps are not the future by fpgeek on Wednesday December 14, 2011 @12:21AM (#3350745)
Wow! 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.

Re:Why apps are not the future by babebridou on Thursday December 15, 2011 @04:15PM (#3358039)
I'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.