Hi Kevin,

Hi Kevin,

Re: Resource handling - Have you tried using Class.getResourceAsStream() etc? If these still work as per JDK, then it should be possible to use 'normal' java resource techniques in Android.

Kev: Yes, I've tried them. I've also tried the Sun recommended, and probably more appropriate, Thread.currentThread().getContextClassLoader().getResourceAsStream() which would give Android a chance to provide a class loader that could access resources - no luck. There's also some Android APIs for accessing class loaders, these don't work for resources either. As I mentioned in the article I believe it's because classloading is working against the DEX file that container the VM specific class files but can't contain resources.

Reply

*
*
The content of this field is kept private and will not be shown publicly.

*

  • Lines and paragraphs break automatically.