fire-app-builder
fire-app-builder copied to clipboard
Custom JSON query when searching
Hi! When you start a search it search between the data already loaded. How can I tell the app to load contents from a json everytime a user click ENTER?
For example, I want the json http://mybeautifulapp.com/search.php?query=PETALOSO , how can I load that?
(EDITED because the link was a chinese scam website - sorry about that)
By design the app only searches the previously loaded content. However, you can edit the code to search other content if you wish. Load your data into Content objects. You should store your newly loaded content into a ContentContainer to make the rest of the flow work easily. Then edit the search method of the ContentBrowser class to search in the new content. Change the mContentLoader.getRootContentContainer() of this method to the content that you want to search.