I need to do an android search using fragments and have been looking at this: Android search with Fragments
I have a couple of questions, however, regarding the 1st answer.
I do not want a new page to pop up; I want the search results to be populated within a listview of the current fragment I am within. Is that possible?
I'm not sure what code to write after:
/**
* Performs a search and passes the results to the container
* Activity that holds your Fragments.
*/
public void doMySearch(String query) {
// TODO: implement this
}
How do I pass my results to a 'container activity' that holds my fragments? Would that be my MainActivity (that's where the code of all my fragments is located)?