Sqlite SimpleCrsorAdapter和事件自动加载更多(在滚动上加载数据)
我的英语很差,所以很难描述下面的问题。打扰大家:):) 我有一个代码如下:Sqlite SimpleCrsorAdapter和事件自动加载更多(在滚动上加载数据),sqlite,autoscroll,Sqlite,Autoscroll,我的英语很差,所以很难描述下面的问题。打扰大家:):) 我有一个代码如下: String sql = "select * from " + MySQLiteOpenHelper.tb_name + " where " + MySQLiteOpenHelper.cl_id_atm + " > 0 and " + MySQLiteOpenHelper.cl_id_atm + " <= 300"; cursor = dataH
String sql = "select * from " + MySQLiteOpenHelper.tb_name
+ " where " + MySQLiteOpenHelper.cl_id_atm + " > 0 and "
+ MySQLiteOpenHelper.cl_id_atm + " <= 300";
cursor = dataHelper.SELECTSQL(sql);
while (cursor.moveToNext()) {
String id = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_id_atm));
String Bank = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_bank));
String Address = cursor.getString(cursor
.getColumnIndex(MySQLiteOpenHelper.cl_address));
Log.d(TAG, "id: " + id + " Bank: " + Bank + " address: "
+ Address);
}
String[] from = { MySQLiteOpenHelper.cl_bank,
MySQLiteOpenHelper.cl_address };
int[] to = { R.id.tvBank, R.id.tvAddress };
adapter = new SimpleCursorAdapter(AtmActivity.this,
R.layout.item_atm_layout, cursor, from, to);
setListAdapter(adapter);
String sql=“select*from”+MySQLiteOpenHelper.tb\u name
+其中“+MySQLiteOpenHelper.cl_id_atm+”>0和
+MySQLiteOpenHelper.cl_id_atm+”