[android-developers] How to access database in BroadcastReceiver?

2009-12-11 Thread feng tian
Hi, All: I have a problem when using database in broadcastReceiver. I can't open the database created in the activity. e.g: malwareDB = new PackageDB(this); The eclipse give me the error that PackageDB(this) is undefined. It seems that the BroadcastReceiver doesn't support the database? Do have

Re: [android-developers] How to access database in BroadcastReceiver?

2009-12-11 Thread Mark Murphy
Hi, All: I have a problem when using database in broadcastReceiver. I can't open the database created in the activity. e.g: malwareDB = new PackageDB(this); The eclipse give me the error that PackageDB(this) is undefined. It seems that the BroadcastReceiver doesn't support the database?