I am displaying search results from a webservice.
What I do is OnCreate I hit the webservice display records, as android supports multitasking. If user opens another screen and after some time comes back to the search results page, the application starts acting crazy....
OnCreate method I load data some thing like :
private void loadData() throws Throwable{
try {
jsonArray = JSONService.getJsonArray(getResources().getString(R.string.catJson));
} catch (Throwable e) {
Log.e(TAG, e.getMessage());
throw e;
}
}
and then I iterate through json array and change labels value to display result on the screen.
Any ideas how to fix this?