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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -