Characters problem in Bit.ly

Posted by Fevos on Stack Overflow See other posts from Stack Overflow or by Fevos
Published on 2010-03-30T05:34:24Z Indexed on 2010/03/30 5:43 UTC
Read the original article Hit count: 434

Filed under:
|
|

Hello,

When i try to shorten a link with "#,&" Character i got an exception.

is there a way to handle them .

this is a sample of code that works String shortUrl = bitly.getShortUrl("http://z"); //Works

but if i add for example '&' or '%25' to the string it will produce exption : - String shortUrl = bitly.getShortUrl("http://z%26"); // Exception - String shortUrl = bitly.getShortUrl("http://z&"); // Exception

the getShortUrl function form this Java class: http://github.com/finnjohnsen/BitlyAndroid/raw/master/src/com/finnjohnsen/bitlyandroid/test/BitlyAndroid.java

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about bit.ly