@Override protected void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); if (mBankTask != null) { mBankTask.cancel(true); } }
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); setContentView(R.layout.bankrecordlist_layout); if (!LoginUtil.isLogin) { PromptUtil.showLogin(this); finish(); return; } bank_listview = (ListView) findViewById(R.id.bank_listview); mType = getIntent().getStringExtra(TYPE_KEY_STRING); if (null == mType || "".equals(mType)) { mType = TYPECLASS.creditcard; } setBackVisible(); setTitle(getMyTitle()); mInflater = LayoutInflater.from(this); mBankTask = new BankRecordTask(); mBankTask.execute(); }