Android determines whether to develop debug mode or release mode

As follows:

During project development, we output logs according to the debug attribute.

However, sometimes we want to output logs for the release version installed on the company's testing machine. At this time, we can add the attribute to the application tag in androidmanifest.xml and force the setting of debugeable, as follows:

The init method can be executed once in the oncreate method of the first activity on the client.

The above article on Android to judge whether to develop debug mode or release mode is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>