android - ParseQueryAdapter for two classes (nested) -
i have 2 classes "offers" , "stores". offer class has pointer field called "storeid" points "stores" class. need query offers of specific category, belonging stores within 20km radius of current location. returned store objects should displayed in list view.
this code in oncreate() method of parsequeryadapter subclass.
parsequery offersquery = new parsequery("offers"); offersquery.whereequalto("category", category); parsequery storesquery = new parsequery("stores"); storesquery.wherewithinkilometers("location",myloc,20); storesquery.wherematchedkeyinquery("objectid", "storeid", offersquery); return storesquery
storesquery returning empty list.
what missing? also, please ignore ay typos in above code
thanks
Comments
Post a Comment