public void init() {
    context = ZhaopinDetailActivity.this;

    title_left = (ImageView) findViewById(R.id.common_title_left);
    title_right = (ImageView) findViewById(R.id.common_title_right);
    title_mid = (TextView) findViewById(R.id.common_title_mid);
    title_left.setOnClickListener(this);
    title_right.setOnClickListener(this);

    wv = (WebView) findViewById(R.id.wv);

    progress = (ProgressBar) findViewById(R.id.progress);

    ZhaopinDetailBean temp =
        ZhaopinDBHelper.getInstance(context).getZhaopin(zhaopinbasebean.getUrl());
    if (temp == null) {
      store = false;
      handler.sendEmptyMessage(UNCHOOSE);
    } else {
      store = true;
      handler.sendEmptyMessage(CHOOSE);
      zhaopindetailbean = temp;
    }
    if (store) {
      wv.loadData(zhaopindetailbean.getContent(), "text/html", "UTF-8");
    } else {
      getData(zhaopinbasebean);
    }
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_zhaopin_detail);
    zhaopinbasebean = (ZhaopinBaseBean) getIntent().getSerializableExtra("zhaopinbasebean");
    zhaopindetailbean = new ZhaopinDetailBean();
    zhaopindetailbean.setTitle(zhaopinbasebean.getTitle());
    zhaopindetailbean.setAddress(zhaopinbasebean.getAddress());
    zhaopindetailbean.setUrl(zhaopinbasebean.getUrl());

    init();
  }