kinyerakenneth / lastfm-java

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

Authenticator.getMobileSession not working for Android 2.1 #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I noticed that this method works well for Android 2.2, but when I use an 
emulator with 2.1, it fails every time with the same Exception:

Caused by: java.lang.NoSuchMethodError: org.w3c.dom.Element.getTextContent
   at de.umass.xml.DomElement.getText(DomElement.java:86)
   at de.umass.xml.DomElement.getChildText(DomElement.java:132)
   at de.umass.lastfm.Session.sessionFromElement(Session.java:105)
   at de.umass.lastfm.Authenticator.getMobileSession(Authenticator.java:72)

I noticed that the source code in the 'getText' method has a comment stating 
this problem. If this is a known issue and won't be fixed, what are my options? 
Any advice of how could I fix this? I really like this api, but I don't want to 
increase the minimum requirements for my app just for this method to work.

Thanks!

Original issue reported on code.google.com by helderga...@gmail.com on 6 Sep 2011 at 12:54

GoogleCodeExporter commented 9 years ago
I did not test with 2.1, but you will have to download the source code and 
rebuild the library yourself with the fixed code, if you haven't already done 
so. I'm going to set this to WontFix for now, because I probably will not 
change it back to support Android 2.1, especially with already 4.0 being at the 
door.

Original comment by jannikov...@gmail.com on 12 Oct 2011 at 10:32