I\'ve got a code with an ASyncTask and the problem is that when I execute it several times it crashes with this exception: RuntimeException: Only one Looper may be created per t
As the stack trace tells you, your problem originates from line 29 of Parser.java
, in the Parser
initializers. You will note that this is not the source code you included here, which is for LoadNews
.
Based on the preceding line of the stack trace, either:
Parser
inherits from Activity
Parser
is trying to instantiate an Activity
Neither of those is possible.
Maybe instantiate Parser outside LoadNews class and pass reference to it?