Android IntentService can't instantiate class; no empty constructor
The Exception
is telling you that you need to implement the default public constructor.
public HttpRequestService() {
super("Name for Service");
}
The default public constructor is a constructor with no parameters.
Here you call super()
and pass a String
that will be used to name the IntentService
One other thing to keep in mind: If you have your service as a nested class it has to be static.
Compare intentservice no empty constructor, but there is a constructor