I try to give some more info about the service boot problem:
I have an activity, empty, it does nothing. The project contains a service module also that use SMSInterceptor. The service is declared to start at boot.
I install and launch the program. Nothing happen, just a black screen. Correct.
I reboot the phone and I see the service is started. Perfect.
Now I take another project, with an activity that does something. I add a service module an I copy into it the same identical contents of the previous example.
I declare the service to start at boot.
In the activity I have the StartService statement of course.
I install the program, launch it and everything works fine, with the service installed, running and remains running also when I close te application.
I reboot the phone and I see the service starting, but after some seconds I get the error as I wrote in the initial post.
Because in this case only the service need to start, never mind the main application, and in both examples the service is identical, I don't understand where is the difference from this example and the first one.
Any idea ?
Marco