Skip to content

Android Lint error #103

@edwardhuerta

Description

@edwardhuerta

I generated a simple content provider and I get this when i run Android Lint on the newly generated classes:

Do not place Android context classes in static fields (static reference to MyDataStoreProviderSQLiteOpenHelper which has field mContext pointing to Context); this is a memory leak (and also breaks Instant Run)

This is located in the generated ...SQLiteOpenHelper extends SQLiteOpenHelper class.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions