[mono-android] SqliteOpenHelper blowing up

Jonathan Pryor jpryor at novell.com
Sun Mar 20 10:29:52 EDT 2011


On Mar 20, 2011, at 1:54 AM, Michael Isbell wrote:
> // and it blows up here
> 
> public class RestaurantHelper : SQLiteOpenHelper

The problem is that RestaurantHelper is in the global namespace. Place it into a namespace and it works.

This may or may not get fixed; part of the issue is that some types _must_ be in a package, or Bad Things happen -- specifically anything declared within AndroidManifest.xml must be within a namespace (activities, services, etc.). RestaurantHelper is one of the few examples that wouldn't need to be in a namespace...but it's probably a good idea to be in a namespace anyway (especially since all your other types _are_ within a namespace).

Thanks,
 - Jon



More information about the Monodroid mailing list