Log Writer ?

AlpVir

Well-Known Member
Licensed User
Longtime User

AlpVir

Well-Known Member
Licensed User
Longtime User
I have not explained well.
Suppose we have an app (call it A), created by me, it works perfectly on the emulator and on my smartphone and that of many others.
Another person (call it P) install the app on your device (let's call it S) and tells me that it is malfunctioning or not working at all (crashes, reports out of memory, etc.. Etc..)
If I had his device S available I could install the app with B4A Bridge and have a complete log of what happens. Something like :
** Activity (main) Create, isFirst = true **
DrawBitmap
** Activity (main) Resume **
java.lang.NullPointerException
at anywheresoftware.b4a.agraham.gestures.Gestures$1.o nTouch(Gestures.java:96)
at android.view.View.dispatchTouchEvent(View.java:388 1)
at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:903)
at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:869)
at android.view.ViewGroup.dispatchTouchEvent(ViewGrou p.java:869)

But I do not have available his particular device (S) and the person I know does not help because P is not an expert.
If this person had installed a app (let's call it X) that creates a log of what happens during the execution of my app and then send me (by email) the file "1.txt" I should have elements to understand the origin of the malfunction.
The question is: Is there a way to create this file "1.txt" with an app ?
It 'something that makes sense, technically speaking ?
Thank you for your interest.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It 'something that makes sense, technically speaking ?
Yes.

The simplest option for apps published on the market is to ask the user to report the crash. You will then see the logs in the developer console.

There are several log viewers apps available on the market that will allow the user to send the logs by mail.

You can also use LogCat object from the Phone library to write the logs. Though I think that relying on the built-in crash report is much simpler and better.
 
Top