回答編集履歴
2
内容の修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
String order_by = "foodName ASC"; //コード追加
|
18
18
|
|
19
|
-
String[] columns = {"id", "foodName", "foodgram"
|
19
|
+
String[] columns = {"id", "foodName", "foodgram"};
|
20
20
|
|
21
21
|
Cursor cursor = db.query("Products", columns, null, null, null, null, order_by); //order_byの有効化
|
22
22
|
|
1
内容の修正
test
CHANGED
@@ -8,11 +8,9 @@
|
|
8
8
|
|
9
9
|
```ここに言語を入力
|
10
10
|
|
11
|
-
products = new ArrayList<Product>();
|
11
|
+
products = new ArrayList<Product>();
|
12
12
|
|
13
13
|
SQLiteDatabase db = helper.getReadableDatabase();
|
14
|
-
|
15
|
-
|
16
14
|
|
17
15
|
|
18
16
|
|