Android Question Does Function Log(something) run on real phone?

tuhatinhvn

Active Member
Licensed User
Longtime User
When we code and debug , we often use. Function Log(something) to show value of it

But i want to ask when apk run on real phone,this function can make app run slowly??
 

DonManfred

Expert
Licensed User
Longtime User
LOG is only written when compiled in debug. An working app should be compiled in Relese-mode. LOGs are not written to log in release-mode.
So you can let the LOG-commands in.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
The explanation is here: B4A-Bridge and Android 4.1+ logs

Starting from Android 4.1 each process can only read its own logs. The "read logs" permission no longer works. The only exception is when you are connected in USB debugging mode (ADB). When you run your app in debug mode with B4A-Bridge connected it send the logs to the bridge app.
 
Upvote 0
Top