diff --git a/app/src/main/java/com/example/iris/login1/DataHelper.java b/app/src/main/java/com/example/iris/login1/DataHelper.java index bc47f04..8ccf581 100644 --- a/app/src/main/java/com/example/iris/login1/DataHelper.java +++ b/app/src/main/java/com/example/iris/login1/DataHelper.java @@ -243,7 +243,8 @@ public String[] getImageOrder() { //nested query - @SuppressLint("Recycle") Cursor values = db.rawQuery("SELECT icon from animal_names a ORDER BY (SELECT Count(_id) from users u WHERE (u.profileIcon = a.icon)) DESC", null); + @SuppressLint("Recycle") Cursor values = db.rawQuery("SELECT icon from animal_names a ORDER BY (SELECT Count(_id) from users u WHERE (u.profileIcon = a.icon)) DESC, RANDOM()", null); + Log.d("DataHelper" , "sql query: "+values.toString());