Why can't I use Resources.getSystem() without a Runtime error?

后端 未结 3 1219
孤城傲影
孤城傲影 2020-11-29 12:29
public class BobDatabase extends SQLiteOpenHelper{
private static final String DATABASE_NAME = \"bob.db\";
private static final int DATABASE_VERSION = 1;
public stat         


        
3条回答
  •  温柔的废话
    2020-11-29 12:39

    You could get the context parametr in the function by parameter, or by a static variable, or by getApplicationContext() function.

提交回复
热议问题