发送到
zhiqiang_com
交流学习
展开
-
ListView+ SQLite实现商品展示
1.首先是UI界面 建立ListView中子项的布局(在layout下建立item.xml) 2.创建需要用到的java类文件(项目结构如下) DBHelper(包含数据库的创建与升级) AccountDao(数据库操作类) Account(封装了每条商品信息的属性) MainActivity i.DBHelper DBHelper需要继承SQLiteOpenHelper类: 包原创 2017-04-24 20:17:19 · 1126 阅读 · 0 评论 -
Android Studio2.3小米真机测试报错
* - 错误信息 * Installation failed with message Failed to establish session. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-insta原创 2017-04-24 16:55:07 · 676 阅读 · 0 评论