打包前的代码:
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.loading_dialog);
Context context = mContextWeakRef.get();
if (context == null) {
return;
}
someAnimation = (AnimationDrawable) context.getResources().getDrawable(R.drawable.loading_dialog);
mCusProImg = (ImageView) findViewById(R.id.cus_pro);
Log.e("LoadingDialogView", mCusProImg + "");
mCusProImg.setImageDrawable(someAnimation);
initView();
Thread t = new Thread(new UpdataThread());
t.start();
setCanceledOnTouchOutside(outside);
}
打包后的代码:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(layout.loading_dialog);
Context context = (Context)this.mContextWeakRef.get();
if(context != null) {
this.someAnimation = (AnimationDrawable)context.getResources().getDrawable(drawable.loading_dialog);
this.mCusProImg = (ImageView)this.findViewById(id.cus_pro);
Log.e("LoadingDialogView", this.mCusProImg + "");
this.mCusProImg.setImageDrawable(this.someAnimation);
this.initView();
Thread t = new Thread(new LoadingDialogView.UpdataThread(null));
t.start();
this.setCanceledOnTouchOutside(this.outside);
}
}