I'm trying to make last.fm API call from android application using this package: http://www.u-mass.de/lastfm
From simple java command line program, it works, but not in android application. Using windows and Eclipse
Code itself is very easy:
Artist artist = Artist.getInfo("Depeche Mode", "my_key");
I have set internet permission in android manifest
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
After call I end up here, where it prints "caching failed." http://code.google.com/p/lastfm-java/source/browse/trunk/src/de/umass/lastfm/Caller.java?spec=svn173&r=173
response code there is -1
int responseCode = urlConnection.getResponseCode();
Any ideas what I'm doing wrong?