Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,490 Members 43,538 Now Online
XDA Developers Android and Mobile Development Forum

[App][2.2+] Short URL Resolver

Tip us?
 
julianjm
Old
#21  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
Quote:
Originally Posted by SkUrRiEr View Post
Hi,

Excellent app!

Just so you know: Feedly shortens URLs under some circumstances.

It gives a you URL like this:

feedly (dot) com/e/lTWp53yG (I'm new so no URLs for me!)

which redirects to some random Techdirt article.

Would it be possible to add support for those too?


Feedly also uses those shortened URLs when sharing articles. I have no idea how Android's sharing infrastructure works, but it'd be nice to be able to "share" them with your app so they could get de-crappified. (Yeah, this would add some steps to the sharing process, but I'd rather go through a few more steps than share obfuscated URLs.)
Hi... That's some interesting feature: When you share an url with your favourite application, if it happens to be a supported short url, Short URL Resolver could advertise itself with the text "Share long url" or something... after the url is resolved, the share intent is relaunched with the long url.

What do you think? I have to check if it can be practically done.

Regarding feed(dot)ly/e/* i'll try add support for in in the next version, although a bit more work is needed. Check the redirects for your url:
1) http://feedly (dot) com/e/lTWp53yG
2) http://feedproxy (dot) google (dot) com/~r/techdirt/feed/~3/52W0A3UZKC8/story01.htm
3) http://techdirt (dot) feedsportal (dot) com/c/35345/f/661541/s/35aeba21/sc/4/l/0L(blablabla)/story01.htm?utm_source=feedburner&utm_medium=feed& utm_campaign=Feed%3A+techdirt%2Ffeed+%28Techdirt%2 9
4) http://www (dot) techdirt (dot) com/articles/20131220/00300825645/when-you-give-doctors-incentives-to-get-it-right-rather-than-to-do-everything-people-get-better-care-less.shtml

Julian.
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store
 
SkUrRiEr
Old
#22  
Junior Member
Thanks Meter 1
Posts: 4
Join Date: Jul 2013
Quote:
Originally Posted by julianjm View Post
Hi... That's some interesting feature: When you share an url with your favourite application, if it happens to be a supported short url, Short URL Resolver could advertise itself with the text "Share long url" or something... after the url is resolved, the share intent is relaunched with the long url.

What do you think? I have to check if it can be practically done.
I'd rather do three steps to share a long URL than one step to share a short one, so that's exactly what I was thinking.

Quote:
Originally Posted by julianjm View Post
Regarding feed(dot)ly/e/* i'll try add support for in in the next version, although a bit more work is needed. Check the redirects for your url:
1) <http>feedly (dot) com/e/lTWp53yG
2) <http>feedproxy (dot) google (dot) com/~r/techdirt/feed/~3/52W0A3UZKC8/story01.htm
3) <http>techdirt (dot) feedsportal (dot) com/c/35345/f/661541/s/35aeba21/sc/4/l/0L(blablabla)/story01.htm?utm_source=feedburner&utm_medium=feed& utm_campaign=Feed%3A+techdirt%2Ffeed+%28Techdirt%2 9
4) <http>www (dot) techdirt (dot) com/articles/20131220/00300825645/when-you-give-doctors-incentives-to-get-it-right-rather-than-to-do-everything-people-get-better-care-less.shtml
I probably chose a bad example: That link is Feedly's short version of a link from an RSS feed, and, like most of them, it uses feedproxy for stuff. It also looks like Techdirt uses another portal of it's own before redirecting to the article in question. To be quite honest, I'd be more than happy if just the first level of redirect was stripped, but it's really up to you.
 
DLAddict
Old
#23  
DLAddict's Avatar
Senior Member
Thanks Meter 16
Posts: 201
Join Date: Sep 2011
Location: Cebu
Would this work with shortened links in Twitter apps like TweetCaster Pro?
 
julianjm
Old
#24  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
Quote:
Originally Posted by DLAddict View Post
Would this work with shortened links in Twitter apps like TweetCaster Pro?
It should work with any app that tries to open supported short URLs.

Enviado desde mi Nexus 4 mediante Tapatalk
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store
 
Walter.White
Old
(Last edited by Walter.White; 10th February 2014 at 08:55 AM.)
#25  
Walter.White's Avatar
Senior Member
Thanks Meter 964
Posts: 757
Join Date: Nov 2013

 
DONATE TO ME
It's works perfectly for slickdeals but I just realized that it uses two more redirecting url... Can you add support for it please?

http://click.linksynergy.com/fs-bin/...No%253D8895247

http://redirectingat.com/rewrite.php...%3D27917328298


Support you added earlier for the below url works great.

http://www.jdoqocy.com/click-1225267...p-02646642000P
 
julianjm
Old
#26  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
Quote:
Originally Posted by Walter.White View Post
It's works perfectly for slickdeals but I just realized that it uses two more redirecting url... Can you add support for it please?

http://click.linksynergy.com/fs-bin/...No%253D8895247

http://redirectingat.com/rewrite.php...%3D27917328298
Hi... check this beta version:
https://dl.dropboxusercontent.com/u/..._1017Beta1.apk

Julian.
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store
 
Walter.White
Old
(Last edited by Walter.White; 18th February 2014 at 09:25 AM.)
#27  
Walter.White's Avatar
Senior Member
Thanks Meter 964
Posts: 757
Join Date: Nov 2013

 
DONATE TO ME
Quote:
Originally Posted by julianjm View Post
Hi... check this beta version:
https://dl.dropboxusercontent.com/u/..._1017Beta1.apk

Julian.
Sorry for the late reply. As far as i can tell it works for link synergy.com but when i tried resolving the following url it said "error resolving"

http://redirectingat.com/rewrite.php...utlet-specials

Interestingly enough the beta apk you posted can't resolve the following url but apk currently in the app store can do it just fine. Weird. I get the same error as above

http://www.jdoqocy.com/click-1225267...82E16811112300
 
julianjm
Old
#28  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
Quote:
Originally Posted by Walter.White View Post
Sorry for the late reply. As far as i can tell it works for link synergy.com but when i tried resolving the following url it said "error resolving"

http://redirectingat.com/rewrite.php...utlet-specials

Interestingly enough the beta apk you posted can't resolve the following url but apk currently in the app store can do it just fine. Weird. I get the same error as above

http://www.jdoqocy.com/click-1225267...82E16811112300
The first link you posted works fine here... The second fails, but I think it's because Tapatalk replaces some parts of the URL with Smilies...
-_- <-- (dash, underscore, dash) Anyway, I changed the unmask process, and now it works (even the actual URL contains <img src=..." in it)

Please download the beta on this link: https://dl.dropboxusercontent.com/u/..._1017Beta2.apk

I've been refactoring the code, programing a generic library for expanding/unmasking different services... Some things might break. I'll have them sorted out before updating the play store version

Thanks for your help,
Julian.
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store
 
julianjm
Old
#29  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
I'm about to upload a new version to the Play Store... Can you test it and report any problem you see?

Chagelog for 1.0.17 Beta 4:
  • Add hidden mode for background resolving (no progress dialog)
  • Removed some animations on open and launch.
  • Internal changes to ease adding more services. Email me if you want support for new services.
  • Added click.linksynergy.com and redirectingat.com services

You can get the APK here. It's signed with the same key, so it should update your current version just fine:
https://dl.dropboxusercontent.com/u/..._1017Beta4.apk

Thanks!
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store
The Following 2 Users Say Thank You to julianjm For This Useful Post: [ Click to Expand ]
 
julianjm
Old
#30  
Member - OP
Thanks Meter 60
Posts: 75
Join Date: Aug 2010
Location: Fuerteventura
Just uploaded version 1.0.18:
* Fixed tapatalk links that broke on a recent update
* Support for buff.ly

Julian.
My first Android App: Short URL Resolver - XDA Thread - Get it on Google Play Store

The Following User Says Thank You to julianjm For This Useful Post: [ Click to Expand ]
Tags
short urls
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes