[Monodroid] How to load Assets outside of an Activity? - Update
Amir Waldman
amirw2k at gmail.com
Tue Mar 1 04:27:03 EST 2011
Update: that code example doesn't work either. It throws
Java.Lang.NullPointerException
Can you even load an Asset without a reference to the main Activity? Is this
a bug or a 'feature'?
Regards,
Amir
-----Original Message-----
From: Amir Waldman [mailto:amirw2k at gmail.com]
Sent: Tuesday, March 01, 2011 1:41 AM
To: 'monodroid at lists.ximian.com'
Subject: How to load Assets outside of an Activity?
I'm trying to load assets outside of an Activity.
This is what I have:
new Android.App.Activity().Assets.Open(...)
Seems like you can instantiate AssetsManager like this, but it requires a
pointer:
new Android.Content.Res.AssetManager(???).Open(...)
Is there a simpler, less memory consuming for this action? Why is it limited
to Activity anyway?
Thanks,
Amir
More information about the Monodroid
mailing list