Android Code Snippet No log for published app

Since it's not recommended for your published apps to write logs, the code below will do that for you.
B4X:
#If Release_obfuscated=""
        #BridgeLogger: True
 #End If

Note: Release_obfuscated is a wished built-in conditional symbol, and until the wish comes true you need to define it manually.
 

hatzisn

Well-Known Member
Licensed User
Longtime User
What is wrong with this (?) :

B4X:
#If DEVELOPMENT
   #BridgeLogger: True  
#End If
 

toby

Well-Known Member
Licensed User
Longtime User
DEVELOPMENT
"DEVELOPMENT" is ambiguous, unable to distinguish between Release and Release_Obfuscated, assuming that you still want your apps to write logs in Release mode.
 

toby

Well-Known Member
Licensed User
Longtime User
Release_Obfuscated conditional symbol, once implemented, will be defined automatically when Release(Obfuscated) mode is selected; the remaining modes are Debug and Release. As you can see, there's no "Development" mode.
 

hatzisn

Well-Known Member
Licensed User
Longtime User
Release_Obfuscated conditional symbol, once implemented, will be defined automatically when Release(Obfuscated) mode is selected; the remaining modes are Debug and Release. As you can see, there's no "Development" mode.

Oh, I see where you 're getting to. The DEVELOPMENT you can create it yourself. Just press Ctrl+B -> New configuration -> Add configuration name "DEVELOPMENT" and in the lower textbox (conditional symbol) again "DEVELOPMENT". Press ok and then exactly right of the Release combo box in the editor, select in the other combo box DEVELOPMENT.
 
Last edited:
Top