If you check the logs then you will see the full error message in both cases.
Hi,
The first screenshot shows an error message of my app. In this time the phone was connected via usb debugging.
The error appears after some hours when the phone is not in use. I cant reproduce it constantly. Sometimes
the app runs a day without error.
The second screenshot shows how it should be.
I am using the ultimate listviewer. When the error occurs, it looks on the first screenshot, that the ulv view is not shown.
I have a service running what check incoming sms. (SI_MessageReceived)
If a message receive, I call StartActivity(Main)
In the Main resume event I check
If ULV2.IsInitialized = False Then
ULV2.Initialize(0, 0, "", "ulv2")
....
I have the feeling that my main activity is some how killed from the system and my service is still running, because of Startforeground.
When an sms comes in and my service runs StartActivity(Main) than something goes wrong.
Here the log :
** Service (sv_control) Destroy **
** Activity (main) Pause, UserClosed = false **
** Activity (setup) Create, isFirst = true **
** Activity (setup) Resume **
** Activity (setup) Pause, UserClosed = true **
** Activity (main) Resume **
** Service (sv_control) Create **
** Service (sv_control) Start **
** Activity (main) Pause, UserClosed = true **
InsertMaps (first query out of 1): INSERT INTO [t_log] ([status], [lati], [longi], [day], [time], [switches], [counter], [carcode]) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **
** Service (sv_control) Destroy **
** Service (sv_control) Create **
** Service (sv_control) Start **
** Activity (main) Pause, UserClosed = false **