Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sqlite SimpleCrsorAdapter和事件自动加载更多(在滚动上加载数据)_Sqlite_Autoscroll - Fatal编程技术网

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+”