Jason Proctor wrote:
> (sorry if this is obvious)
> 
> if you have a hard reference to a class in another class, then the 
> classloader will (try to) load that one too.
> 
> instead, use a factory to construct classes *by name* which implement 
> an interface that describes the OS dependent stuff. this breaks the 
> loader class chain and ensures that classes are only loaded by an OS 
> which does in fact have them.

I knew there was something in the vicinity of this, but thanks for
spelling it out!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

-- 
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