[Monodroid] How to load Assets outside of an Activity?

Jonathan Pryor jpryor at novell.com
Tue Mar 1 12:53:49 EST 2011


On Mar 1, 2011, at 12:43 PM, Amir Waldman wrote:
> I tried the Application example, but I'm not sure who's responsible for
> instantiating it.

Android is supposed to instantiate it during process startup. Did you include the [Application] attribute?

Additionally, [Application] is used to generate the /manifest/application element within AndroidManifest.xml, and if the /manifest/application already exists within Properties\AndroidManifest.xml, it won't get recreated (and thus won't emit the /manifest/application/@android:name attribute).

To confirm, check e.g. obj/Debug/android/AndroidManifest.xml and see if the <application/> element has an android:name attribute.

 - Jon



More information about the Monodroid mailing list