コード例 #1
0
            public string queueAll()
            {
                var    columns = new [] { KEY_CONTENT };
                Cursor cursor  = sqLiteDatabase.query(MYDATABASE_TABLE, columns,
                                                      null, null, null, null, null);

                var result = new java.lang.StringBuilder();

                int index_CONTENT = cursor.getColumnIndex(KEY_CONTENT);

                for (cursor.moveToFirst(); !(cursor.isAfterLast()); cursor.moveToNext())
                {
                    result.append(cursor.getString(index_CONTENT)).append("\n");
                }

                return(result.ToAndroidString());
            }
コード例 #2
0
            public string queueAll()
            {
                var columns = new [] { KEY_CONTENT };
                Cursor cursor = sqLiteDatabase.query(MYDATABASE_TABLE, columns,
                  null, null, null, null, null);

                var result = new java.lang.StringBuilder();

                int index_CONTENT = cursor.getColumnIndex(KEY_CONTENT);
                for (cursor.moveToFirst(); !(cursor.isAfterLast()); cursor.moveToNext())
                {
                    result.append( cursor.getString(index_CONTENT)).append( "\n");
                }

                return result.ToAndroidString();
            }