i switched to Release (The Dropdown List next to the run button) and Run it.
Then it installs to the device (i'm using my android phone) and it starts. Then i see all Log Messages from Debug. How do i create a "proper" release?
Log messages are not from 'debug'. The debugger is a different thing from Log.
Anyway, to remove the Logs you need to remove all of your Log statements.
Another way to do it is to use a switch for enabling/disabling logging. Ofcourse you have to replace all Log statements with vLog. for e.g.
B4X:
Sub vLog(s as String)
Dim enable_log as Boolean
enable_log = True
If enable_log = True then
Log(s)
End If
End Sub
Log messages are not from 'debug'. The debugger is a different thing from Log.
Anyway, to remove the Logs you need to remove all of your Log statements.
Another way to do it is to use a switch for enabling/disabling logging. Ofcourse you have to replace all Log statements with vLog. for e.g.
B4X:
Sub vLog(s as String)
Dim enable_log as Boolean
enable_log = True
If enable_log = True then
Log(s)
End If
End Sub
i switched to Release (The Dropdown List next to the run button) and Run it.
Then it installs to the device (i'm using my android phone) and it starts. Then i see all Log Messages from Debug. How do i create a "proper" release?
There are also Log calls being made by the generated code from B4A side. You can see it in the Java code generated by B4A. The only way I can think of removing ALL log messages would be to edit them out of the generated java, and compile that code. Please correct me if I am wrong as its been a while since I looked at this specifically.