Using android studio ( android ) how to Get data from Firebase database using child value from unknown pushed key as you can see in the picture friends I'm trying to get data where
topicimage4 = 0
But I don't have the random key Firebase pushed
Firebase database
I searched alot about this Issue but I didn't found anything or I found questions with no answers in this website I tried also the following
myRef.child("*").orderByChild("topicimage4").equalTo("0")
myRef.child("?").orderByChild("topicimage4").equalTo("0")
myRef.orderByChild("topicimage4").equalTo("0")
myRef.orderByKey().orderByChild("topicimage4").equalTo("0")
UPDATE
here my Json tree as text
Is there any way to access to the topicimage4 child without having the Randrom key ? thnx
{
"-L5YppUZa3dGBvDUgnYi" : {
"paidmoney" : "400",
"paidmoneytype" : "1",
"topiccat" : "1",
"topiccon" : "0",
"topicemail" : "",
"topicimage1" : "null",
"topicimage2" : "null",
"topicimage3" : "null",
"topicimage4" : "0",
"topicimage5" : "21",
"topicname" : "مطلوب انسات للعمل ضمن صالون نسائي طريق عام جزين",
"topicphone" : "70645725",
"topicresouresname" : "",
"topicresouresurl" : "",
"topictext" : "في حال طلب منك الاتصال دولار اضافي على الدقيقة قم بإغلاق الخط \r\n\r\nمطلوب انسات للعمل ضمن صالون نسائي طريق عام جزين\r\n\r\n\r\nنحن نحاول قدر الامكان ضبط جميع انواع الوظائف المقدمة نشكر لكم اهتمامكم ومساعدتكم\r\n",
"topictimed" : "17",
"topictimeh" : "01",
"topictimei" : "57",
"topictimem" : "02",
"topictimey" : "18",
"userimage" : "0"
},
"-L5Yq6VJoOAN7dUKDO9O" : {
"paidmoney" : "400",
"paidmoneytype" : "1",
"topiccat" : "1",
"topiccon" : "0",
"topicemail" : "",
"topicimage1" : "null",
"topicimage2" : "null",
"topicimage3" : "null",
"topicimage4" : "0",
"topicimage5" : "0",
"topicname" : "يلزمنا انسه ذات مظهر لائق",
"topicphone" : "81614696",
"topicresouresname" : "",
"topicresouresurl" : "",
"topictext" : "في حال طلب منك الاتصال دولار اضافي على الدقيقة قم بإغلاق الخط \r\n\r\nيلزمنا انسه زات مظهر لائق للعمل في اكس برس عالاوتستراد بدوام كامل للمراجعه وتس اب التفاصيل موجوده كامله\r\n\r\n\r\n\r\nنحن نحاول قدر الامكان ضبط جميع انواع الوظائف المقدمة نشكر لكم اهتمامكم ومساعدتكم\r\n",
"topictimed" : "17",
"topictimeh" : "01",
"topictimei" : "58",
"topictimem" : "02",
"topictimey" : "18",
"userimage" : "0"
}
}