@Override
 public void onDestroy() {
   super.onDestroy();
   if (task != null) {
     task.cancel(true);
   }
 }
 public void init() {
   XmlResourceParser xrp = getActivity().getResources().getXml(R.xml.search_widget_config);
   if (task == null) {
     task = new ParserTask();
   }
   task.execute(xrp);
 }