kinyerakenneth / lastfm-java

Automatically exported from code.google.com/p/lastfm-java
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Scrobble method causes crash on android #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Creating an android asynctask
2. Creating a session with a user name and pw
3. Creating a timestamp like so: int time = (int) (System.currentTimeMillis() / 
1000);
4. Using Track.scrobble(artist,song,time,session)

What is the expected output? What do you see instead?
It throws "de.umass.lastfm.CallException: Caching/Reloading failed"

Original issue reported on code.google.com by johannes...@gmx.de on 9 Jul 2014 at 7:04

GoogleCodeExporter commented 9 years ago
add this in onCreate
Caller.getInstance().setCache(null);
Caller.getInstance().setUserAgent("tst");

Original comment by vampire5...@gmail.com on 10 Aug 2014 at 3:23