初学Android,在注册页面遇到的一个bug
2017-08-04 09:39
344 查看
用阿拉伯数字注册用户时是可以成功的,但是使用字母注册的时候问题就出现了。只要是以字母为用户名,在点击注册的时候程序就崩溃了。查看logcat,说是在插入数据库表的时候没有找到该字段,并且报了以下错误:
database '/data/user/0/com.google.android.gms/databases/metrics.db.16' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
08-04 01:28:04.349 2740-2747/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db.18' was leaked! Please fix your application to end transactions in progress
properly and to close the database when it is no longer needed.
08-04 01:28:04.350 2740-2747/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked! Please fix your application to end transactions in
progress properly and to close the database when it is no longer needed.
捣鼓了好久 在表哥的指点下才发现是这里没有加引号导致程序不能识别注册时输入的是什么。
database '/data/user/0/com.google.android.gms/databases/metrics.db.16' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed.
08-04 01:28:04.349 2740-2747/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db.18' was leaked! Please fix your application to end transactions in progress
properly and to close the database when it is no longer needed.
08-04 01:28:04.350 2740-2747/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked! Please fix your application to end transactions in
progress properly and to close the database when it is no longer needed.
捣鼓了好久 在表哥的指点下才发现是这里没有加引号导致程序不能识别注册时输入的是什么。
相关文章推荐
- android一个注册页面和验证码的实现
- MonoDroid学习笔记(九)—— 控件大串烧,在Android上做一个CSDN的注册页面。
- MonoDroid学习笔记(九)—— 控件大串烧,在Android上做一个CSDN的注册页面。
- android程序一个注册,然后到设置兴趣爱好,出生日期,然后把所有信息显示在另一个页面的程序
- Android使用EditText遇到的一个bug
- android页面编写时遇到的一个错误
- android app检查更新遇到的一个小bug
- MonoDroid学习笔记(九)—— 控件大串烧,在Android上做一个CSDN的注册页面。
- 遇到一个Bug:Android: requestLayout() improperly called
- 使用jQuery开发一个带有密码强度检验的超酷注册页面
- vue计算属性时v-for处理数组时遇到的一个bug问题
- android利用Bitmap加载图片所遇到的一个奇怪的OOM问题java.lang.OutOfMemoryError
- Android手机联系人源码(添加联系人页面一个功能)修改
- Android界面控件(3)— 注册同一个点击事件的监听器
- Android初学习 - 分别以Java code和XML两种方式给FrameLayout布局的Activity增加一个遮罩效果的实现
- Android2.2源代码中关于生成图片缩略图的一个bug
- Android页面跳转结束前一个activity
- android 百度鹰眼采集和打包周期的一个bug
- 【原创】wingdb开发过程中遇到一个比较“头疼”的bug
- Android笔记-4-实现登陆页面并跳转和简单的注册页面