process fails at boot

marcick

Well-Known Member
Licensed User
Longtime User
I have an application with a process that uses SMSinterceptor and is declared to starts at boot.
But when I switch on the phone, as soon as I see the notify icon of my process, I get the error:

"Sorry, unexpected interruption of the application ..... (process it.......). Retry"
(I have translated from Italian)

If I close the error and then start the application manually everything works fine.

It seems that the service starts at boot when the phone is not ready to accept it.

Any hints ?
Marco
 

marcick

Well-Known Member
Licensed User
Longtime User
you're right, the problem is that on this phone (Huawey Sonic) I'm not able to see the log.

I have "LogCat connected to: B4A-Bridge: HUAWEI U8650-862076014823691" on the right panel but then no messages appears ...
This is another problem I was about to open a thread also ...
Marco
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
I have downloaded "Log Viewer" and "aLogcat".
Both of them remain frozen with the message "reading logs, please wait" showing nothing on the screen.
They work instead on another device, but not on this Huawey sonic
Marco
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
Yes, I understand ...
the ROM is not custom, the phone is just bought from the shop.
But I was reading that some devices on the market could have the log disabled.
This is a problem.
Marco
 
Upvote 0

marcick

Well-Known Member
Licensed User
Longtime User
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
 
Upvote 0
Top