开发小技巧

来源:互联网 发布:淘宝营养素 编辑:程序博客网 时间:2024/06/08 10:42
开发过程可以通过打印日志来查看程序执行过程,只需要打开debug开关,设置成true
private static final boolean LOGD = false;
@Overridepublic void onCreate(SQLiteDatabase db) {if (LOGD) {Log.d(TAG, "creating new launcher database");}}


原创粉丝点击