I want to display search result on the screen, i have implemented in such a way that.
From the search form user fill the 'search field' and 'search location' i set values into bean and that bean is static so that i can access it from every where.
Then i start search result screen intent using
Intent mainIntent = new Intent(SearchVenueResults.this, SearchResults.class);
startActivity(mainIntent);
on the 'SearchResults' activity 'oncreate' method i load data on the behalf of static bean which values filled from search form and then display data.
@Override
public void onCreate(Bundle savedInstanceState) {
loadDataAndSetupUI();
super.onCreate(savedInstanceState);
}
My question is is it the correct approach to use it or in Android there is another preferable approach ?
any quick idea or quick code is appreciated.