/* (non-Javadoc)
  * @see android.app.Activity#onResume()
  */
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   /** 此处调用基本统计代码 */
   MobclickAgent.onResume(this);
 }
 /* (non-Javadoc)
  * @see android.app.Activity#onDestroy()
  */
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   super.onDestroy();
   if (historyHandler != null) {
     historyHandler.close();
   }
 }
 /* (non-Javadoc)
  * @see android.app.Activity#onCreate(android.os.Bundle)
  */
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   // TODO Auto-generated method stub
   super.onCreate(savedInstanceState);
   setContentView(R.layout.layout_keyword);
   context = this;
   mFunction = FunctionEnum.CANCEL;
   scope = getIntent().getIntExtra("scope", 1);
   initView();
   historyHandler = new SearchKeywordsHandler(context);
   initDatas();
   controller = new KeywordsController(context);
 }
 @Override
 public void onPause() {
   super.onPause();
   /** 此处调用基本统计代码 */
   MobclickAgent.onPause(this);
 }