@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); url = intent.getStringExtra("url"); if (null != url && !"".equals(url.trim())) { mTask = new MyTask(WebViewActivity.this); setContentView(webView); mTask.execute(); } }
protected void onPostExecute(Void result) { mContext.mTask = null; }