1
A
回答
0
您应该使用Config.DEBUG(在调试模式下为true)而不是Config.LOGD。
0
是的,Robby的意思是它。请参阅开源代码的说明。
public final class Config
{
/**
* If this is a debug build, this field will be true.
*/
public static final boolean DEBUG = ConfigBuildFlags.DEBUG;
PS:我只是想将上面的单词设置为注释,但我不知道如何设置为注释,所以我只能设置为另一个答案。
2
Config.DEBUG不推荐使用BuildConfig.DEBUG来代替。
有关如何在Android应用程序中使日志记录更加一致的信息,请参阅适用于Android(iosched)的Google I/O应用程序源代码以供参考。 http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/util/LogUtils.java
相关问题
- 1. Base64Encoding已弃用:iOS 7.0中已弃用
- 2. [弃权] MultiJson.decode已弃用
- 3. DLR:IAttributesCollection已弃用?
- 4. setCellValue已弃用
- 5. stringWithContentsOfFile已弃用
- 6. 'sharedDispatcher'已弃用
- 7. 'initWithFrame:reuseIdentifier'已弃用
- 8. setFont已弃用?
- 9. UIPopoverController已弃用
- 10. CURLM_CALL_MULTI_PERFORM已弃用
- 11. 已弃用Httpclient
- 12. MKReverseGeocoder已弃用
- 13. AuthorizationExecuteWithPrivileges已弃用
- 14. SVNWCUtil.createDefaultAuthenticationManager已弃用
- 15. File.toURL()已弃用?
- 16. Android:getIntent()已弃用
- 17. 已弃用`route.transitionTo`?
- 18. OnCameraChangeListener()已弃用
- 19. FAXCOMEXLIB已弃用?
- 20. AndroidHttpClient已弃用
- 21. 'dismissModalViewControllerAnimated:'已弃用
- 22. 'gtk_widget_override_font'已弃用
- 23. GameObject.renderer已弃用
- 24. LSOpenApplication已弃用?
- 25. sharedScheduler已弃用?
- 26. 已弃用c#
- 27. ConstantScoreRangeQuery已弃用
- 28. dataTaskWithRequest:completionHandler:已弃用
- 29. cString已弃用?
- 30. SKPayment已弃用
Config.DEBUG何时会为true,何时会为false?它是否由Manifest文件确定?谢谢。 – michael 2011-03-28 22:30:00