EDIT: I ended up refactoring my code so an Activity is available.
I have an app that is running fine under RubyMotion for the OS X and iOS versions. I am stuck on the Android version however.
My app has model classes that read static file assets. All initialization in these files is executed before the Main Activity runs so there is no way to pass (via dependency injection) in any AssetManager instance to my model files, so getAssets() is not available.
Does anyone have a workaround for opening an InputStream for files in the assets directory, before an Activity is available?
Note: I could refactor all of my platform independent model code to not evaluate initialization code until the APIs in the model classes are called, but I would like to avoid that re-write work if possible.