[android-developers] Getting an asset outside of main Activity

2009-12-01 Thread Jeremiah Sellars
(I did post this to the beginners group, but it's been several days without response. Let me know if a double post like this is frowned upon... It feels like a basic question, but anyway...) Hello everyone, From digging around a bit, getAssets() is an inherited method from ContextWrapper. It

Re: [android-developers] Getting an asset outside of main Activity

2009-12-01 Thread Dianne Hackborn
You say you are -instantiating- an AssetManager? Generally what one does is just hand the Context to whatever function needs to access resources/assets/whatever, and let it retrieve what it needs from that. Context is the main handle on the information about your app. Do be sure, though, if you