解决方案 »
- 万急求助~~从android浏览器中启动控件
- handler thread
- ZPAD T8 平板电脑(万利达)操作系统是Android,无线网络与有线不能同时打开吗?
- ANT编译时如何实现编译特定的drawable目录
- 怎么删除 repo 下来的 android 源码
- 自定义ViewGroup侧滑菜单,当打开菜单时,右侧内容View空白处会闪烁左侧菜单底层的View,是怎么回事?有大神遇过这个问题吗?
- 有哪位高手能做到数字的文本识别
- 出厂机顶盒屏蔽adb连接功能
- android工程生成jar包
- 文件下载始终报无网络权限
- 求助listview展开子child问题
- [福音][散发]从github下载Android最新源码
for (int i = 0; i < insertList.size(); i++) {
try {
if (insertList.get(i) != null) {
String s = insertList.get(i).get("parent");
String s1 = insertList.get(i).get("path");
String sql1 = "insert into " + "localbook"
+ " (parent,path" + ", type"
+ ",now,ready) values('" + s + "','" + s1
+ "',2,0,null" + ");";
db.execSQL(sql1);
}
} catch (SQLException e) {
Log.e(TAG, "setApprove SQLException", e);
} catch (Exception e) {
Log.e(TAG, "setApprove Exception", e);
}
}
db.close();
}
for (int i = 0; i < insertList.size(); i++) {
try {
if (insertList.get(i) != null) {
String s = insertList.get(i).get("parent");
String s1 = insertList.get(i).get("path");
String sql1 = "insert into " + "localbook"
+ " (parent,path" + ", type"
+ ",now,ready) values('" + s + "','" + s1
+ "',2,0,null" + ");";
db.execSQL(sql1);
}
} catch (SQLException e) {
Log.e(TAG, "setApprove SQLException", e);
} catch (Exception e) {
Log.e(TAG, "setApprove Exception", e);
}
}
db.close();
}插入第二张表的代码和这个一样?
for (int i = 0; i < insertList.size(); i++) {
try {
if (insertList.get(i) != null) {
String s = insertList.get(i).get("parent");
String s1 = insertList.get(i).get("path");
String sql1 = "insert into " + "localbook"
+ " (parent,path" + ", type"
+ ",now,ready) values('" + s + "','" + s1
+ "',2,0,null" + ");";
db.execSQL(sql1);
}
} catch (SQLException e) {
Log.e(TAG, "setApprove SQLException", e);
} catch (Exception e) {
Log.e(TAG, "setApprove Exception", e);
}
}
db.close();
}插入第二张表的代码和这个一样?表名换了呀,是localbook4