Wish Error report when app end because of an error

kohle

Active Member
Licensed User
Longtime User
Hi,

there is a mixed situation. When an installed app (RELEASE MODE) on a smartphone crash,
there are 2 types of an error message :

1)
An java error message, nearly same like in the debug modus (Thats fine)

2)
Messagebox : Program has stopped.


My problem is point 2.
When an app crashes, and it´s installed from playstore I can see an error report
in the developer console.

When its´not installed via google, for test reason ....how I get the infos, without debugging.
I dont want logging, I want only the last error message.

The app runs on several phones of my family at several places for testing.

Is it possible to show an error, like google or the debugger does ?


rgs
Kohle
 

kohle

Active Member
Licensed User
Longtime User
Yes. I know about usb debugging.

But there is time after testing :
I am talking about the time when the app runs on the phones of users.
Maybe an new update of the app was installed.

The b4a message : Programm has stopped
Without error code , nothing more ?
At this time it´s not possible to show the last error code, or something ?


rgs
Kohle
 

kohle

Active Member
Licensed User
Longtime User
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 **
 

Attachments

  • Screenshot_2015-05-06-14-28-15.png
    Screenshot_2015-05-06-14-28-15.png
    93.4 KB · Views: 132
  • Screenshot_2015-05-06-15-26-54.png
    Screenshot_2015-05-06-15-26-54.png
    268.8 KB · Views: 128

kohle

Active Member
Licensed User
Longtime User
The layout is loaded everytime when create, but I stop and start the service before loading the layout.

I will try this:
- I will change my app that the service will be started when firsttime is true and check if the service is paused in the resume.

Thanks
 
Top