Hi Dianne,

Thanks for your response.
I can understand two different classloader for different apks even who
are in the same process.

But check the codes below:
this.setContentView(R.layout.main);
CustomedView view = (CustomedView)findViewById(R.id.customedView);

I think there is nothing wrong there but the second line gives me
ClassCastException.
Why Android uses one CustomedView.class to create view in
setContentView and use another CustomedView.class to cast?

However, is there any workaround for this issue?

James

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to